Question: You will write a menu-driven program with 4 options that will accomplish the following 4 operations using individual vold) functions for each menu option: 1.
You will write a menu-driven program with 4 options that will accomplish the following 4 operations using individual vold) functions for each menu option: 1. From an input file named fle1.txt, read the data into a 2D list. This data represents the sales of three (3) different banks in four (4) regions. [The 2D list will have 3 rows and 4 columns). Once the data has been stored in the 2D list, calculate and display the lowest sales for each region. 2. Declare three (3) sets named checking, savings, and creditcard. Read the data from three (3) input files named file2.bit, file3.txt, and file4.but, and store them into the 3 sets created. (These files contain the names of customers, one name on each line.) Find and display the customers who have savings and credit card accounts. Find and display the customers who have savings accounts but not checking accounts. [You must use the built-in set operations or operators.) 3. Create a dictionary that will store the keys and values for six (6) credit card types based on the table below. Read data from an input file named file6.txt. and store it in a list. (This file contains the credit card numbers for a few customer accounts, one number on each line). Calculate and display the total number of credit card numbers that are associated with Visa (.e., the first digit of the credit card number is 4). 1st Digit Card Type Airline- related 3 American Express 4 Visa MasterCard You will write a menu-driven program with 4 options that will accomplish the following 4 operations using individual vold) functions for each menu option: 1. From an input file named fle1.txt, read the data into a 2D list. This data represents the sales of three (3) different banks in four (4) regions. [The 2D list will have 3 rows and 4 columns). Once the data has been stored in the 2D list, calculate and display the lowest sales for each region. 2. Declare three (3) sets named checking, savings, and creditcard. Read the data from three (3) input files named file2.bit, file3.txt, and file4.but, and store them into the 3 sets created. (These files contain the names of customers, one name on each line.) Find and display the customers who have savings and credit card accounts. Find and display the customers who have savings accounts but not checking accounts. [You must use the built-in set operations or operators.) 3. Create a dictionary that will store the keys and values for six (6) credit card types based on the table below. Read data from an input file named file6.txt. and store it in a list. (This file contains the credit card numbers for a few customer accounts, one number on each line). Calculate and display the total number of credit card numbers that are associated with Visa (.e., the first digit of the credit card number is 4). 1st Digit Card Type Airline- related 3 American Express 4 Visa MasterCard
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
