Computer Science Homework Solutions
Problem
#120397

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.

Attached file(s):
Attachments
Example.cpp  View File
Solution
What is this?
By OTA - Overall OTA Rating
Yupei Xiong, PhD - 4.8/5
Purchase Cost Now
$2.19 CAD (was ~$11.97)
Included in Download
  • Plain text response
  • Attached file(s):
    • 120397.cpp
$2.19 Instant Download
Add to Cart
Why you can trust BrainMass.com
  • Your Information is Secure
  • Best Online Academic Help Service
  • Students find real academic Success
Related Solutions
Browse