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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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