Write a function called class average

Assignment Help Basic Computer Science
Reference no: EM13308266

Write a function called class Average that takes in an array of numbers and, after normalizing the grades in such a way that the highest corresponds to 100, returns the letter grade of the class average. This curve is the same method used to generate normTests in Chapter Problem 2. The grade ranges are as follows:

average>=90 => A
80<= average< 90 => B
70<= average< 80 => C
60<= average< 70 => D
average< 60 => F

For example: classAverage( [7087 95 80 80 78 85 90 66 89 89 100] ) should return B

Test your program for the following two cases:
classAverage( [5090 61 82 75 92 81 76 87 41 31 98] )
classAverage( [1010 11 32 53 12 34 74 31 30 26 22] )

Reference no: EM13308266

Questions Cloud

Write a java for file processing according to rules : The file is read into memory, all of it in one buffer, and the buffer is reversed, then the file is overwritten. For simplicity, we may assume that the maximum size of the file is 200000 bytes. If no file was selected an error message is displayed..
Write a php script that computes the total cost : Write a PHP script that computes the total cost of the ordered light bulbs from above after adding 6.2 percent sales tax. The program must inform the buyer of exactly what was ordered, in a table.
Write a java method called smallestindex : write a java method called smallestIndex, which takes as its parameters a 1-d int array and its size, and returns the index variable of the smallest element in the array and the smallest element in the list. Write a java method that uses the metho..
Compute how many joules of energy does the battery lose : A 12 V battery causes a current of 0.7A through a resistor. How many joules of energy does the battery lose in a minute
Write a function called class average : Write a function called class Average that takes in an array of numbers and, after normalizing the grades in such a way that the highest corresponds to 100, returns the letter grade of the class average.
Compute the frequency of the photon : A hydrogen atom initially in the ground state absorbs a photon, which excites it to the n = 3.00 state. determine the frequency of the photon
Determine the wavelength and frequency of the photon : A hydrogen atom initially in the ground state absorbs a photon, determine the wavelength and frequency of the photon
Identify three challenges a new product manager : Identify threechallenges a new product manager may be faced with in developing new products or services. Discuss ways you would cope with these challenges if you were in the new product manager's position.
Determine what is the co concentration in ppmv : A gas mixture contains 1.5 × 10-5 mole CO and has a total of 1 mole. What is the CO concentration in ppmv

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Create a class to represent a triangle by storing

Create a class to represent a triangle by storing the lengths of its sides. Make the data members private and provide the typical get/set (accessor/mutator) routines associated with your data members.

  Identify and describe any potential ethical issues

Identify and describe any potential ethical issues that could arise in connection with the new architecture.

  Cores on computer systems

Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency,

  From time to time words become obsolete

One more requirement, from time to time words become obsolete. When this happens, such word must be removed from the dictionary. Your program must account for this also.

  Is the intersection of these languages context free

is the intersection of these languages context free? Why or why not?

  Write a method firstlast that could be added

Write a method firstLast that could be added to the LinkedIntList class that moves the first element of the list to the back end of the list. Suppose a LinkedIntList variable named list stores the following elements from front (left) to back (right)

  Differentiating unix and window traceroute

Compare and contrast differences between Unix (or Linux) and Window Traceroute. All codes for each ICMP error message are not completely listed and explained.

  What are the advantages of inheritance

In C++, What are the advantages of Inheritance? What are the advantages of Composition?

  What are the similarities between risc and cisc

What are the similarities between RISC and CISC

  How to use dss tool to support business

This is an interesting DSS tool where you can view yourself walking or driving down a street in San Francisco or Seattle. If you operated a business in this city how could you use this tool to support your business.

  Aspects of negotiation will point out it is proceeding well

What aspects of negotiation will point out it is proceeding well or poorly? What will tell you that it is time to arrange further meeting? What signs will you utilize to decide when change in negotiators is necessary?

  Explain kind of system real-time statistics

Permits customers to see real-time statistics like views and click-throughs about their current banner ads. Which kind of system will most efficiently give a solution.

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