Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed
image text in transcribed
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

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

Step: 3

blur-text-image

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

Intranet And Web Databases For Dummies

Authors: Paul Litwin

1st Edition

0764502212, 9780764502217

More Books

Students also viewed these Databases questions

Question

2 What supply is and what affects it.

Answered: 1 week ago

Question

Explain the different types of marketing strategies.

Answered: 1 week ago

Question

Explain product positioning.

Answered: 1 week ago

Question

Explain Industrial market segment.

Answered: 1 week ago

Question

What is the difference between Needs and GAP Analyses?

Answered: 1 week ago

Question

What are ERP suites? Are HCMSs part of ERPs?

Answered: 1 week ago