Question: PARTICIPATION 8 . 3 . 3 : Rearrange the code to construct a cash register. Full screen ACTIVITY Rearrange the following lines of code to
PARTICIPATION
: Rearrange the code to construct a cash register.
Full screen
ACTIVITY
Rearrange the following lines of code to construct a cash register, process a sale of three items under $ print the count and then the total. Then process another sale of two items over $ in the same way.
How to use this tool
Unused
reg additem ;
reg addItem ;
reg addItem;
System.out.printlnreggetTotal;
System. out. print reg getCount ;
reg addItem;
reg addItem;
System.out.printlnreggetTotal;
reg clear;
CashRegister reg new CashRegister;
System. out. print lnreg getCount ;
RegisterDemo.java Load default template.. publio class RegisterDemo
public static void main String args
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
