Python homework Computer Science

 Write a Python program to compute the average GPA of the courses taken by a student. The program gets the grade and credit count of each course from the user. The grades can be A, B, C, D, or F and the credit counts can be 2, 3, or 5. The program checks the validity of the grades and credit counts before using them. The program continues ignoring invalid inputs until a valid value is entered by the user. Moreover, the user enters DONE after entering the grade and credit count of all courses. To calculate the average GPA, the program first computes the grade points for each course, which is the multiplication of the equivalent numerical grade (A: 4.0, B: 3.0, C: 2.0, D: 1.0, and F: 0.0) and the credit count of the course. Next, the program calculates the total grade points, the sum of the grade points of all courses, and divides it to the total credit count. For example, if a student got grade A for the first course, which has credit count of 3 and C for the second course with credit count of 5, then the average GPA of the student is (4.0 * 3 + 2.0 * 5) / (3 + 5) = 2.75. Finally, the program prints the average GPA with two digits of precision in the screen.  

Don't use plagiarized sources. Get Your Custom Essay on
Python homework Computer Science
For as low as $13/Page
Order Essay
Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more
Live Chat 1 763 309 4299EmailWhatsApp

Order your essay today and save 20% with the discount code WELCOME