Write program that lets user enter charge account number

Assignment Help Programming Languages
Reference no: EM1360977

1. Write a program that lets the user enter a charge account number. The program should determine if the number is valid by checking for it in the following list:

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

The list of numbers above should be initialized in a single-dimensional array. A simple linear search should be used to locate the number entered by the user. If the user enters a number that is in the array, the program should display a message saying that the number is valid. If the user enters a number that is not in the array, the program should display a message indicating that the number is invalid.

Reference no: EM1360977

Questions Cloud

Elucidate how banks and individuals can use covered interest : Elucidate how banks and individuals can use "covered interest arbitrage" to protect themselves when they make international financial investments.
What criteria must a successful policy model include : How can public policy be viewed as the "preferences and values of a governing elite and compare and contrast incremental and rational methods of policy making? Include examples of each model.
What is the angular displacement of the propeller : find the angular displacement of the propeller.
Stress management workshop : My assignment is to create a paper and presentation of a stress management workshop and I need help with the population of individuals that are the caretakers of the chronically ill family members or loved ones.
Write program that lets user enter charge account number : Write a program that lets the user enter a charge account number. The program should determine if the number is valid by checking for it in the following list.
Community issues : The source of information may be from the print media or Internet. Find articles or websites that focus on a hot topic that is of interest to you.
Compute the principal balance on the loan : You take out a thirty year $100,000 mortgage loan with an APR of 6% and monthly payments. In 12 years you decide to sell your house and pay off the mortgage.
What requires the highest sales volume to earn a profit : What requires the highest sales volume to earn a profit. Would it be better to have fewer airline companies and more full planes.
Facing significant stressors : For this assignment, I'm required to think about coping strategies that an individual employs when facing significant stressors and to create either a true or fictional situation involving someone other than myself.

Reviews

Write a Review

Programming Languages Questions & Answers

  Describing program using suiatble printf command

Yyou have to describe all of this to user using suiatble printf() statements.

  Write a program to print average grade of student

Write a program that read the grades.txt file and then prints the average grade of male and female students and the number of passed students by using the functions.

  Write a program to enter the number of apartment units

Write a program that prompts the user to enter the number of apartment units, the rent to occupy all the units, the increase in rent that result in a vacant unit.

  Determine branch folding for unconditional branches

Determine the improvement from branch folding for unconditional branches. Assume a 90% hit rate, a base CPI without unconditional branch stalls of 1.

  Compute the product xy

Given two integers X and Y compute the product XY (multiplication), the quotient X=Y (integer division), and the modulus X (mod Y) (remainder).

  Expression whose value is distance between two point

a structured type with two fields, x and y, both of type double-- write an expression whose value is the distance between the two point represented by p1 and p2.

  Explaining exception handling using program

Use exception handling appropriately. Use comments to illustrate the various concepts applied / utilized in the solution.

  Write a program to read student data from standard input

Write a program to read student data from standard input, sort it by last name / first name, and print result to standard output.

  Write a program in q basic that accept student name

Write a program in Q basic that accept a student name,score obtained in 5 course and compute the average score of the student and my program must display the name of the student

  Write pseudocode and flowchart for program

Write pseudocode and flowchart for program that will prompt the user for a number, prompt the user for an operator (+,-,*,/).

  Determine bowler had highest average and print name

Output the bowlers name, avg. and number of stars earned. Discover which bowler had the highest average and print out their name and average.

  Create a menu type form that gives user to select subforms

Create a menu type form that provides the user the capability to select one of the following two subforms. Means of selection is programmers choice.

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