Write a program that records transactions for customers into a 4 column array. T
ID: 3685330 • Letter: W
Question
Write a program that records transactions for customers into a 4 column array. The program runs a hair salon/day spa that provides 2 service types (hair and skin) Use 1 listbox (or combobox) for the hair services, and another for the skin services. For each transaction, store the customer ID and the cost of each treatment into the columns of the array. If there is only 1 service type (skin or hair) then store 0 in the column of the array. So column 0 is the customer ID, column 1 is the cost of hair treatment and column 2 is the cost of skin treatment. While you store the details of the sale into an array, also call a function to do the calculation of the total cost of the service charge. The salon charges 25% higher charge fee for Saturday and Sunday, so include a listbox of days of the week on the form so the receptionist at the spa can indicate what day it is. The function then receives 1)day of week, 2) cost of the service. The function returns the amount to be charged (during the calculation add 7% sales tax). After calculating the sale, store the total in the 4th column of the array
Explanation / Answer
I have written the code in c#.net. The code is using System; using System.Drawing; using System.Windows.Forms; namespace WindowsFormsApplication1 namespace services; { int[,] services = new int[4, 4] { { "101",”3000” "30000",”Sunday” }, { "102”, “1000", "3000",”Tuesday” }, { "103”, “4000", "10000",”Saturday”}, { "104”, “500”, "500",”Wednesday” } }; for (int i = 0; iRelated Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.