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

  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