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 14:30
Part a : solve -vp + 40 < 65 for v part b : solve 7w - 3r = 15 for r show your work .
Answers: 3
question
Mathematics, 21.06.2019 16:00
I'll give brainliest if you answer right : )
Answers: 2
question
Mathematics, 21.06.2019 16:30
Jackie purchased 3 bottles of water and 2 cups of coffee for the family for $7.35. ryan bought 4 bottles of water and 1 cup of coffee for his family for 7.15. how much does each bottle of water cost? how much does each cup of coffee cost?
Answers: 3
question
Mathematics, 21.06.2019 21:30
Three friends went on a road trip from phoenix, az, to san diego, ca. mark drove 50 percent of the distance. jason drove 1/8 of the distance. andy drove the remainder of the distance. 1. andy thinks he drove 1/4 of the distance from phoenix, az, to san diego, ca. is andy correct? 2. the distance from phoenix, az, to san diego, ca, is 360 miles. how many miles did each person drive? 3. solve the problem. what is the answer in total?
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, 06.12.2020 23:40
question
History, 06.12.2020 23:40
Questions on the website: 13722363