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

  Application to inputs five numbers given between a range

Write an application that inputs five numbers, each between 10 and 100, inclusive. As each number is read, display it only if it's not a duplicate of a number already read.

  Iimplement a class called monetarycoin

Create an implement a class called MonetaryCoin that is derived from the class Coin class. Store a value in the in the monetary coin that represents its value.

  Generate an object-oriented design for a system

Generate an object-oriented design for a system that keeps tracks of your CD and DVD collection. Identify each of the classes, associated data, and operations for the classes.

  Program-debug and test programming project

Use Visual Basic .Net 2010 to program, debug, and test the following programming project. Modify the Lucky Seven game to present the user with a video poker hand (5 card).

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  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.

  Write code for member method expand

Write code for the member method expand. To keep the code simple, you may assume that the array element has enough capacity and does not need to be resized.

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Write lisp function to reverse order of the elements in list

Write a Lisp function that: given a two-element list, reverse the order of the elements in the list (cannot use the LISP reverse function).

  Write html form that prompts user to enter value

Write an HTML form that prompts the user to enter a value. In PHP, write a script to determine whether the value contains an integer , a decimal-place number.

  Prolog program to reads employee-s number

Write a prolog program that reads an employee's number from the keyboard, number of hours worked and an hourly rate of pay.

  Development of computer systems track citizens

To help counter terrorism, many countries are planning and development of computer systems that track large number of citizens and their actions.

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