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

  Design program to ask user to enter amount of purchase

Design a program that will ask the user to enter the amount of a purchase. The program should then compute the state and county sales tax.

  Write a script to declares and sets variable

Write a script that declares and sets a variable thats equal to the total outstanding balance due. If that balance due is greater than $10,000.00.

  Program to compute perimeter and area of rectangle

Write a program that asks for length L and the width W of a rectangle, then compute perimeter and area of the rectangle.

  Write application to simulate coin tossing

Write an application that simulates coin tossing. Let the program toss the coin each time the user presses the "Toss" button. Count the number of times each side of the coin appears.

  Program in visual basic to calculate area of triangle

Write a program in visual basic to calculate area of a triangle.

  Program to read from an input file

Write a program to read from an input file for 15 students, that contains each individual student ID, the course code, letter grade, and credit hours for five courses.

  Program to compute unit price of items sold

Manager of a Supermarket would like to be able to calculate the unit price of items sold there. To do this the program should input the name and the price of the item.

  Design program to ecode message using caesar cypher

Design a program which decodes messages. Messages will be encoded using Caesar cypher, with each letter being decoded by replacing it with previous letter in alphabet.

  Write the constructor function makestk

Write the constructor function makestk, predicate function emptystk and mutator functions pushstk and popstk

  Program-visual basic to compute tips for services rendered

Write a program in Visual Basic 2010 to compute tips for services rendered. The program should request the person's occupation, the amount of the bill and the percentage tip

  Program has function named presentvalue for calculations

Write a program that has a function named presentValue that performs this calculation. The function should accept the future value, annual interest rate, and number of years as arguments.

  Defining method dashedline with one parameter

Write a definition of method dashedLine, with one parameter, an int .

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