Concept explainers
2) Prompt the user for a bank account number. Then if the user is an existing customer, greet them with their name.
Ex:
Please enter your bank account number: 109 Greetings, John Doe!
Here's an example of python code to implement the prompt and greeting:
Input:
bank_accounts = {
"109": {"name": "John Doe"},
"110": {"name": "Jane Doe"},
"111": {"name": "Jim Brown"}
}
bank_account_number = input("Please enter your bank account number: ")
if bank_account_number in bank_accounts:
name = bank_accounts[bank_account_number]["name"]
print(f"Greetings, {name}!")
else:
print("Sorry, we could not find an account associated with that number.")
Output:
Please enter your bank account number: 109
Greetings, John Doe!
Step by stepSolved in 2 steps with 1 images
- Prompt the user to enter their dinner bill and the percentage they want to tip. Calculate the tip and total bill. Display a column of values aligned by the decimal place. The rows should be diner cost, tip and total.arrow_forward8. A column of type __________ may contain rows of different data types.a) ntextb) datec) smallmoneyd) sql_variantarrow_forwardT9arrow_forward
- Problem: Assume that you have been hired to write a java application for SQU students' clinic to help receptionist to manage the clinic appointments. There are two type of appointments: emergency appointment and routine appointment. Each appointment has the following information: patient ID, patient name, appointment date and time, and doctor name. Emergency appointment can be scheduled on the same date and the patient symptoms (e.g. cough, fever, cold, diarrhea, injury, ...) should be recorded. While for a routine appointment the patient can decide when he/she would like to have the appointment and the required tests (e.g., blood, x-ray, urine, ...) should also be recorded. Your application should read the initial appointments records from a file called "Clinic Appointments.txt" (check Figure 1 for a sample input file). Your program should then display a menu for the receptionist (shown in the sample runs) then he/she can choose the service. For scheduling an appointment, they can…arrow_forwardEvaluate this expression, assuming a = 5, b = 2, and c = 4: a % b c && c % b * aarrow_forwardQUESTION 6 A CASE expression may use a O ELSE clause THEN All of these END WHEN None of thesearrow_forward
- Include a formula in the last column on the third row to calculate 75% of the Cost. The formula is =0.75*b3. You do not need to select a number format. Include a formula in the next two rows of the same column, adjusting the row reference as necessary.arrow_forwardq. if the payee, such as a grocery store, keeps the original check, this is called ____ a.) primary reservation b.) simple truncation c.) radical truncation d.) secondary reservation Please do fast ASAP fastarrow_forwardCreate a simple IPO chart that enters an individual's year of birth and the present year and calculate and return the individual's current agearrow_forward
- Fix the following code:Dim dblRegularPay As DoubleDim dblOvertimePay As DoubleintRegularPay = 783.87intOvertimePay = 105.92lbl.TotalPay = (dblRegularPay + dblOvertimePay).ToString ('C')arrow_forwardSolve the following using multiple selections structure. Draw a flowchart only.arrow_forwardPlease and thank find the valuearrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education