java control structures 0 – Essay Writers

java control structures 0 – Essay Writers

[ad_1]

For this assignment, you will be adding additional logic to handle a few additional properties of the order, the simple validation of properties, and the total cost of the order, including sales tax. You will implement these new capabilities using methods that you create.1. Define the method called getStringInput( ) using the method header:private static String getStringInput(String prompt)This method must do the following:Use JOptionPane.showInputDialog( ) to display the prompt.Check the value that is returned.If the value is null, the program should terminate.If the value is a nonempty string, that string should be returned as the value of the method.Otherwise, this request sequence should be repeated up to 3 times.If the customer has not entered a valid input by then, the program should make an appropriate comment and then terminate.2. Replace your existing code that requests the customer’s name, return status, and color with calls to getStringInput( ).3. Add a request for quantity, or the number of items that the customer wishes to order. Use getStringInput( ) to obtain this value from the customer. You will need to convert the quantity string into an int value. You should use the Integer.parseInt( ) method to accomplish this.4. Create a method called totalCost( ) that calculates the total cost of an order. Use the following header:private static double totalCost(int number, double cost, double salesTaxRate)Number is the number of items (the quantity), cost is the unit cost (the cost of a single item), and salesTax is the sales tax rate. You should select a reasonable value for the unit cost (e.g., $10.00). You should select a reasonable value for the sales tax rate (e.g., 7%). Use your totalCost( ) method to calculate the total cost of the order.5. Enhance your confirmation dialog so that it displays the entire order, including the name, the color, the quantity, and the total cost.The output from running the program should include additional boxes that are similar to the following PizzasRUs example:. Enhance your confirmation dialog so that it displays the entire order, including the name, the color, the quantity, and the total cost.The output from running the program should include additional boxes that are similar to the following PizzasRUs example:New Content for Week 2For this assignment, complete the following:Save the program code that you just developed and ran successfully in a .zip file that includes all of your Java or Eclipse project files.Update the Key Assignment design document that you started in Week 1 with a new date and project name.Update your previously completed work based on your instructor’s feedback.Perform a screen capture of each of the ordering system dialogs that are displayed during execution just after you have entered the requested information. Place these screen captures in Week 2: Java Control Structures.Be sure to update your table of contents before submission.Name your revised document “yourname_IT110_IP2.doc.”Create a .zip file containing your project document (including screen captures) and your Java source file. Name your .zip file “yourname_IT110_IP2.zip.”NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.  “Is this question part of your assignment? We Can Help!”

"96% of our customers have reported a 90% and above score. You might want to place an order with us."

Essay Writing Service
Affordable prices

You might be focused on looking for a cheap essay writing service instead of searching for the perfect combination of quality and affordable rates. You need to be aware that a cheap essay does not mean a good essay, as qualified authors estimate their knowledge realistically. At the same time, it is all about balance. We are proud to offer rates among the best on the market and believe every student must have access to effective writing assistance for a cost that he or she finds affordable.

Caring support 24/7

If you need a cheap paper writing service, note that we combine affordable rates with excellent customer support. Our experienced support managers professionally resolve issues that might appear during your collaboration with our service. Apply to them with questions about orders, rates, payments, and more. Contact our managers via our website or email.

Non-plagiarized papers

“Please, write my paper, making it 100% unique.” We understand how vital it is for students to be sure their paper is original and written from scratch. To us, the reputation of a reliable service that offers non-plagiarized texts is vital. We stop collaborating with authors who get caught in plagiarism to avoid confusion. Besides, our customers’ satisfaction rate says it all.

© 2022 Homeworkcrew.com provides writing and research services for limited use only. All the materials from our website should be used with proper references and in accordance with Terms & Conditions.

Scroll to Top