Write program which lets user enter charge account number

Assignment Help Programming Languages
Reference no: EM1371214

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: EM1371214

Questions Cloud

Market structures evolution : The four kinds of market structures are Perfect Competition, Monopoly, Oligopoly, and Monoplistic Competition. Given dynamics of competition, think of the different sequential paths of market structures which firms can move by over time (any of th..
Question about public and private goods : The citizens of Balaland used to pave 120 miles of roadways each year. After government of Balaland start paving 100 miles of roadways each year itself,
Explain the opportunities and threats related to marketing : Explain the opportunities and threats related to each of the following marketing environmental factors
Show the historical artifacts : Historical artifacts - Part of the problem is that many countries have become very leery of letting their historical artifacts go abroad.
Write program which lets user enter charge account number : Write the program which lets user enter a charge account number. The program must determine if number is valid by checking for it in following list.
Explain which cultures can relate to your communication : Explain Which cultures can relate to your communication-style characteristics and Approach this as a professional development piece-something you can bring to an interview to demonstrate your abilities
Media outlets : Exhibit for quite a few months and amazed - By countries being willing to associate and share, it allows individuals across the world to experience cultures that are unfamiliar. explain
Discuss culture issues at workplace : An Indian woman you recently recruited heavily and won to your corporation has come to you with a problem. Brought in as an engineering design manager in new products development
Create classes essential to create service quote : Create classes essential to create service quote. Write the application program which will use classes to create the objects and output the service quote.

Reviews

Write a Review

Programming Languages Questions & Answers

  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]

  Program-customer-s names phone numbers in alphabetical order

Load file into parallel arrays and display list of customers' names and phone numbers in alphabetical order.

  Program to print total balances forward and total withdrawal

At the end of report, print total balances forward, total deposits, total interest earned, total withdrawals and total final account balances.

  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'.

  Write statement essential to call compute interest method

Write statement essential to call the calculate interest method with an account balance of $2300.00 and an interest rate of 5%. What rule must be adhered to when calling a method with multiple parameters?

  Write class using static variable to store annual interest

Write class SavingsAccount. Use static variable annualInterestRate to store annual interest rate for all account holders. Each object of class contains private instance variable savingsBalance,

  Create class uses element array of digits to store integers

Create a class HugeInteger which uses a 40-element array of digits to store integers as large as 40 digits each. Provide methods input, output, add and subtract.

  Write subclass for constructor accepting a double

Write a (non-abstract) subclass, ApartmentHouse, containing: a constructor accepting a double, passed to the superclass constructor, and an int used to initialize numberOfApartments

  Program to create three identical list

Write a program to create three identical list, list1, list2, and list3, of 5000 elements. The program then sorts list1using quick sort, list 2 using insertion sort.

  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.

  Create program to calculate amount of paint needed

Create a program to calculate the amount of paint needed to cover one side of a house with a sloped roof . Assume tha this house has a rectangular shape with a rectangular window .

  Prepare class to include three data member

Prepare Class called Employee that includes three pieces of information as data members - first name (type string), last name (type string) and monthly salary (type float).

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