Question: Create a class to simulate the functionality of a self-serve kiosk at a grocery store. You can do simple things like scan items, scan coupons,

Create a class to simulate the functionality of a self-serve kiosk at a grocery store. You can do simple things like scan items, scan coupons, make payments, and report daily sales. Text messages are displayed on the screen for customer feedback.

Sample Output:

Create a class to simulate the functionality of a self-serve kiosk at

Additional files for help:

a grocery store. You can do simple things like scan items, scan

coupons, make payments, and report daily sales. Text messages are displayed on

Sample Output Software Testing Software developers must plan from the beginning that their solution is correct. Bluel allows you to instantlate objects and invoke individual methods. You can carefully check each method and compare actual results with expected results. However, this gets tedious and cannot be automated. The sample main method above will create the following output to the terminal window elcome to GVSU Corner Store Price $10.00 Sales Tax: $0.60 Amount Due: $10.60 Testing Your Class using the mainmethod Another approach is to write a main method that calls all the other methods in a carefully designed sequence. For this project, write a main method in anew class called Kinsktest that instantiates at least two kiosks for different stores and invokes each of the methods with a variety of parameter values to test each method. Provide multiple print statements and if statements to test each method along with error messages as needed. It takes careful consideration to anticipate and test every possibility. Payment: $11.00 Thank You Your change is s0.40 elcome to GVST Corner Store! Testing Complete. Number of errors: 0 A brief and incomplete example is provided below. Your test method should be much longer and instantiate two kiosks for different stores. public static vold mainstring [1) { int erro0 scan first iten kioak2.scanIten (10.01 if(kiosk2.getAnountDue10.0) reset-2si..Raaaa ( " ERROR: amount due should be 10.0"); inish checking out kioak2.checkout( kiosk2.nakePaynent (11) Exetem.QuE pEintin("ERROR: ameunt due ehould be 0.0); ifkioak2.getNumCuste-1) ERROR: number of customers ahould be 1") vatemntlnl"Iesting Complete. Number of errors: "errora)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!