The function should calculate the average marks per student. it should return the average marks calculated in (b). Write a function named dispSummary. This is a non-returning function

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter6: User-defined Functions
Section: Chapter Questions
Problem 1TF: Mark the following statements as true or false: a. To use a predefined function in a program, you...
icon
Related questions
Question
• The function should calculate the average marks per
student.
it should return the average marks calculated in (b).
• Write a function named dispSummary
This is a non-returning function.
It takes the total marks as an input parameter.
The function should display the total marks and tier by
calling the dispTier function.
• Write a main function to perform the following tasks: (
You need to use an appropriate LOOP to perform the
process in this function. The loop will be terminated when
the user press ENTER or empty value for student's name.
You are NOT ALLOWED to use arrays except an array of
characters.
The function should ask the user to enter a student's name.
The function should calculate the total marks using the
following formula:
((Score for Question 1) (Score for Question 2) (Score for
Question 3)TotalMarks (score for q1*35/100) +(score for
q2*25/100)+(score for q3*40/100)
The function should determine the student with the highest
and lowest total marks, and calculate the number of
students, and the average marks per student. Note: You are
NOT ALLOWED to use any predefined function(s) to
determine the highest and lowest total marks.
The program should produce the output as in the sample
execution given below. Note: The values in bold are input by
the user.
• List all function prototypes
You must ensure your program fulfill the following criteria:
The program is able to run.
The program uses an appropriate structure for the program
(e.g. all required header files are included, the program is
properly written, proper indentation, etc.)
Transcribed Image Text:• The function should calculate the average marks per student. it should return the average marks calculated in (b). • Write a function named dispSummary This is a non-returning function. It takes the total marks as an input parameter. The function should display the total marks and tier by calling the dispTier function. • Write a main function to perform the following tasks: ( You need to use an appropriate LOOP to perform the process in this function. The loop will be terminated when the user press ENTER or empty value for student's name. You are NOT ALLOWED to use arrays except an array of characters. The function should ask the user to enter a student's name. The function should calculate the total marks using the following formula: ((Score for Question 1) (Score for Question 2) (Score for Question 3)TotalMarks (score for q1*35/100) +(score for q2*25/100)+(score for q3*40/100) The function should determine the student with the highest and lowest total marks, and calculate the number of students, and the average marks per student. Note: You are NOT ALLOWED to use any predefined function(s) to determine the highest and lowest total marks. The program should produce the output as in the sample execution given below. Note: The values in bold are input by the user. • List all function prototypes You must ensure your program fulfill the following criteria: The program is able to run. The program uses an appropriate structure for the program (e.g. all required header files are included, the program is properly written, proper indentation, etc.)
Programming technique exercise
Question 1).
Write a complete C++ program that helps the teacher to calculate
the result of students in the test of Programming Technique. The
program should perform the following tasks:
• Write a function named getinput.
This is a non-returning function.
It takes the score of question 1, score of question 2, and
score of question 3 as input parameters.
the function should ask the user to enter the score (per 100)
for each question.
It sends all the values entered by the user in (c) back to the
calling module through the use of reference parameters.
• Write a function named dispTier.
This is a non-returning function.
It takes the total marks as an input parameter.
The function should display the tier based on the conditions.
Tier 3 = below 40%, tier 2 = below75%, tier 1=75% and
above
• Write a function named calcAverage. I
It takes the number of students and total marks as input
parameters.
Transcribed Image Text:Programming technique exercise Question 1). Write a complete C++ program that helps the teacher to calculate the result of students in the test of Programming Technique. The program should perform the following tasks: • Write a function named getinput. This is a non-returning function. It takes the score of question 1, score of question 2, and score of question 3 as input parameters. the function should ask the user to enter the score (per 100) for each question. It sends all the values entered by the user in (c) back to the calling module through the use of reference parameters. • Write a function named dispTier. This is a non-returning function. It takes the total marks as an input parameter. The function should display the tier based on the conditions. Tier 3 = below 40%, tier 2 = below75%, tier 1=75% and above • Write a function named calcAverage. I It takes the number of students and total marks as input parameters.
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Concept of Parenthesis
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++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr