Share
Explore BrainMass

C++ Programming

I need a program that will ask the user how many courses he wants to input and how many students he wants to add to each course and the name of each student.

Example of a run:

INPUT:

How many courses? 2
Enter the name of the #1 course: Structure Programming
Enter the how many students: 3
Enter the name of the #1 student: Jose
Enter the name of the #2 student: Ana
Enter the name of the #3 student: Betty

Enter the name of the #2 course: Data Structures
Enter the how many students: 2
Enter the name of the #1 student: Joe
Enter the name of the #2 student: Jim

OUTPUT:

Course #1: Structure Programming
Student #1: Jose
Student #2: Ana
Student #3: Betty

Course #2: Data Structures
Student #1: Joe
Student #2: Jim

Attached is an example of a similar program, it is in Spanish but is just an idea on how it can be done.

Attachments

Solution Summary

I need a program that will ask the user how many courses he wants to input and how many students he wants to add to each course and the name of each student.

$2.19