Answered step by step
Verified Expert Solution
Question
1 Approved Answer
need to make a script for this sample run, any one help? really stuck on this one.. COP 3223 C Programming UCE Learning Outcomes: Selection
need to make a script for this sample run, any one help? really stuck on this one..
COP 3223 C Programming UCE Learning Outcomes: Selection structures Loops Read carefully before you start coding! At Valence community college, a student can't take more than 3 courses under the constraint of having no more than 7 credit hours The purpose of this assignment is to construct a fee invoice for a student. This requires the input of Student's id as integer and the course numbers 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 Valence Community College offers: CRN 4587 4599 8997 9696 4580 4581 4582 4583 3587 4519 6997 9494 Course Prefix MAT 236 COP 22 GOL 124 COP 100 MAT 230 MAT 231 MAT 232 MAT 233 MAT 256 COP 420 GOL 127 COP 101 Credit Hours After inputting all the necessary data (see sample run), a fee invoice as shown below should be printed to the screen VALENCE COMMUNITY COLLEGE ORLANDO FL 10101 Fee Invoice Prepared for Student V5656 1 Credit Hour-$120.25 CRN CR PREFIX CR HOURS 4587 HAT 236 4599 COP 220 481.00 360.75 Health & id fees35.00 Total Paynents876.75 You may assume that the user will always enter different crns (but if you feel ambitious, you may add the code to checks for that. Please don' t ask for extra credit for that) Sample Run 1 (The user's entry is in bold) Enter the Students Id 5656 Enter how many coursea-up to 3 Enter the 2 course number (s) 587 4599 VALENCE COMMUNITY COLLEGE ORLANDO FL 10101 Fee Invoice Prepared for Student V5656 1 Credit Hour -$120.25 CRN CR PREFIX CRHOURS 4587 MAT 236 4481.00 599 COP 220 3 360.75 Health& id fees 35.00 Total Payments876-75 Would you like to print another invoice? Y-yes, N-No R. Invalid Entry (it has to be y or n: n Goodbye! Sample Run 2(The user's entry is in bold Enter the Students Id 5656 Enter how many courses-up to 3 Invalid number of courses (up to 3 VALENCE COMMUNITY COLLEGE ORLANDO FL 10101 Fee Invoice Prepared for Student V5656 1 Credit Hour -$120.25 CRN CR PREFIXCR HOURS Health&id fees35.00 Total Payments35.00 Nould you like to print another Invoice? Y-yes,N-No Enter the Students Id 8975 Enter how many courses-up to 3 Enter the 2 course numb rs) 587 9696 Sorry we can't process more than 7 credit hours! Nould you like to print another invoice? Y-yes, N-No Enter the Students Id 7892 Enter how many courses-up to 3 Enter the 3 course number (s) 8858 8256 4887 Sorry invalid crn(s) ! Nould you like to print another invoice? Y-yes, N-No Goodbye! Sample Run 3 (The user s entry is in bold) Enter the Students Id 5656 Enter how many courses-up to 3 Enter the 3 course number (s 8997 6997 9696 VALENCE COMMUNITY COLLEGE ORLAND0 FL 10101 Fee Invoice Prepared for Student V5656 1 Credit Hour$120.25 CRN CR PREFIX CR HOURS 8997 GOL 124 6997 GOL 12 9696 COP 100 120.25 s120.25 601.25 Health & id fees35,00 Would you ike to print another involce? Y-yes, N-No IN GoodbyeStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started