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

  Which is a two-dimensional array of integers

You are to create a CourseGrades application that simulates a grade book for a class with six students that each has 5 test scores. The CourseGrades application should use a GradeBook class that has a member variables grades.

  Which three editions vista allow to join domain on network

Which three editions of Vista allow you to join a domain on a network

  Create memo for management-accounting information systems

Create a memo to your management in which you address significance of accounting information systems. Give some main features of accounting information system.

  Create a short text-based adventure game

In this assignment you will create a short text-based adventure game. The user is presented with a short text description of the state of the game and a small set of alternative actions to take.

  Minimum-spanning-tree problem for lp formulation

The minimum-spanning-tree problem is to find an acyclic subset T + E that connects all of the vertices and whose total weight c(T ) = ce is minimized. Write down the dual of your LP formulation.

  Techniques attacker use to access information on system

Recognize all potential security threats on home personal computer. Recognize some of techniques the attacker might use to access some information on system.

  Write advantages of group work on project

When working in group are you generally a leader, a follower, a slacker or some other role? Describe. Write down two advantages of group work and two disadvantages of working on project in group?

  How many other machines is each machine equivalent to

Every Turing machine is equivalent to some other machine in our enumeration. Why? How many other machines is each machine equivalent to? How many times is each Turing-computable function represented in our enumeration? Be sure to justify your answ..

  What sizes in memory in c++ and size of a char and a string

What are the sizes in memory of other data types in C++? I mean, I know that a double is 8 bytes and an int is 4 bytes. What is the size of a Char and a String?

  Identification of the concept of a target audience

You are working on a new Web site for Cruzes, Inc. The Web site is aimed at providing travel information to consumers interested in cruises. When meeting with Jason, the marketing manager of Cruzes, Inc

  Explain what a buffer overflow is how it can be used

Explain what a buffer overflow is, how it can be used by an attacker, and how to prevent such as an attack.

  Internet, internet, intranet

Define the terms internet, Internet, intranet and extranet, highlighting the similarities and differences between them.

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