Calculate the letter grade for each test

Assignment Help Computer Engineering
Reference no: EM132207614

Write a program which:

1. Prompts the user for 5 test scores as integers greater than or equal to zero and less than or equal to 100.

2. Validates that the user entries are valid (integers greater than or equal to zero and less than or equal to 100).

3. Stores the 5 tests scores in an array.

4. Uses the bubble sort to sort the scores in ascending order.

5. Calculates the letter grade for each test

6. Displays the letter grade of each score as well as the overall average (the average of the 5 tests).

SPECIFIC REQUIREMENTS

1. You must include a method called calcAverage to compute the average of the 5 test scores; it takes an array of type int as a parameter and returns the average.

2. You must include a method called validateUserInput to ensure user entries are integers greater than or equal to zero and less than or equal to 100.

3. You must include a method determineGrade to compute the average of the 5 test scores; it takes an int array with the test scores and a char array to store the corresponding letter grades.

The letter grade is arrived at using the table below:
score Letter Grade >=90 A >=80 and <90 B >=70 and <80 C >=60 and <70 D >=0 and <60 F

4. You must include a method called bubbleSort which sorts the values (test scores) stored in the array in ascending order.

5. You must include a method called displayTestScores which displays each test score and its corresponding letter, as well as the overall average.

1. No infinite loops, examples include:

a. for(;;)

b. while(1)

c. while(true)

d. do{//code}while(1);

2. No break statements to exit loops

Reference no: EM132207614

Questions Cloud

Describe advantages-limitations of scoring models in project : Describe the advantages and limitations of scoring models in project selection.
Write a powershell script that takes-receives two arguments : Displays all the processes with -ProcessName comprising string 'win' ordered by their IDs
Discuss the responsibilities of human resource management : Discuss the responsibilities of human resource management. Describe the role of the steering team with respect to projects.
Write down the extensive form game : Forbes is a monopoly manufacturer who can use laborers to pack his product into boxes or use an expensive set of robotic arms which will reduce the number.
Calculate the letter grade for each test : Prompts the user for 5 test scores as integers greater than or equal to zero and less than or equal to 100.
Identify effects the animation had on your engagement : Identify the effects the animation had on your engagement with the content and your understanding of the content.
Analyze the trends in leadership and management : Analyze the trends in leadership and management to determine which ones will have the most influence on the HTM industry in the next 5-10 years.
Explain using the isoquant-isocost line diagram : The production function for Q is given as Q = 4K1/2L1/2 where K is the amount of capital employed and L is the amount of labor employed.
Project manager be different in agile project life cycle : How might the behaviors of a project manager be different in an agile project life cycle, versus a plan-driven or traditional project life cycle?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Give an example where resetting the world is impossible

Does using timestamping for concurrency control ensure serializability? Discuss. Give an example where resetting the world is impossible.

  Explain the page navigation preferences

Before you learn how to use web-authoring software to design, edit, and update web-based content, you need to understand basic concepts regarding.

  Analyze the runtime of your algorithm

Analyze the runtime of your algorithm. Show that k equals the largest number of "1" entries no two of which are in a common line.

  Is the www changing users collectively

Is the WWW changing users collectively or individually in profound or superficial ways? Can we see new cultural values being shaped or sub-cultures being formed that may permanently affect our cultural values.

  Plot a graph where the horizontal axis presents the number

Plot a graph where the horizontal axis presents the number m, and the vertical axis presents the number of iterations it takes to end up with 1.

  Ask for times for each race in hours-minutes and seconds

You will need to store the input in an array so that you can output them at the end. Obviously the words FASTEST and SLOWEST should be on the correct line.

  When is off-line programming normally used

Timers and counters use words of memory, but contacts, coils, and branch start instructions do not.

  What information will you need to find out

Describe how you would decide on the computing architecture for the new system, using the criteria presented in this chapter. What information will you need to find out before you can make an educated comparison of the alternatives?

  Designing and implementing a mini search engine

You are probably familiar with Google, Bing or Yahoo, which are some of the most popular search engines that you can find on the Web.

  Write a prolog program which defines the predicate fib

Write a PROLOG program which defines the predicate fib (I, X), where I is a positive integer and X is the I- Fibonacci number.

  Why need both kinds of routing protocols

consider the difference between an interior routing protocol and an exterior routing protocol. What are they, how are they both similar and different.

  What exactly are static and dynamic chains

Do I have although information to do this problem and What exactly are the static and dynamic Chains? I am not a programmer and I am trying to get this right.

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