Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

image text in transcribed

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.0

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2017 Skopje Macedonia September 18 22 2017 Proceedings Part 3 Lnai 10536

Authors: Yasemin Altun ,Kamalika Das ,Taneli Mielikainen ,Donato Malerba ,Jerzy Stefanowski ,Jesse Read ,Marinka Zitnik ,Michelangelo Ceci ,Saso Dzeroski

1st Edition

3319712721, 978-3319712727

Students also viewed these Databases questions