Write a C++ program that stores data of students in a struct. It should store student's ID, QuizMarks (5 Quizzes), and QuizAverage.  Write an Input () function that takes Students' ID and QuizMarks from the user on the command line. Write another function Average () that calculates QuizAverage from QuizMarks. The value of QuizMarks should be passed by reference using pointers.  Write a Display function that displays the data of the student specified using his ID.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter10: Pointers
Section: Chapter Questions
Problem 3PP
icon
Related questions
Question

Write a C++ program that stores data of students in a struct.

  • It should store student's ID, QuizMarks (5 Quizzes), and QuizAverage. 
  • Write an Input () function that takes Students' ID and QuizMarks from the user on the command line.
  • Write another function Average () that calculates QuizAverage from QuizMarks. The value of QuizMarks should be passed by reference using pointers. 
  • Write a Display function that displays the data of the student specified using his ID. 
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Datatypes
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr