Task 3: Arrays (30 marks) Write and execute a JAVA program that will allow the user to input the prices of 7 items into
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Task 3: Arrays (30 marks) Write and execute a JAVA program that will allow the user to input the prices of 7 items into
Task 3: Arrays (30 marks) Write and execute a JAVA program that will allow the user to input the prices of 7 items into an array using for loop. The program should determine the maximum price using while loop and then display the same. Sample output: Enter price:12 Enter price:34 Enter price:11 Enter price:2 Enter price:34 Enter price:56 Enter price: 78 maxinun price: 78.0 Press any key to continue... Note: student id should be appended to variables names compulsorily to avoid similarity
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!