subject

Consider the following code:
cashregister register = new cashregister(); register. recordpurchase(19.93); register. receivepayment(20, 0, 0, 0, 0); system. out. print("change: "); system. out. println(register.;

the code segment prints the total as 0.0728. explain why. give a recom- mendation to improve the code so that users will not be confused.

i think the answer is that they use the wrong float point, but i don’t know how to expand from that! or if the answer is correct.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 01:00
Complete the sentence about a presentation delivery method
Answers: 2
question
Computers and Technology, 24.06.2019 22:30
The a great imaginary circle, or reference line, around earth that is equally distant from the two poles and divides earth into the northern and southern hemispheres.
Answers: 1
question
Computers and Technology, 25.06.2019 04:00
Plz there is a problem with my account. i no longer have ! ( hand,ambitious,virtuoso etc.) it's like getting brainliest means nothing. how do i get ranks back?
Answers: 1
question
Computers and Technology, 25.06.2019 07:00
The graph shows the number of chapters sarah read in a book each day of a week
Answers: 1
You know the right answer?
Consider the following code:
cashregister register = new cashregister(); register. recordpur...
Questions
question
English, 28.02.2020 21:29
question
Mathematics, 28.02.2020 21:29
question
Mathematics, 28.02.2020 21:29
Questions on the website: 13722363