🔒 Closed Assignment ko patulong ako guys

Status
Not open for further replies.

J-O K E R

Eternal Poster
Test III. Instruction: Write the C++ source code of the following programs on your examination booklet, avoid erasure.


  1. In order to discourage excess consumption, an electric company charges its customers a lower rate, namely $0.11, for each of the first 250 kilowatt hours, and higher rate of $0.17 for each additional kilowatt hour. In addition, 10% surtax is added to the final bill. Write a program to calculate electric bills given the number of kilowatt hours consumed as input. Use two function declarations: one to compute the amount due without the surtax and one to compute the total due with surtax. (30 points)


  1. Write a function declaration for a function called grader that takes a numeric score and returns a letter grade. Grade has one argument of type integer. Use the rule that 90 to 100 is an A, 80 to 89 is a B, 70 to 79 is a C and less than 70 is an F. (20 points)

    thank you!!
 
Status
Not open for further replies.

About this Thread

  • 1
    Replies
  • 732
    Views
  • 2
    Participants
Last reply from:
Hazew17

Trending Topics

Online now

Members online
1,163
Guests online
1,969
Total visitors
3,132

Forum statistics

Threads
2,293,845
Posts
29,087,038
Members
1,207,977
Latest member
vladss
Back
Top