Create program that asks user to enter series of numbers

Assignment Help Programming Languages
Reference no: EM1367301

Create a program that asks the user to enter a series of 20 numbers. The program should determine whether the number is valid by comparing it to the following list of valid charge account numbers:

5658845 4520125 7895122 8777541 8451277 1302850
8080152 4562555 5552012 5050552 7825877 1250255
1005231 6545231 3852085 7576651 7881200 4581002

These numbers should be stored in an array. Use the sequential search algortithm to locate the number entered by the user. If the number is in the array, the program should display a message indicating the number is valid. If the number is not in the array, the program should display a message indicating the number is invalid. This assignment gives you a chance to use an array to check the input validity of an account number.

Reference no: EM1367301

Questions Cloud

Underwater optical communication system : An Underwater Optical Communication System and implementing Reed-Solomon Channel Coding
Theory in nursing curriculum : How helpful is theory in nursing curriculum? What is nursing practice and what is nursing education?
At what other angles is constructive interference heard : Two sound sources driven in phase by the equal amplifier are d = 4 m apart on the y axis. At a point a very large distance from the y axis, constructive interference is first heard at an angle θ1 = 0.140 rad with the x axis.
Potential health problems through case-studies : The diagnosing, care and treatment of human responses to actual and/or potential health problems through case-studies, research studies and findings.
Create program that asks user to enter series of numbers : Create a program which asks the user to enter a series of 20 numbers. The program must determine whether number is valid by comparing it to following list of valid charge account numbers:
Determine the dollar price of the cars : The United State imports Japanese cars with a domestic price of 5,000,000 yen and the yen or dollar exchange rate is 120 on January 1, 2003.
Activity based teaching strategies : Describe how you could incorporate some activity based teaching strategies into a traditional classroom or clinical setting.
Create list of major steps to follow to get input : Create a list of major steps to follow to get input, process, and output desired information (software requirements). Refine the list to include individual refined steps (algorithm).
Preferred stock valuation : Authorized and available shares Aspin Company charter authorizes issuance of 2,000,000 shares of common stock. Currently, 1,400,000 shares are outstanding and 100,000 shares are being held as treasury stock.

Reviews

Write a Review

Programming Languages Questions & Answers

  Creating a security policy by gathering information

Suppose mantle of a security consultant. You are asked to visit a client and gather information to develop a security policy for them.

  Write program to read the size of side of square

Write a program that reads in the size of the side of a square and then prints a hollow square of that size out of asterisks (i.e., *) and blanks.

  Design a flowchart displays item-s data

Design a flowchart or pseudocode for the following: displays the item's data only if it is a best-selling item. Best-selling items are those that sell more than 2000 pounds per month.

  Write parameterized function to play the game

Your program cannot use file level variables or constants; your program cannot use global variables or constants. The functions that you write exchange data by means of return statements and value parameters and reference parameters

  Create the array to determine discount amount

Create the array (DISCOUNT-ARRAY) that will be used to determine discount company will give based on amount of an order.

  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.

  Write program which will ask user to enter last names

Write a program which will ask the user to enter last names of our candidates in class officer's president election and number of votes received each candidate.

  Write a perl program

Write perl program which will run on my system and will start another perl program on another linux system. The main program should wait for linux perl program to complete its work and send the result to my main perl program.

  Design program to enter a series of numbers

Design a program that asks the user to enter a series of 20 numbers. The program should determine whether the number is valid by comparing it to the following list of valid charge account numbers.

  Communicate with a pc using the rs232c serial protocol

In this assignment we will use the UART0 peripheral to communicate with a PC using the RS232C serial protocol.

  Recursive method to search a string for a byrd

Write a recursive method that searches a string for a Byrd. A Byrd has the following properties. Its first character is an 'A'. If it is a two character Byrd then its second and last character is an 'H'.

  Travelling salesman problem

Travelling Salesman Problem on the L1-metric plane.

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