Write a C++ program that prompts the end-user to input the number of students in a particular program/specialization and number of courses for each student in this specialization. The program shall let the end-user to enter the marks that each student gained in each of the courses, individually, and calculate the average of each student. The output may look something like the following screenshots. The first screenshot assumes that the number of students in the program is 2, number of courses for student-1 is 3, and number of courses for student-2 is 5. If the end-user input a mark below 0 and above 100 by mistake, a suitable message (as in the second screenshot) should be displayed asking the end-user to input a valid value. Sample input / output: Enter the number of students in the program 2 Enter the number of courses for student-1 3 Enter the mark of course-1: 45 Enter the mark of course-2: 54 Enter the mark of course-3: 34 student-1 average is 44.3333 Enter the number of courses for student-2 5 Enter the mark of course-1: 39 Enter the mark of course-2: 87 Enter the mark of course-3: 67 Enter the mark of course-4: 56 Enter the mark of course-5: 45 student-2 average is 58.8 Enter the number of students in the program 2 Enter the number of courses for student-1 3 Enter the mark of course-1: -1 Enter a valid mark Enter the mark of course-1: 101 Enter a valid mark Enter the mark of course-1:
Write a C++ program that prompts the end-user to input the number of students in a particular program/specialization and number of courses for each student in this specialization. The program shall let the end-user to enter the marks that each student gained in each of the courses, individually, and calculate the average of each student. The output may look something like the following screenshots. The first screenshot assumes that the number of students in the program is 2, number of courses for student-1 is 3, and number of courses for student-2 is 5. If the end-user input a mark below 0 and above 100 by mistake, a suitable message (as in the second screenshot) should be displayed asking the end-user to input a valid value. Sample input / output: Enter the number of students in the program 2 Enter the number of courses for student-1 3 Enter the mark of course-1: 45 Enter the mark of course-2: 54 Enter the mark of course-3: 34 student-1 average is 44.3333 Enter the number of courses for student-2 5 Enter the mark of course-1: 39 Enter the mark of course-2: 87 Enter the mark of course-3: 67 Enter the mark of course-4: 56 Enter the mark of course-5: 45 student-2 average is 58.8 Enter the number of students in the program 2 Enter the number of courses for student-1 3 Enter the mark of course-1: -1 Enter a valid mark Enter the mark of course-1: 101 Enter a valid mark Enter the mark of course-1:
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
use while loop and iostream domain only
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY