What's new

Help Assignment ko patulong ako guys

J-O K E R

Eternal Poster
Established
Joined
Oct 15, 2017
Posts
1,160
Reaction
505
Points
453
Age
23
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!!
 
Tanda ko parang ganito
Gagamit ka lang ng greater than
90>="a"
Parang ganyan lods haha di ko na tanda
 

Similar threads

Back
Top