Answered step by step
Verified Expert Solution
Question
1 Approved Answer
est Content Question 1 1 0 Points a . Write function getData ( ) that will ask the user to input Student name and three
est Content
Question
Points
a Write function getData that will ask the user to input Student name and three exams; exam exam and exam This function should pass this data back to the main function.
b Write the function call statement to call function getData
c Write the prototype statement for function getData
Question
Points
a Write function calcAverage that will receive the three exam scores, calculate and return the average to main function.
b Write the function call statement to call function calcAverage
c Write the function prototype for function calcAverage
Question
Points
a Write function display to display the student name, the three exam grades and the average with appropriate headings.
b Write the function call statement to call function display
c Write the prototype for function display
Question
Points
Function calls exist in the main function, write the Declaration section for all variables needed points
Question
Points
Given the input file name datafiletxt which has the following data:
John A
Based on this file and data in it answer the questions thru
Write the declaration section to declare variable names for these data items. points
Question
Points
Declare an input file stream object. points
Question
Points
Declare an output file stream object. points
Question
Points
Write the statement to open the input file datafiletxt points
Question
Points
Write the statement to open the output file outfiletxt points
Question
Points
Write the statement to read these data items from the input file. points
Question
Points
Write a statement to send all data to the output file. points
Question
Points
Write the statement to close the input file. points
Question
Points
Write the statement to close the output file. points
Question
Points
Declare an array that has items of type character and initialize it to the following items in one statement : A B C D
Must declare the SIZE of the array as a constant
points
Question
Points
Declare an array of floating point numbers and initialize it to the following items in one statement :
Must declare the SIZE of the array as a constant
points
Question
Points
Declare an array of items and initialize it to the days of the week in one statement : Mon, Tue, Wed, Thu, Fri, Sat, Sun
Must declare the SIZE of the array as a constant
points
Question
Points
Declare an array of grades of type integer, use a for loop to prompt the user to input all the grades. points
declare the SIZE as a constant.
declare the array
use a for loop" to ask the user to input the grades.
Question
Points
Given the array NUMBERS which has the following data:
assuming that the array was declared and initialized with these values
What is the output of the following program segments?
a int j ;
cout numbersj; point
b int x ;
x numbers numbers ;
cout x ; point
c cout numbers ; point
d cout numbers ; point
e Write the necessary statements to display all the elements of this array
Declare the SIZE as a constant, and use a for loop to display all elements points
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started