Sie sind auf Seite 1von 3

I need a program to separately ask the user to enter which courses they

have taken in each of the 8 categories listed below:

CSET
CSET1100 = 4, CSET1200 = 3, CSET2200 = 4, CSET3200 = 3, CSET3100 =
3, CSET 3250 = 3, CSET3300 = 4, CSET4100 = 3, CSET4150 = 3, CSET4750
= 4, CSET4250 = 3
MATH
MATH1730 = 5
ECON
ECON1150 = 3, ECON1200 = 3
ENGL
ENG1110 = 1, ENG2950 = 3
ENGT
ENGT1000 = 1, ENGT3050 = 4, ENGT2500 = 3, ENGT3010 = 4, ENGT4050 =
3
BUAD
BUAD2040 = 3, BUAD2050 = 3, BUAD3050 = 3, BUAD3030 = 3, BUAD3020
=3
ITEC
ITEC2100 = 4
INFS
INFS3770 = 3, INFS4300 = 3

After the user enters the courses they have taken in each group, the program
must tell the user how many credit hours they have taken in that category
and also how many they have left to take in each category.

Then the program needs to print out the total number of credit hours they
have taken in total and the total number of credit hours they still need to
take.

It also needs to print which classes they still need to take and how many
credit hours each course is.

If the student has taken all the courses, the program should say
Congratulations, you are done! Also, in order to be able to graduate, you
must have completed 128 credit hours. The program must take this into
consideration before it tells you that you are done. In this case, the program
should not print the courses they need to take since they are done taking
them.

Above are all the courses and their corresponding credit hours, please use
this.
Please use a lot of comments to describe what the code is doing and how it
works (this is very important).

Here is an example of what I need the code to do:

List CSET courses taken, separated by commas: CSET1100, CSET1200,


CSET2200

You have taken X credit hours and still have X credit hours left in CSET

List MATH courses taken, separated by commas: MATH1730

You have taken X credit hours and still have X credit hours left in MATH

List ECON courses taken, separated by commas: ECON1150

You have taken X credit hours and still have X credit hours left in ECON

List ENGL courses taken, separated by commas: ENGL1110

You have taken X credit hours and still have X credit hours left in ENGL

List ENGT courses taken, separated by commas: ENGT1000

You have taken X credit hours and still have X credit hours left in ENGT

List BUAD courses taken, separated by commas: BUAD2040

You have taken X credit hours and still have X credit hours left in BUAD

List ITEC courses taken, separated by commas: ITEC2100

You have taken X credit hours and still have X credit hours left in ITEC

List INFS courses taken, separated by commas: INFS3770

You have taken X credit hours and still have X credit hours left in INFS

You have completed a total of X credit hours

You have a total of X credit hours left to take

You still have to take the following courses:


CSET3200 = 3, CSET3100 = 3, CSET 3250 = 3, CSET3300 = 4, CSET4100 =
3, CSET4150 = 3, CSET4750 = 4, CSET4250 = 3, ECON1200 = 3, ENG2950 =
3, ENGT3050 = 4, ENGT2500 = 3, ENGT3010 = 4, ENGT4050 = 3, BUAD2050
= 3, BUAD3050 = 3, BUAD3030 = 3, BUAD3020 = 3,
INFS3770 = 3

*(X being the number of credit hours the program calculates)

Das könnte Ihnen auch gefallen