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

  Building instruction set simulators

Building Instruction Set Simulators

  Function to responds- to click anywhere on page-display box

Write a function that responds to a click anywhere on the page by displaying an alert dialog. display the event name if the user held shift during the mouse click.

  What are the contents of given register

Memory location 2000H has the word 5000H stored in it. What does each location contain after INC BYTE PTR[2000H]. Also after DEC WORD PTR[2000H]

  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.

  Create math sorting game using visual basic studio

using visual basic studio 2010, Create math sorting game. Random number between 1 and 99 will be generated and displayed to the user.

  Reducing the average memory access time

Suppose that increasing the line size to 128 bytes increases the H to 0.97. Does this reduce the average memory access time?

  Advantages of turning the atm switches into lsr

Under these conditions, what are the advantages, if any, of turning the ATMswitches into LSRs, as opposed to using an overlay network?

  Advantages of using invisible html table to create web page

What advantages do you see in using an invisible HTML table to structure an entire Web page? What disadvantages does the table structure pose?

  Write program to list all english-math and science teachers

Suppose that input consists of a file of teachers. You are told to write a program to list all English, math, and science teachers. Each teacher can teach only one subject.

  User defined function to calculate average of three scores

A user defined function that will calculate and display the average of the 3 scores that remain after dropping the highest and lowest scores the performer received.

  Write a vhdl code for soda vending machine

Write a VHDL code that implements the above soda machine. You have to turn in the following: A state diagram showing the implementation of your design. Clearly show all the states and the conditions on which transitions occur.

  Explaining data-driven multicast routing paradigm

The data-driven multicast routing paradigm works best on local networks that have low delay and excess capacity, while the demand driven paradigm works best in a wide are environment.

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