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 16:00
Aline has a slope of 1/4 and passes through point (0.4,-1/2). what is the value of the y-intercept?
Answers: 2
question
Mathematics, 21.06.2019 17:00
For the rule of 78, for a 12-month period, the last term in the sequence is 12 and the series sums to 78. for an 10 month period, the last term is and the series sum is . for a 15 month period, the last term is and the series sum is . for a 20 month period, the last term is and the series sum is
Answers: 2
question
Mathematics, 21.06.2019 17:30
Lems1. the following data set represents the scores on intelligence quotient(iq) examinations of 40 sixth-grade students at a particular school: 114, 122, 103, 118, 99, 105, 134, 125, 117, 106, 109, 104, 111, 127,133, 111, 117, 103, 120, 98, 100, 130, 141, 119, 128, 106, 109, 115,113, 121, 100, 130, 125, 117, 119, 113, 104, 108, 110, 102(a) present this data set in a frequency histogram.(b) which class interval contains the greatest number of data values? (c) is there a roughly equal number of data in each class interval? (d) does the histogram appear to be approximately symmetric? if so,about which interval is it approximately symmetric?
Answers: 3
question
Mathematics, 21.06.2019 23:30
Jane has 5 nickels.john has 3 dimes.jane says she has a greater amount of money.with the information given,is she correct?
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, 19.01.2020 08:31
question
Mathematics, 19.01.2020 08:31
question
Mathematics, 19.01.2020 08:31
question
Mathematics, 19.01.2020 08:31
Questions on the website: 13722367