Grade in the inclusive range

Assignment Help Basic Computer Science
Reference no: EM131453237

HackerLand University has the following grading policy:

  • Every student receives a grade in the inclusive range from 0 to 100.
  • Any grade less than 40 is a failing grade.

Sam is a professor at the university and likes to round each student's grade according to these rules:

  • If the difference between the garde and the next multiple of 5 is less than 3, round grade up to the next multiple of 5.
  • If the value of grade is less than 38, no rounding occurs as the result will still be a failing grade.

For example, grade=84 will be rounded to 85 but grade=29 will not be rounded because the rounding would result in a number that is less than 40.

Given the initial value of grade for each of Sam's n students, write code to automate the rounding process. For each gradei, round it according to the rules above and print the result on a new line.

Reference no: EM131453237

Questions Cloud

What is passive optical network : What is Active Optical Network? What is Passive Optical Network? What are the differences between them? What are the pros and cons of each technology?
Solve the preceding problem : Solve the preceding problem only assume that each station breakdown causes damage to the workpart so that it must be removed.
Information transported by the xmpp and http protocol : Describe the difference between the information transported by the XMPP and HTTP protocol.
Describe each girls possession and tell why : describe something of yours that could be handed down and have sentimental value because it Describe each girl's possession and tell why it is important to her
Grade in the inclusive range : Every student receives a grade in the inclusive range from 0 to 100. Any grade less than 40 is a failing grade.
Distinguish between client-server and p-two-p architecture : What are the differences between client-server architecture and P2P architecture? Give three examples of each architecture.
How many units must system produce for the savings to pay : The cost to operate a certain 20-station transfer line is $72/hr. The line operates with an ideal cycle time of OAS min.
Describe ocbcs unique approach to talent management : Describe OCBC's unique approach to talent management and development
How does dramatic irony function in trifle : How does dramatic irony function in "Trifles" to create and heighten suspense and tension?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Designing the circuit which can scale the voltage

Design a circuit that can scale the voltage from a sensor with range of 0mV - 100mV to the range of 0V - 5V. Now feed this conditioned signal into a 12-bit ADC with VRL = 0 and VRH = 5V and determine the voltage (from the sensor) that will generat..

  Town has two burger restaurants located across the street

A small midwest town has two burger restaurants located across the street from each other: 'Burgerama' and 'The Burger Brothers'. As both restaurants compete for the same customers, they are both considering offering a larger burger with more topping..

  Write queries to retrieve data for tsql

Write SQL statements that will retrieve the following data from a database, using Subqueries and Joins. Using the Northwind database, write a SQL SELECT statement that will retrieve the data for the following questions:

  Program that prints your first name on the screen

Write an assembly language program that prints your first name on the screen. Use the .ASCII pseudo-op to store the characters at the bottom of your program. Use the CHARO instruction to output the characters.

  Compute the fraction of time mary spends using her telephone

Assuming a single-server limited-capacity Bernoulli queuing process with 1-minute frames, compute the fraction of time Mary spends using her telephone.

  Perform name resolution using dns

Discuss how you would configure your Linux distribution to perform name resolution using DNS.

  The relevant theory and/or research inform

What specifically worked well? How do I know it worked well? What specifically worked least well? Why do I think that?

  Interoperability and health information exchange

Clearly describe interoperability and health information exchange within the public, clinical, ancillary software vendors, HIM, admitting,finance and administrators and the ICD-10 implementation.

  Library management system

The paper must concentrate on a topic chosen in Week 3.  The textbook must be used as one of the minimum three references for the paper.APA format should be followed in regard to the completion of this paper. It should be APA 6.0 format.A minimum of ..

  Organization of table structures and relationships

Optimal database design recognizes proper organization of table structures and relationships. Suggest at least two methods that can be used to improve the design of a database system.

  Identify all the dfd elements

1. Identify all the DFD elements. (People often miss the data flows. 2. Identify all threat types to each element. 3. Identify three or more threats: one for a data flow, one for a data store and one for a process.

  Can this issue be settled by reference to a dictionary

He argues that carpenters, barbers, porters, and other groups who organize their work around a shared code of ethics should be recognized as professionals. Do you agree or disagree, and why? Can this issue be settled by reference to a dictionary?

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