Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part 1 . Design a program called YourNameAssignment 4 ( replace YourName with your actual name ) that that can be used in a class

Part 1. Design a program called YourNameAssignment4(replace YourName with your actual name) that that can be used
in a class registration system with the exact requirements listed below. The registration menu has 4 CATEGORIES:
SUBJECT, RUBRIC, COURSE, and SECTION. Each CATEGORY has different OPTIONS. Each OPTION has a NUMBER (e.g.
1,2, etc.) and a NAME/TEXT (e.g. Computer Science, COSC, etc.) as following:
SUBJECT RUBRIC COURSE SECTION
1 Computer Science 1 COSC 11436182001
2 Business Computer Applications 2 BCIS 21437282002
3 Computer Information Technology 3 ITSC 32436382003
4 ITSE 41301482701
51405582702
The program should have the following exact/precise steps, variable names, messages, menu options, and functionality
and use only concepts learned in class so far:
1. Display the menu options (both number and name/text) for the SUBJECT category as shown above (e.g.1 for
Computer Science, 2 for Business Computer Applications, 3 for Computer Information Technology),
prompt the user to select the option number (e.g.1,2, and 3) and read the selection/number into a variable called
SubjectNumber.
2. Use selection statements to determine the corresponding name for the SubjectNumber and store the corresponding
name into a variable called SubjectName. For example, if the user selects/enters 1 for SUBJECT (the SubjectNumber is
1), then the SubjectName should be Computer Science, if the SubjectNumber is 2, then the SubjectName should
be Business Computer Applications
, etc.
3. Display the menu options for the RUBRIC category, prompt the user to select the option number and read the
selection/number into a variable called RubricNumber.
4. Use selection statements to determine the corresponding name for the RubricNumber and store the corresponding
name into a variable called RubricName. For example, if the user enters 1 for RUBRIC (RubricNumber is 1), then
RubricName should be COSC
, if the user enters 2(the RubricNumber is 2), then RubricName should be BCIS etc.
5. Display the menu options for the COURSE category, prompt the user to select the option number and read the
selection/number into a variable called CourseNumber.
6. Use selection statements to determine the corresponding name for the CourseNumber and store the corresponding
name into a variable called CourseName.
7. Display the menu options for the SECTION category, prompt the user to select the option number and read the
selection/number into a variable called SectionNumber.
8. Use selection statements to determine the corresponding name for the SectionNumber and store the corresponding
name into a variable called SectionName.
9. Output this exact sentence that confirms the registration selection using the name of the selected option/variable
computed in previous steps and stored in SubjectName, RubricName, CourseName, and SectionName:
You are now registered for the SubjectName course RubricName-CourseName-SectionName!
For example, if the user enters 1 for SUBJECT, 1 for RUBRIC, 1 for COURSE, and 4 for SECTION, the output should be:
You are now registered for the Computer Science course COSC-1436-82701.

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

Spatial Databases With Application To GIS

Authors: Philippe Rigaux, Michel Scholl, Agnès Voisard

1st Edition

1558605886, 978-1558605886

More Books

Students also viewed these Databases questions

Question

Provide examples of KPIs in Human Capital Management.

Answered: 1 week ago

Question

What are OLAP Cubes?

Answered: 1 week ago