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, 22.06.2019 16:20
Octothorpe is another name for what common computer keyboard symbol?
Answers: 1
question
Computers and Technology, 25.06.2019 10:40
If you're using the paintbrush tool and want to change the color of the paint being used what should you change
Answers: 2
question
Computers and Technology, 25.06.2019 23:30
As a saas provider, what more would you like to know about your market? in the scenario where you can’t make the time to research it on your own, what saas market information would you find beneficial and useful to know?
Answers: 1
question
Computers and Technology, 26.06.2019 00:00
What might be the explanation for the following scenario? a user reports that it took a longer than usual amount of time to access a document. upon further investigation, the user tells you that the document he or she was attempting to access is from a budget report written two years ago.
Answers: 1
You know the right answer?
Consider the following code:
cashregister register = new cashregister(); register. recordpur...
Questions
question
Mathematics, 05.05.2021 23:40
question
Health, 05.05.2021 23:40
question
Social Studies, 05.05.2021 23:40
Questions on the website: 13722362