subject
Mathematics, 20.02.2020 19:32 Lalu3677

Assume you are given a variable, payRate of type Money (a structured type with two int fields, dollars and cents). Write the necessary code to increase the effective value of payRate by $1.50. To do this you need to add 50 to cents and 1 to dollars but you ALSO must make sure that cents does not end up over 99: if it does, you need to "carry a one" to dollars. For example, if payRate were $12.80 then a naive addition of $1.50 yields 13 (dollars) and 130 (cents). This would have to be changed to 14 (dollars) and 30 (cents).

ansver
Answers: 3

Another question on Mathematics

question
Mathematics, 21.06.2019 19:30
Geometry in the diagram, ∠abc is a right angle. ∠dbc = 30°27'40". find the measure of ∠abd.
Answers: 1
question
Mathematics, 21.06.2019 20:30
Ateacher brought a pack of 17 batteries . each calculator uses 3 batteries . how many calculator can the teacher fill with batteries
Answers: 2
question
Mathematics, 21.06.2019 22:10
What is the factor form of x^2-9x+14
Answers: 2
question
Mathematics, 21.06.2019 23:00
*segment an is an altitude of right ? abc with a right angle at a. if ab = 2root 5 in and nc = 1 in, find bn, an, ac.
Answers: 3
You know the right answer?
Assume you are given a variable, payRate of type Money (a structured type with two int fields, dolla...
Questions
question
Chemistry, 01.07.2020 15:01
Questions on the website: 13722361