Design program to enter a series of numbers

Assignment Help Programming Languages
Reference no: EM1364723

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:

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.

The required components for the assignment:
Software requirements
Algorithm
Hierarchy Chart
Pseudocode

Reference no: EM1364723

Questions Cloud

Explain new contract that dino signed : Explain new contract that Dino signed automatically gave Steamer the right to repossess all the furniture that Dino had previously bought
Design and write payroll program-employee-s hourly pay rate : Design and write a payroll program that will prompt the user to enter an employee's hourly pay rate and the number of hours worked.
Estimate project npv : A proposed nuclear power plant will cost $2.2 billion to build and then will produce cash flows of $300 million a year for fifteen years.
Estimate project npv : A proposed nuclear power plant will cost $2.2 billion to build and then will produce cash flows of $300 million a year for fifteen years.
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.
Structure of federal income tax : What is the rate structure of the U.S. federal income tax? Analyze the progressive nature of the U.S. tax system and its consequences.
Approaches to analyze market needs : Entrepreneurs use several approaches to analyze market needs, encourage new idea generation, and recognize business opportunities.
Find difference in the effective annual rates : Gomez Electrics requires arranging financing for its expansion program. Bank A offers to lend Gomez the required funds on a loan in which interest must be paid monthly, and the quoted rate is 8 percent
List and describe three guidelines for sound policy : List and describe briefly the three guidelines for sound policy, as stated by Bergeron and Bérubé. Are policies different from standards? In what way? Are policies different from procedures? In what way?

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a program that will generate an array

Write a program that will generate an array

  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.

  Design program that determines males live in zip code area

Design a program that determines how many males and females live in each of the Zip Code areas in the Student Enrollment Records Set.

  Advantages of contemporary languages allow kinds of comments

Many contemporary languages allow two kinds of comments, one in which delimiters are used on both ends (for multiple line comments), and one in which a delimiter marks only the beginning of the comment.

  Create test application that creates objects of type book

Create a test application that creates several objects of type book class and adds each Book to an ArrayList. Your test application should then do the following.

  Write program that asks user for initial

Write a program that asks a user for his/her first initial. Then ask the user to type 1,2 3, 4. When the user types 4 the program ends. When the user types in 1, 2, or 3 , the program displays the message.

  Write a single line for body of constructor to create object

Create the constructor Orb(int xSpeed, int ySpeed). Write a single line for the body of the constructor,which creates a new Velocity object.

  Expression evaluate to true if string variable equals string

Write an expression that evaluates to true if and only if the string variable equals the string "end". Suppose that the value of s were "friend".

  Write program to take as input salesperson-s expected sales

Write program to take as input the salesperson's expected weekly sales and outputs the wages paid under each plan as well as announcing the best-paying plan.

  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.

  Code to sum of all the elements of the array

Write some code that places the sum of all the elements of the array x into total. Declare any variables that you need.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

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