Question: Write a complete program to input, store, and output college course data. Course data includes course name, professor name, and hours. The program must run
Write a complete program to input, store, and output college course data. Course data includes course name, professor name, and hours. The program must run and provide the execution below. In addition to the main method, your program must use four other methods:
- One method to input and store course names
- One method to input and store professor names
- One method to input and store hours
- One method to print all course data input by a, b, c
Required Execution:
Enter the number of courses: 2
Enter the name of course #1: Intro to Programming
Enter the name of course #2: Database
Enter the professor of Intro to Programming: John Doe
Enter the professor of Database: Jane Doe
Enter the hours for Intro to Programming with Prof John Doe: 3
Enter the hours for Database with Prof Jane Doe: 4
Here are all the courses:
Course Name: Introduction to Programming
Prof: John Doe
Hours: 3
Course Name: Database
Prof: Jane Doe
Hours: 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
