The Program You are going to write a program that will ask the user which class they would like to take. They will input that class's name or course code as a string. Your program should be able to handle both names of the class (Introduction_to_C) or the course code (COP3233). The names of the courses will be less than 30 characters. After you insert the course in the list/array, you need to print out the course schedule. If you already have 5 courses in your list, you will print out the course schedule with the new class as the 6th course and ask the user which one they want to drop. They can input 6 to drop the one they just put in. You will need to not let the user put in any other number other than the 1-6, and will continue to prompt them until they put one in. The program ends when the user types in "EXIT" for the course name.
Example Welcome to class registration! Enter a course code: COP3223 You have registered in the following courses: 1. COP3223 Enter a course code: COP2500 You have registered in the following courses: 1. COP3223 2. COP2500 Enter a course code: COT3100 You have registered in the following courses: 1. COP3223 2. COP2500 3. COT3100
The Program You are going to write a program that will ask the user which class they would like to take. They will input
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
The Program You are going to write a program that will ask the user which class they would like to take. They will input
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!