Limited-time offer! Save up to 50% Off | Solutions starting at $6 each  

Trusted by 2+ million users,
1000+ happy students everyday
Showing pages 1 to 1 of 3 pages
Project #1 - bashUsing bash (not a higher level language), construct a program which manages customer files. Eachcustomer has a separate file. Your program will interactively manage customer accounts.Customer File ContentOne file per customer, named the customer's email addressEach customer file contains two records:1.Identification recordwhich has two attributes:Customer EmailCustomer Full Name2.Account recordwhich has four attributes:Apartment Number - format (APT-xx)Monthly Rent AmtAccount BalanceNext Due DateExample customer file contents:board@xyz.comBill BoardAPT-5A 1100.00 0.00 2017-10-01Action MenuDisplay a menu which showsEnter one of the following actions or press CTRL-D to exit.C - create a customer fileP - accept a customer paymentF - find customer by apartment numberRead a one character action. Based on the action, do the following:C - CREATE - create a customer fileFrom the terminal, read (each from separate read requests)oCustomer EmailoCustomer Full NameoApartment NumberoMonthly Rent AmtoNext Due DateDefault the Account Balance to zeroCreate a new customer file using the customer's email as the file name. If thefile already exists, show an error message (and do nothing).Assume that each of the five attributes should be read before checking for priorexistence.P - PAYMENT - accept customer paymentFrom the terminal, readoCustomer EmailoPayment AmountUpdate the customer's file, adding the payment amount to the Account Balance
You’re reading a preview
Preview Documents

To View Complete Document

Click the button to download
Subscribe to our plans

Download This Document