Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

sorry if the picture is a little blurry, if you zoom in you can read it perfectly. this is the hardest problem i've come across,

sorry if the picture is a little blurry, if you zoom in you can read it perfectly. this is the hardest problem i've come across, and the last one on my final review. i'd just like to know how to solve it image text in transcribed
HWTArmays [Protected View)-PowerPoint (Unlicensed Product) ons Animations Slide Show Review View Help Tell me what you want to de Happy Harry's Hardware Store ame ts peugam Use these 2 arrays toria) let (C.5 , 5.3 1, 1.), a small shopping cart for harry's h Harry7 1 YOURNAE.java String[] tens -(*Hammer", -wrench, "Pliers", - double[] Costs (18.55, 4.99, 5.99, 6.99, 1.99) Ask the user for 2 items to purchase and then show them the Total cost of their purchases and then each item they selected Use printf for all output Welcome to Harry's Hardware Online Store Select item:1 to purchase Num:0 item:Hammer Cost:10.55 Num:1 Item:Wrench Cost:4.99 Num:2 item:Pliers Cost:5.99 Num:3 Item.Saw Cost:6.99 Numc4 item ScrewDriver Cost:1.99 Gimme a number from 0 to 3 5 Please from o to 3- try again-so For example Show the inventony The user entered a 5-the program asks them to try again Ask again for item 1 (a number between 0-3).. Select itemc2 to purchase Num:o Item-Hammer Cost:10.55 the user entered 0 Num:1 item:Wrench Cost:4.99 Numc2 ItemPliers Cost:5.99 Num4 inemScrewDriver Cost:139 Your total purchaes 15.54 Show the inventory and ask for item 3 (a number between 0-3) the user entered 1 3 item.Saw Cost 6.99 number from O to 3 Your Purchases are t the total purchase price and then show them temcHammer Cost:10.55 each item they ordered Num:l temwrench Cost:4.93 8 9 6

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_2

Step: 3

blur-text-image_3

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

Transact SQL Cookbook Help For Database Programmers

Authors: Ales Spetic, Jonathan Gennick

1st Edition

1565927567, 978-1565927568

More Books

Students also viewed these Databases questions

Question

=+ Why is it important for IHRM to be strategic?

Answered: 1 week ago