Write program to reads student-s name together with score

Assignment Help Programming Languages
Reference no: EM1361324

2. Write a program that reads a student's name together with his or her test score. The program should then compute the average test score for each student and assign the appropriate grade, A, B, C, etc. Your program must use the following methods:

a. A value-returning method average, to determine the average of the five test scores for each student.
b. A void method displayGrade, to display each student's grade to the file.
c. Test your program with the following data. Read the data to a file and output to a file.

Johnson 85 83 77 91 76
Aniston 80 90 95 93 48
Cooper 78 81 11 90 73
Gupta 92 83 30 69 87
Blair 23 45 96 38 59
Clark 60 85 45 39 67
Kennedy 77 31 52 74 83
Bronson 93 94 89 77 97
Sunny 79 85 28 93 82
Smith 85 72 49 75 63

Reference no: EM1361324

Questions Cloud

What would be best decision based on maximax criterion : What would be the best decision based on the maximax criterion and what would be the best decision based on the maximin criterion?
Determine yield to maturity and bond price : Many years ago, Castles in the Sand, Corporation issued bonds at face value at a yield to maturity of 7%. Now, with 8 years left until the maturity of the bonds, the corporation has run into hard times and the yield to maturity on the bonds has incre..
Understanding of potential society-level interventions : Your ability to critically evaluate the importance of childhood injuries as a health issue and your understanding of potential society-level interventions;
What was the bullets speed as it left the barrel : What was the bullet's speed as it left the barrel. A 1kg block rests against one end of a horizontal spring which is compressed by 10 $cm$.
Write program to reads student-s name together with score : Write a program that reads a student's name together with his or her test score. The program should then compute the average test score for each student.
Elucidate what could be done to encourage people to spend : Elucidate what could be done to encourage people to spend more so as to increase aggregate demand and, invariably, create employment possibilities.
Converting inputs to outputs: activities : Converting Inputs to Outputs: Activities - Refer to an interconnected set of activities that converts inputs to outputs.
Diagnosing cvd patients : I need assistance comparing and contrasting new and applied research techniques currently being used to better understand and diagnose CVD patients in the hope of identifying and developing treatment protocols
Calculate the work done on the tool : A 21 kg sled is being pulled across a horizontal surface at a constant velocity. The pulling force has a magnitude of 80.5 N and is directed at an angle of 30° above the horizontal. Determine the coefficient of kinetic friction.

Reviews

Write a Review

Programming Languages Questions & Answers

  Applications in involve computing various powers of e

The transcendental number, e. Many applications in mathematics involve computing various powers of e. It can be proven that ex = 1 + x/1 + x2/2! + x3/3! + ... for all values of x. Of course, this is an infinite sum.

  Compute the product xy

Given two integers X and Y compute the product XY (multiplication), the quotient X=Y (integer division), and the modulus X (mod Y) (remainder).

  Function to convert a decimal input into roman numerals

Write a function that converts a decimal input into Roman Numerals. Your function will take in a number and output a string.

  Write a program that takes one command-line argument

Write a program called runsim that takes one command-line argument. Check for the appropriate command-line argument and output a usage message if the command line is incorrect.

  Code to sum of all the elements of the array

Write some code that places the sum of all the elements of the array x into total. Declare any variables that you need.

  Create logic for program to enter each household size

Create logic for a program that allows a user to enter each household size and find out the mean and median household size in Marengo.

  Write class postfixevaluator to evaluate postfix expression

Write a class PostFixEvaluator that evaluates postfix expression such as 6 2 + 5 * 8 4 / -. Program must read a postfix expression consisting of digits and operators into a StringBuffer.

  Application to convert kilometers in miles

Application will input number of kilometers, compute number of miles, and display number of miles. You will use a constant to store the kilometers-to-miles conversion factor.

  Timer interrupt to coordinate peripherals on microcontroller

The timer interrupts to coordinate peripherals on the microcontroller. Use code from prior labs to drive the peripherals and will make minor modifications to use the interrupts.

  Program to read an employee-s number from keyboard

Write a program that reads an employee's number from the keyboard, number of hours worked and an hourly rate of pay.

  Payroll program for a company

Write complete PAYROLL program for a company in which each employee falls into one of 3 categories - Administrative, Factory Employee or Salesperson.

  Draw a gui to create objects

Draw a GUI that will create the objects and provide access to each object's processing methods. Use the drawing tool in Microsoft Word.

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