subject

Create and code a program that uses three parallel numeric arrays of size 7. The program searches one of the arrays and then displays the corresponding values from the other two arrays. The program should prompt the user to enter a Part Number. Valid Part Numbers should be the numbers 17, 22, 38, 46, 51, 63, and 84. The program should search the array for the Part Number in the Part Number array and display the corresponding price and quantity from the prices and quantities arrays. Populate the prices and quantities arrays with any values you want. Price should allow for two decimal places. Allow the user to display the price and quantity for as many Part Numbers as desired without having to execute the program again. Of course, any bad Part Numbers should display an error message, but the user should be able to continue until a sentinel is entered. The program should be structured to work with any numbers should the company decide to change Part Numbers in the future. In other words, do not hard code the Part Number search with if or switch statements, actually search or move through the Part Number array to find a match.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 03:40
Mary's manager told her she should insert a graphic into her documentwrite mary a brief note describing how to insert a graphicin a word processing document.
Answers: 1
question
Computers and Technology, 23.06.2019 05:00
Which best explains why a digital leader would join a society specializing in technology
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
Facial expressions and gestures are examples of messages.
Answers: 3
question
Computers and Technology, 23.06.2019 22:20
Learning sign language is an example of a(n) learning sign language is an example of a(n)
Answers: 2
You know the right answer?
Create and code a program that uses three parallel numeric arrays of size 7. The program searches on...
Questions
Questions on the website: 13722363