The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 401 Weeks Ago, 4 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Calculate GPAs given the information below. Run your program with the given test cases.
Notes: (1) use switch statements, (2) the program should prompt the user for the number of courses, (3) the program should ask for the letter grade (string variable) and the credit hours for that course, (4) GPA is based on a 4.0 grading scale, (5) your solution should use 1 or two loops (6) GPA is calculated by (total earned grade point hours/total credit hours).
|
Letter Grade |
Grade Points |
|
A |
4.0 |
|
A- |
3.7 |
|
B+ |
3.3 |
|
B |
3.0 |
|
B- |
2.7 |
|
C+ |
2.3 |
|
C |
2.0 |
|
Letter Grade |
Grade Points |
|
C- |
1.7 |
|
D+ |
1.3 |
|
D |
1.0 |
|
D- |
0.7 |
|
E |
0.0 |
Test your program with the following two cases:
A, B- , B+ Â Â Â Â Â Â Â Â Â Â with credit hours [3 5 5]
B+, C-, DÂ Â Â Â Â Â Â Â Â Â Â Â Â with credit hours [5 4 3]
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll