Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You have been given the UML Class Diagram of the expected svstem and have been We have already reviewed a coding approach for implementing a

image text in transcribed

image text in transcribed

You have been given the UML Class Diagram of the expected svstem and have been We have already reviewed a coding approach for implementing a UML Class Diagram (see Thursday's module material and Java code). Implementation detail - if paying by credit card, a "tax" of 5% is placed on the sale to cover the charges levied by the credit card company, For this exercise, we will not be soliciting user input for our SS, we will hard code an actual scenario at the Farmer's Market. I placed the steps of this scenario within a main() method in a file that I called TryOutFarmMarket.java. This scenario calls for the filling of their shopping cart with the following ingredients: 2.33lb of Apples at $0.99/lb 0.8lb of Turnips at $1.29/lb 3.2lb of Carrots at $0.79/lb 1.17lb of Green Lettuce at $2.47/lb The user should view their cart contents before attempting to pay. They add the forgotten item 1.5lb of Grapes at $2.79/lb Now that they have all the produce desired, they attempt to pay by credit card; however their credit card did not authorize the charge. The user ends up having to pay for their produce with enough cash that they should receive change back. Submit to Canvas Please submit five files that are represented in the diagram: - Sale, Produce, Payment, Cash, and CC -- COMPRESSED - You do not need to submit your TryOutFarmMarket.java file You have been given the UML Class Diagram of the expected svstem and have been We have already reviewed a coding approach for implementing a UML Class Diagram (see Thursday's module material and Java code). Implementation detail - if paying by credit card, a "tax" of 5% is placed on the sale to cover the charges levied by the credit card company, For this exercise, we will not be soliciting user input for our SS, we will hard code an actual scenario at the Farmer's Market. I placed the steps of this scenario within a main() method in a file that I called TryOutFarmMarket.java. This scenario calls for the filling of their shopping cart with the following ingredients: 2.33lb of Apples at $0.99/lb 0.8lb of Turnips at $1.29/lb 3.2lb of Carrots at $0.79/lb 1.17lb of Green Lettuce at $2.47/lb The user should view their cart contents before attempting to pay. They add the forgotten item 1.5lb of Grapes at $2.79/lb Now that they have all the produce desired, they attempt to pay by credit card; however their credit card did not authorize the charge. The user ends up having to pay for their produce with enough cash that they should receive change back. Submit to Canvas Please submit five files that are represented in the diagram: - Sale, Produce, Payment, Cash, and CC -- COMPRESSED - You do not need to submit your TryOutFarmMarket.java file

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

7th edition

978-1111825911, 1111825912, 978-1133684374, 1133684378, 978-111182591

More Books

Students also viewed these Databases questions

Question

=+ 2. How is the Phillips curve related to aggregate supply?

Answered: 1 week ago