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 13:30
The equation y=mx+b is the slope-intercept form of the equation of a line. what is the equation solved for b? y-m=b y-mx=b y/mx=b y/m-x=b
Answers: 2
question
Mathematics, 21.06.2019 15:00
How can you decide witch operations to use to slice a two step equation
Answers: 2
question
Mathematics, 21.06.2019 21:00
How do you write y-10=2 (x-8) in standard form
Answers: 1
question
Mathematics, 21.06.2019 22:00
If abcde is reflected over the x-axis and then translated 3 units left, what are the new coordinates d?
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
Social Studies, 21.09.2020 02:01
question
History, 21.09.2020 02:01
question
Mathematics, 21.09.2020 02:01
question
Biology, 21.09.2020 02:01
Questions on the website: 13722367