C++ Coding Write a program that asks a teacher to enter the student's and the grades received on her quarterly exams. The datatype for the student's name could be a string and the four grades should be entered in an array of data types int. Test scores are on the base of 100. The main() functions describe the average function with the following title line: double avg( int grades[] , int cap ): The program prints the student's name, her four grades, and her average grades. The main() function also uses the following print function: void print( int grades[], int cap);

Question

C++ Coding

Write a program that asks a teacher to enter the student's and the grades received on her quarterly exams. The datatype for the student's name could be a string and the four grades should be entered in an array of data types int. Test scores are on the base of 100.

  • The main() functions describe the average function with the following title line: double avg( int grades[] , int cap ):
  • The program prints the student's name, her four grades, and her average grades.

  • The main() function also uses the following print function: void print( int grades[], int cap);

Expert Answer

Want to see the step-by-step answer?

Check out a sample Q&A here.

Want to see this answer and more?

Experts are waiting 24/7 to provide step-by-step solutions in as fast as 30 minutes!*

*Response times may vary by subject and question complexity. Median response time is 34 minutes for paid subscribers and may be longer for promotional offers.
Tagged in
Engineering
Computer Science

Programing Language

Related Computer Science Q&A

Find answers to questions asked by students like you.

Q: Matlab  Write a program to generate a matrix of 4 row and 3 columns with random filled enteries.

A: Requirements :- Matlab  Write a program to generate a matrix of 4 row and 3 columns with random fill...

Q: T/F 1. Only constant values are applicable in switch structure. 2. In switch character constants a...

A: According to the given question, it is to determine whether the given below statements are true or f...

Q: Explain how Jennifer failed to demonstrate effective abstract-reasoning skills.

A: \

Q: What is External and internal fragmentation? Explain with an example.

A: We have to explain external and internal fragmentation.   Fragmentation: It is a method of storing d...

Q: Note: Don't copy from google give a conceptional answer Question: Describe the process flow of sea...

A: Search engines work by crawling many billions of pages utilizing their own web crawlers. These web c...

Q: The ___________________________is a logical unit of the computer that coordinates the activities of ...

A: Click to see the answer

Q: When dealing with missing field values in a database, what are the three

A: To Do: To explain ways of handling missing values.

Q: When dealing with missing field values in a database, what are the three

A: Data cleaning, data integration, selection, and transformation are all part of the data preparation ...

Q: To find out how many rows there are, use Array.length, and to find out how many columns are in a cer...

A: Given: To find out how many rows there are, use Array.length, and to find out how many columns are i...

Q: Write a single C statement to accomplish each of the following: g) Print the message "This is a C pr...

A: The answer is...

Q: In your own words, make a compelling argument for and against the benefits and drawbacks of division...

A: Information security is defined as the process of preventing unauthorized access, use, disclosure, d...

Q: When it comes to security, what are the Distinguish between the advantages and disadvantages of vari...

A: Advantages and Disadvantages of Authentication Methods

Q: The OSI model consists of seven levels. Explain?

A: The Open Systems Interconnection Model, often known as the OSI Model, is a conceptual framework that...

Q: efi

A: In a database management system, a surrogate key is a key, or a unique identifier, that uniquely ide...

Q: Program to concatenate two array. Use arraycopy   Sample array ArrA = 1, 2, 3 ArrB = 4, 5, 6   ...

A: Given, Sample array: ArrA = 1, 2, 3 ArrB = 4, 5, 6 Sample output : [1, 2, 3, 4, 5, 6] We ha...

Q: State whether each of the following is true or false. If false, explain why j) The arithmetic operat...

A: Here in this question we have asked that  the arithmetic operators *, /, %, + and - all have the sam...

Q: what is the output of the following code snippet "CC340CC2CC"; var t=s1.split("C"); document.write(t...

A: Code: <html><body><script>       var s1= "CC340CC2CC";    var t= s1.split("C");//s...

Q: well-structured relation

A: Well-structured relation,Well-structured relations important in logical database design

Q: Regular entity type is transformed to a relation.

A: To be determine: Regular entity type is transformed to a relation.

Q: With MYSQL, how can you insert a new record into the "Persons" table? Select one: O a. INSERT INTO P...

A: The basic syntax for inserting into table is  INSERT INTO table_nameVALUES (value1, value2, value3, ...

Q: Contrast Normal Form and Normalization

A: To be determine: Contrast Normal Form and Normalization

Q: shows a The Clas

A: class diagram is a staic diagram that contains relation between classes and their operations sequenc...

Q: Write a script that ask the user to enter n-(size of the matrix) from Keyboard, then creat a random ...

A: Here, Code instruction is given. I have done it in Python because no programming language is specifi...

Q:  Explain the Access control policies categories (just the main categories) and what's the relation ...

A:  Explain the Access control policies categories (just the main categories) and what's the relation ...

Q: Discuss the meaning of each of the following names:a) stdinb) stdoutc) stderr

A: a) stdin :  It is Standard input stream, in program referred to as "stdin". It is a stream from whic...

Q: What are the conditions where a foreign key must not be null.

A: Given: What are the conditions where a foreign key must not be null.

Q: What is well-structured relation? Why are well-structured relations important in logical database de...

A: What is well-structured relation? Why are well-structured relations important in logical database de...

Q: The color code “000” is for White Black Blue Green

A: Given, Color code = 000 Given choices: White Black Blue Green We have to find which color has co...

Q: Write a function in C++ that takes input an integer parameter and return the reverse of that string....

A: Here have to determine about c++ code for reverse the number.

Q: Different security management concepts and their underlying principles should be well discussed.

A: Lets see the solution.

Q: guppore that Alice coryph the same plaintert to Bob and chanles who have theim RSA public keys w.e.)...

A: The Given Question is cryptography encrypting

Q: You are probably wearing on your wrist one of the most commontypes of objects—a watch. Discuss how e...

A: Ans:) To define the various object-oriented programming terms for Watch, consider watch as a supercl...

Q: Explain in detail the various security management ideas and the underlying principles of security ma...

A: GIVEN: Explain in detail the various security management ideas and the underlying principles of secu...

Q: Write a function in C++ that takes input an integer parameter and return the reverse of that string....

A: For this first reverse the number and then convert reversed number to string using to_string() metho...

Q: ot this on matlab using fill

A: Required: Plot this on matlab using fill

Q: How to represent associative entity in a relational data model.

A: GIVEN: How to represent the associative entity in a relational data model.    

Q: CLO1JAssuming this form was loaded in a web browser, what exactly happens when the user clicks the s...

A: what happen ??   it will transfer the user detail enter by user in email field to al.php. page

Q: The following pseudocode algorithm contains two errors. It is supposed to use assigned values to cal...

A: In the given pseudo code algorithm two values have been assigned that are num1 and num2. We have to ...

Q: In a preorder traversal, the -is processed first a. left subtree b. right subtree C. root d. a or b

A: Answer is C. root  

Q: Please fast : Write a C program that reads 5 numbers from the user and store them in an array. Then ...

A: The question is: writing C program in respect to the given condition.

Q: Python Program to Print an Identity Matrix

A: Given:

Q: Q24. Consider the usual algorithm for determining whether a sequence of parentheses is balanced. The...

A: Given:

Q: Python program to read a number 'a' and compute a + aa + aaa.

A: This question comes from "programming in python language" which is a part of Computer Science. Let's...

Q: Q .A magnetic Hard disk is operated with 6000 RPM, it has 24 surfaces, 256 tracks, 512 sectors and s...

A: The same question has been repeated several times. The answer of the first question has been given.

Q: Determine the index of an element.L=(a,b,d,c,g,h) IndexOf (g) is

A: Here, The list is given.

Q: In your own words, make a compelling argument for and against the benefits and drawbacks of division...

A: As we know that Information Security is essential for an organization to work smoothly.

Q: What is the difference between the implementation of 1:M unary relationship and M: N unary relations...

A: Given: What is the difference between the implementation of 1:M unary relationship and M: N unary ...

Q: ou are in a job where you earn a tip for service.  You need a Java program that will calculate how m...

A: Here I have taken input from the user and stored it into different variables. Next, I have used the ...

Q: What does the phrase in a category of jobs that is net of outsourcing mean?  Why is this important t...

A: Here have to determine about outsourcing mean in jobs.

Q: The color code “0 255 0” is for White Black Blue Green

A: Given, Color code = 0 255 0 Given choices: White Black Blue Green We have to find which color h...