Answered step by step
Verified Expert Solution
Question
1 Approved Answer
visual Programming please answer both questions thanks QUESTION 2 a) Tesla services Sdn Bhd charges RM35 per hour for labour cost. Due to the COVID-19
visual Programming
please answer both questions thanks
QUESTION 2 a) Tesla services Sdn Bhd charges RM35 per hour for labour cost. Due to the COVID-19 pandemic, the company gives a 15% discount for the cost of part and supplies to reduce maintenance costs. However, the cost for parts and supplies is still subject to a 5% sales tax. Write a VB program segment to request the customer name in a textbox named txtName, the number of hours of labour in a textbox named txtHours and the cost of parts and supplies in a textbox named txtCost Supplies. When a button named btnDisplay is clicked, the customer name and the four costs such as (i) the cost of labour, (ii) the cost of parts and supplies, (iii) the total cost of parts and supplies after deducting a 15% discount from the cost and add the sales tax to the cost, (iv) and the total costs. All of these items should be displayed using appropriate indentation in a list box named IstReceipt. All the costs should be presented in currency format Tesla Services Sdn Bhd Customer Name Ahmad Display 21 Hours of labor 2 Cost of parts and suppleo 200 Recept from Tesla Services Sdn Bhd Name: Cost Labour Cost Parts and Supplies Total Cost Parts and Supplies Total Ahmad RM70.00 RM200.00 RM178.50 RM248.50 Figure 2.0 (5 marks) b) No 1 2 3 List of equipment Basic Laptop Premium Laptop Business Class Laptop Table 2.0 1 day RM80.00 RM 120.00 RM 200.00 7 days RM350.00 RM 450.00 RM 600.00 Table above shows the price schedule for laptop rental at the VSM Specialist Sdn Bhd. Write a VB segment code to display a bill in a list box named IstReceipt when a button Display named btnDisplay is clicked. Prior to that, system will receive input values for the item number in a textbox named txtItem No and the package available such as 1-day or 7-days options provided in checkboxes named chk1 Day and chk7Days respectively. The bill should also include a RM 300 deposit and Total amount. A sample form is shown below in Figure 3.0: Laptop rental VSM specialist Sdn Bhd X 1 Display Ball tem Number (1.2 or 3 ONLY) Package 1 day 7days Receipt from VSM specialist Sch Bhd. Basic Laptop RM80.00 Depost RM300.00 Total RM380.00 Figure 3.0Step 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