Question
TECH 1211 Computer Programming Lab Program 8 Autoteller Program that Branches Using a Switch Objectives: 1. To introduce the student to the character data type,
TECH 1211 Computer Programming Lab Program 8 Autoteller Program that Branches Using a Switch Objectives: 1. To introduce the student to the character data type, %c 2. To familiarize the student with the basic Switch statement
Background: This program is intended to follow the logic typically encountered using an ATM machine. Assume the customers balance is $100.
Write a program using a Switch statement to allow the ATM customer to enter a specific letter that determines the nature of the transaction. Carry out the required calculation and display the balance. The session should look like the following:
Output Screen:
The program should just check the balance.
The program should permit a deposit.
The program should allow a withdraw.
The program should check to make sure there is enough money in the account to cover the withdraw.
Note: A new type of data is introduced, char. Variables that are used to represent data that is text in nature (i.e. symbols or letters) is defined in the program prior to the use of the variable.
Save and upload to ecourseware this program using the file name: YourLastName_YourFirstName_Program_8_Sort_Autoteller_Switch.c
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started