Engineering
Engineering, 16.04.2021 08:50, Braxtonw875

Write a program that asks the user to enter an account number as a string. The account number consists of 8 characters and is divided as follows:
 The first 2 characters are digits and represent the branch (00 for Beirut, 01 for Saida, 02 for Tripoli).
 The remaining 6 characters represent the customer’s account number
A valid account number consists of exactly 8 characters. If the account is valid, the program prints the details
(branch and account number). If the account is not valid, the program displays a message to the user.
Sample Run 1:
Enter a string: 100201
Not valid
//It is not valid because the string is not composed of 8 characters
Sample Run 2:
Enter a string: AB100201
Not valid
//It is not valid because the branch is wrong
Sample Run 3:
Enter a string: 00100201
Branch: Beirut
Customer number: 100201
Sample Run 4:
Enter a string: 0210AB01
Branch: Tripoli
Customer number: 10AB01

answer
Answers: 2

Other questions on the subject: Engineering

image
Engineering, 03.07.2019 15:10, margaret1758
If you were designing a bumper for a car, would you prefer it to exhibit elastic or plastic deformation? why? consider the functions of a bumper in both a minor "fender-bender" and a major collision.
Answers: 1
image
Engineering, 04.07.2019 18:10, wirchakethan23
Hydraulic fluid with a sg. of 0.78 is flowing through a 1.5 in. i. d. pipe at 58 gal/min. the fluid has an absolute viscosity of 11.8 x 105 lbf-sec/ft2. is the flow laminar, turbulent or within the critical range? give both a numerical reynolds number and a term answer.
Answers: 3
image
Engineering, 04.07.2019 18:10, nandalabella06
True or false (explain) (110)[111] is a slip system in bcc metals . the {111} family in fcc contains 8 planes. resolved shear stress (rss) in single crystals is just related to the applied stress. critical resolved shear stress (crss) in single crystal metals is direct proportional to the number of defects in the structure
Answers: 2
image
Engineering, 04.07.2019 18:20, sarah7984
Vibration monitoring this technique uses the noise or vibration created by mechanical equipment and in seme cases by plant systems to detemine their actual condtion. a)- true b)- false
Answers: 2
Do you know the correct answer?
Write a program that asks the user to enter an account number as a string. The account number consis...

Questions in other subjects: