Question: Your C program for the following problem should run exactly as shown in the sample runs, including format and indentation. Name your .c file as

Your C program for the following problem should run exactly as shown in the sample runs, including format and indentation. Name your .c file as project3.c

The main difference between this project (project3) and project2 is the use of loops. Please pay attention to how the code should run-see sample runs. For example, if the user enters more than 2 courses, your code shouldnt exit. It should re-prompt the user to enter the number of courses again until 0,1 or 2 is entered. Same thing for the course numbers: if the user enters one or more invalid course numbers, the program re-ask the user to enter the course numbers again...

It is time to start talking about some good programming practices. Please watch this YouTube video before you start:

https://www.youtube.com/watch?v=SpKlQTbOuZQ 

At Valence community college, a student can take up to two courses. The purpose of this assignment is to construct a fee invoice for a student. This requires the input of Students id as an integer and (up to) the two course numbers as integers. 
It costs 120.25 dollars per credit hour in addition to $35.00 charged for health and id services. 
Here is the list of all courses offered at Valence Community College: 
CRN Course Prefix 4587 MAT 236 4599 COP 220 8997 GOL 124 

9696 COP 100

Credit Hours 4 3 1 

3

After inputting all the necessary data (see sample runs below), a fee invoice is printed to the screen when the data entered is valid. 
 VALENCE COMMUNITY COLLEGE ORLANDO FL 10101 ************************* 
 Fee Invoice Prepared for Student V5656 1 Credit Hour = $120.25 
 CRN CREDIT HOURS 4587 4 $ 481.00 4599 3 $ 360.75 
 Health & id fees $ 35.00 

-------------------------------------- Total Payments $ 876.75

Sample Run 1 (The users entry is in bold) Enter the Students Id:

5656

Enter how may courses taken(up to 2): 

3

Invalid number of courses. Please re-enter how many courses ( up to to 2 ): 

4

Invalid number of courses. Please re-enter how many courses ( up to to 2 ): 

2

Enter the 2 course numbers separated by - :(like 2356-8954)

4587-4599

Thank you! PRESS ANY KEY TO CONTINUE . . . 
 VALENCE COMMUNITY COLLEGE ORLANDO FL 10101 ************************* 
 Fee Invoice Prepared for Student V5656 1 Credit Hour = $120.25 
 CRN CREDIT HOURS 4587 4 $ 481.00 4599 3 $ 360.75 
 Health & id fees $ 35.00 

-------------------------------------- Total Payments $ 876.75

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!