Write program to read ten numbers-display distinct numbers

Assignment Help Programming Languages
Reference no: EM1360505

Q1) Write a program that reads in ten numbers and displays distinct numbers (i.e., if a number appears multiple times, it is displayed only once).

Hint: Read a number and store it to an array. If the number is already in the array, discard it.
Your program should contain a function called IsNewNumber( int num) that returns true if the num is in the array; otherwise, returns false if the num is not in the array.

When the user has entered 10 numbers, a message should be displayed and set the OK button to be disabled.

Reference no: EM1360505

Questions Cloud

Explain defend your assertions using properly cited : Explain Defend your assertions using properly cited information from course readings and other course work.
Maslow hierarchy of needs : How does Maslow's Hierarchy of Needs affect an individual empowerment of themselves?
Compute the firm earnings after taxes and earnings : Michaels Company expects earnings before interest and taxes to be $40,000 for this period. Assuming an ordinary tax rate of 40%, compute the firm's earnings after taxes and earnings available for common stockholders
Business in russia and czech republic : The corruption risk is at the local level but once you are in Russia, you are in. Russia's business ethics is very hard to understand.
Write program to read ten numbers-display distinct numbers : Write a program that reads in ten numbers and displays distinct numbers (i.e., if a number appears multiple times, it is displayed only once).
Make use of the work-energy theorem : A major-league catcher gloves a 92 {rm mi}/{rm h} pitch and brings it to rest in 0.15 {rm m}.If the force exerted by the catcher is 803 {rm N}, what is the mass of ball.
Challenge of scholarly writing : What are some of the areas related to writing that still concern you? What challenges do you foresee in your becoming skillful as a scholarly writer?
Explain the messages view of the audience : Explain the message's view of the audience and stakeholders based on the written profile.
Explain difference transactional and transformational leader : Explain difference between transactional and transformational leadership

Reviews

Write a Review

Programming Languages Questions & Answers

  Examine the boxplot

Examine the boxplot and briefly discuss the overall pattern of electricity usage for the households.

  Define function that takes year as it-s input argument

Define and call a function fast_food_billions that takes the year as it's input argument and returns the prediction as it's result. Tell the user that entry of a year before 2005 will cause the program to stop.

  Create program to calculate amount of paint needed

Create a program to calculate the amount of paint needed to cover one side of a house with a sloped roof . Assume tha this house has a rectangular shape with a rectangular window .

  Write a program that inputs number of hours worked

Write a program that inputs the number of hours worked and hoursly pay rat for employesand outputs their total pay.

  Program to prompts user for integer and print prime number

Give a program which will compile in VS 2010. Write a program to prompts user for integer and then prints out all prime numbers up to that integer.

  Creating method to union the interface for adt bag

Add method union to  interface BagInterface for ADT bag which returns as new bag the union of bag receiving call to method and bag which is the method's one argument.

  Create a class uses a 25-element array of digits

Create a class HugeInteger which uses a 25-element array of didgits to store integers as large as 25 digits. Provide services inputHugeInteger, otputHugeInteger.

  Write a program using binary search approach

Write a program using binary search approach

  Create command line based application for perfect hundred

Create a COMMAND LINE based application to play a game called Perfect Hundred. In this game, the user/player competes against the computer.

  Basics of hypertext markup language

The basics of Hypertext Markup Language and World Wide Web.

  Explaining handles clause of sub procedure

You are asked to design a form with a textbox named txtQty, a label named lblStatus, and a button named btnGetStatus. What will be Handles clause at the end of sub procedure?

  Create block using a loop to determine number of items

Create a block using a loop that will determine the number of items that can be purchased based on the price of the item and the total amount available to spend.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd