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, 21.06.2019 21:00
Select all that apply. what types of documents can be created using word-processing software? business newsletters letters of application presentation slideshows customer databases
Answers: 1
question
Computers and Technology, 22.06.2019 10:00
According to alisa miller foreign news bureaus
Answers: 3
question
Computers and Technology, 23.06.2019 00:30
Which one of the following is the most accurate definition of technology? a electronic tools that improve functionality b electronic tools that provide entertainment or practical value c any type of tool that serves a practical function d any type of tool that enhances communication
Answers: 1
question
Computers and Technology, 23.06.2019 01:30
Jason works as an accountant in a department store. he needs to keep a daily record of all the invoices issued by the store. which file naming convention would him the most? a)give the file a unique name b)name the file in yymmdd format c)use descriptive name while naming the files d)use capital letters while naming the file
Answers: 3
You know the right answer?
Consider the following code:
cashregister register = new cashregister(); register. recordpur...
Questions
question
English, 17.12.2020 14:00
question
Spanish, 17.12.2020 14:00
Questions on the website: 13722360