Description During My Time As An Undergraduate Student At Ucf I Enrolled In 4 5 Courses A Semester When I Would Enroll 1 (80.32 KiB) Viewed 43 times
Description During My Time As An Undergraduate Student At Ucf I Enrolled In 4 5 Courses A Semester When I Would Enroll 2 (39.67 KiB) Viewed 43 times
Description During My Time As An Undergraduate Student At Ucf I Enrolled In 4 5 Courses A Semester When I Would Enroll 3 (42.01 KiB) Viewed 43 times
Description During My Time As An Undergraduate Student At Ucf I Enrolled In 4 5 Courses A Semester When I Would Enroll 4 (35.75 KiB) Viewed 43 times
Description During My Time As An Undergraduate Student At Ucf I Enrolled In 4 5 Courses A Semester When I Would Enroll 5 (42.58 KiB) Viewed 43 times
Description During my time as an undergraduate student at UCF, I enrolled in 4-5 courses a semester. When I would enroll using myUCF I would enroll in one class at a time. One time, I tried to enroll into six courses and it told me I was unable to do so. This wasn't a technical limit, but a limit the university had placed on me. If I dropped a class, I would be able to enroll into the new class. 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 Enter a course code: MAC2312 You have registered in the following courses: 1. COP3223 2. COP2500 3. COT3100 4. MAC2312
Enter a course code: PHY2048 You have registered in the following courses: 1. COP3223 2. COP2500 3. COT3100 4. MAC2312 5. PHY2048 Enter a course code: CHM2048 You have registered in the following courses: 1. COP3223 2. COP2500 3. COT3100 4. MAC2312 5. PHY2048 6. CHM2048 You have registered for two many courses. Please pick one to delete. Enter a number between 1 and 6. 2
Enter a course code: ABC1234 You have registered in the following courses: 1. COP3223 2. CHM2048 3. COT3100 4. MAC2312 5. PHY2048 6. ABC1234 You have registered for two many courses. Please pick one to delete. Enter a number between 1 and 6. 6 Enter a course code: ABC2345 You have registered in the following courses: 1. COP3223 2. CHM2048 3. COT3100 4. MAC2312 5. PHY2048 6. ABC2345 You have registered for two many courses. Please pick one to delete. Enter a number between 1 and 6. 6 Enter a course code: EXIT Goodbye
Rubric 1 - Header with name, course, date, assignment 1 - Style/Output/Comments 1 - Creates a array to store courses in 1 - Creates a loop that ends when exit is inputted 2 - Insert a course to the array within the loop 5- Prints out the context of the array after each insert 1 - Checks if the array is too large and prompts for deletion 4 Deletes the chosen course out of the array - 2 - Keeps prompting until user choses a valid index range
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!