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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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