Question: console application can look once complete. Program Requirements: Use at least two parallel arrays with one containing the name of the tool and the other

console application can look once complete.
Program Requirements:
Use at least two parallel arrays with one containing the name of the tool and the other having the price.
The list above contains 10 items, yours will require at least 15! When creating the arrays, make sure they have at least 15 tools and prices. There is no need to prompt the user for anything.
Your code will need to traverse the arrays to print out the values indicated.
You will need to keep track of the prices via an "accumulator", discussed last week, to calculate the average price.
You may use a counter, as discussed last week, for the count of the tools, but that is not required as long as the value shown is correct.
Tools and Prices Exercise
Tips for approaching this exercise:
Here are some pointers for accomplishing this task. Remember, how do you eat an elephant?
Create one array and make it display to the console using a "for" loop.
Create the second array and get it to display using the same "for" loop.
Add the accumulator to the "for" loop to total the price of all the tools.
After the "for" loop, calculate the average and round it!
Print out the final message.console application can look once complete.
Program Requirements:
Use at least two parallel arrays with one containing the name of the tool and the other having the price.
The list above contains 10 items, yours will require at least 15! When creating the arrays, make sure they have at least 15 tools and prices. There is no need to prompt the user for anything.
Your code will need to traverse the arrays to print out the values indicated.
You will need to keep track of the prices via an "accumulator", discussed last week, to calculate the average price.
You may use a counter, as discussed last week, for the count of the tools, but that is not required as long as the value shown is correct.
Tools and Prices Exercise
Tips for approaching this exercise:
Here are some pointers for accomplishing this task. Remember, how do you eat an elephant?
Create one array and make it display to the console using a "for" loop.
Create the second array and get it to display using the same "for" loop.
Add the accumulator to the "for" loop to total the price of all the tools.
After the "for" loop, calculate the average and round it!
Print out the final message.Ask an expert

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 Programming Questions!