Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Problem: Complete Programming Project 6, page 421 in the text. This will require the use of TWO onc dimensioned arrays or ONE two-dimensioned array The
Problem: Complete Programming Project 6, page 421 in the text. This will require the use of TWO onc dimensioned arrays or ONE two-dimensioned array The problem says that there will be 50 or fewer numbers entered. Therefore, the array size will be exactly 50. As numbers are entered, your program will terminate input if the user tries to enter more than 50 numbers or whenever the user enters the terminating value (-999). Requirements (Face-to-Face): You will submit the following with this lab: a. The assignment sheet/cover sheet with your name on the front b. A printout of source code (program listing) c. A copy of the source code and related project files will be submitted to Canvas under the lab assignment. Requirements (online): You will submit the following with this lab: a. A copy of the source code and related project files will be submitted to Canvas under the lab assignment. Due: TBD Labs are due promptly at the BEGINNING OF CLASS. Program Logic (algorithm) - Perform any initializations Loop through the users inputs (max of 50 or terminating value of-999) Prompt the user for their input Read the users entry. o o If the value is-999, exit the loop Determine if the users entry has been entered before If it is a new value, add to the 'Numbers' array and set the entry in the Count' array to 1 If the number has been entered previously, increment the 'Count' array entry by one. o o o Once the loop terminates: o Print the 'Numbers' array and the corresponding 'Count' array
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started