Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Learning Outcomes: 1) if/else statements 2) switch Your C program for the following problem should run exactly as shown in the sample runs, including format

Learning Outcomes:

1) if/else statements

2) switch

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 project2.c

Your C program must include a switch statement (in addition to if/else statements)

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 Credit Hours

4587 MAT 236 4

4599 COP 220 3

8997 GOL 124 1

9696 COP 100 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

PLEASE USE BASIC C LANGUAGE, NOT C++!

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro Database Migration To Azure Data Modernization For The Enterprise

Authors: Kevin Kline, Denis McDowell, Dustin Dorsey, Matt Gordon

1st Edition

1484282299, 978-1484282298

More Books

Students also viewed these Databases questions