Write a program that will ask the user to enter quiz scores

Assignment Help Programming Languages
Reference no: EM131207306

Your problem is as follows:

Write a program that will ask the user to enter 4 quiz scores for 3 students.  You will need to fine the lowest quiz grade and drop it out when you calculate the average.

You will need to display all 4 quiz scores for each student as well as the lowest score and the average. Don't forget to validate the scores when you get them. Don't forget to drop the lowest score in your calculation.

You can assume that all quizzes will be out of 10pts.

Requirements:

- Need to create a 2D array for the scores

- Need 2 1D arrays for lowest score and average

Input:

- Quiz scores for each student

EX:

7      8     3      9

6      7     4      8

9      5     3      3

Output:

- All four scores, the lowest, and the average score

EX:

Q1       Q2     Q3    Q4     Low   Avg

7          8       3       9        3      8.0

6          7       4       8        4      7.0

9          5       3       3        3      5.7

Functions:

- intfindMin(int student, int scores[3][4])

  • Finds the minimum quiz score for any given student
  • Returns the minimum

- void printTable(int scores[3][4], int min[3], intavg[3])

  • Prints the output to the screen

- float getAverage(int student, int min, int scores[3][4])

  • finds the average of the 3 quiz scores for a given student
  • ignores the minimum score
  • returns the average

You must use the functions EXACTLY. And remember: Be sure to ERROR CHECK.

Reference no: EM131207306

Questions Cloud

Find the voltage v for the elements of given figure : Find the voltage v for the elements of given figure using complex algebra. - Sketch the waveforms of v and i on the same sewt of axes.
What role does the crime control perspective play : How do you balance the ideals and principles set forth in the Constitution with the realities discussed in the articles presented to you? What role does the crime control perspective play in your thinking regarding the application of the Constituti..
Steel and iron ore resources : What are some strategies that Australia can use to export their steel and iron ore resources?
Write a business letter to an accounting client : These notes will guide you in writing a business letter to an accounting client. An effective letter meets your receiver's needs. In this case, it answers the client's questions in a clear, accurate, concise way.
Write a program that will ask the user to enter quiz scores : Write a program that will ask the user to enter 4 quiz scores for 3 students.  You will need to fine the lowest quiz grade and drop it out when you calculate the average
Savings account that pays interest rate : If you put $4000 in savings account that pays interest rate of 4%, compounded annually, how much will you have in 5 years? How much interest will you earn during the 5 years? If you put $4000 each year into a savings account that pays interest at ..
Describe and explain the warning signs of melanoma : What is the ploidy of the cells produced? Are daughter cells identical or different to each other? Describe and explain the warning signs of melanoma. (ABCDs). What are four characteristics (behaviors) of all cancer cells?
Calculate total impedance of the circuits of given figure : Calculate the total impedance of the circuits of given figure. - Express your answer in rectangular and polar forms, and draw the impedance diagram.
Summarize the recommendations of the authors : Summarize the recommendations of the authors. Summarize the discussions with your peers from your Week Four discussion, "Homeland Security Influence: Part II." Analyze the article as it applies to the criminal justice policy issue. (T..

Reviews

Write a Review

Programming Languages Questions & Answers

  Explain the purpose of the attributes

Imagine you are a part of a team that is tasked with writing a mobile app that will allow users to store information for all of their contacts (e.g., friends, family, etc.). Identify at least two (2) attributes of the object contact in this applic..

  Card generator program by linked list

Address Book-Card Generator Program Using a Linked List. This program will have names and addresses saved in a linked list. In addition, a birthday and anniversary date will be saved with each record.

  Create a new class within the project

CS4001 Programming - The aim of this assignment is to add a class to the project that you developed for the first part of the coursework to make a graphical user interface (GUI) for a system that stores details of cars in a car company.

  Create the logic for a program that accepts input values

Create the logic for a program that accepts input values for the projected cost of a vacation and the number of month until vacation. Pass both values to a method that displays the amount you must save per month to achieve your goal.

  Read each line and create one complex object

Write all complex objects to file complexObj.txt and compute sum of all objects and append the object to the end of complexObj.txt

  Program prompt teacher to input student number

The program must prompt teacher to input student number. Quiz score for that student will be displayed. Program can prompt for each quiz score.

  Write program encodes english language phrase into pig latin

Write a program that encodes English language phrases into pig Latin. Pig Latin is a form of coded language oftenused for amusement. Many variations exist in the methods used toform pig Latin phrases.

  Deisgn driver to test implementation elements to tree

Deisgn a driver to test your implementation. Add various elements to the tree, and then display elements in sorted order. Also, display minimum and maximum element.

  Brief explanations for the solutions in the ms word file

You have a server-side script that cannot handle any ampersands (&) in the form data. Write a function that converts all ampersands in a form field to " and " when the field loses focus (onblur).

  Designing the site links

Company needs to be able to schedule the time of day when the connections are available for replication. Replication should not occur during peak business hours. When designing the site links, which of the following options should you use?

  Write the standard sql query to retrieve names

write the standard SQL query to retrieve the Name and Phone Number of customers whose name begins with 'S'.

  Provide a complete program that performs substitution cipher

Provide a complete program that performs a simple substitution cipher. The program should take plain text and a shift value and produce the encrypted text. Then it should take encrypted text and a shift value and produce the plain text once again.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd