Question: VISUAL PROGRAMMING need ASAP .. Please answer all questions thanks QUESTION 4 a) Given a following list of the tallest buildings in the world shown
VISUAL PROGRAMMING



need ASAP.. Please answer all questions thanks
QUESTION 4 a) Given a following list of the tallest buildings in the world shown by Table 4.0 Write a VB program codes that use a multi-dimensional array (strinfo) to store all the information in the Table 4.0 below. A combo box (cboBuilding) is used to display all of the buildings, and when user clicks on the Information command button (cmdinfo), it will display the city and height of the buildings in a message box as shown in the Figure 7.0 below Table 4.0: Tallest Building in the World Buildings Burj Khalifa One World Trade Center Petronas Tower Shanghai Tower City Dubai New York City Kuala Lumpur Shanghai Height (ft) 2717 1776 1483 2073 Biniame Buting huile One World Trade Center Po Say Tan Located at Height: Figure 7.0 (5 Marks) b) From the application in (a), add a Print command button (cmdPrint) that displays the most tallest building among the data store in the multi-dimensional array (strinfo) (hint - to compare, use Cint operator that convert the height value for the array). Then, display the building's name in a message box as shown in the Figure 8.0 below. Tallestudis Building Name Womation Part The Most Tallest Building is : Dubai OK Figure 8.0 (5 Marks) c) Given Figure 9.0 is a text file named as staff.txt. The file consists of staff name, position, overtime working hour and pay rate per hour. staft - Notepad File Edit Format View Help Ghazali Ilyas Supervisor 13 23.ee Hanani Halim Clerk 24 15.00 Abdul Jabbar Othman Manager 8 25.50 Figure 9.0 i) Provide a VB program codes for Open & Print File (cmdOpenPrintFile) command button that read the file and calculate the overtime payment for the staffs. Display the details in a list box (IstStaffs) as shown by Figure 10.0 below. A message box will appear if the file does not exist. Format the overtime payment and pay rate per hour to currency format. Calculation for overtime payment: Overtime working hour x 1.5 x Pay rate per hour Overtime Calculation Open & Print File Staff Name: Ghazali lyas Staff Position Supervisor Overtime (Houns): 13 Pay Rate Per Hour RM23.00 Total Overtime Payment RM448.50 Staff Name : Hanani Halim Staff Position Clerk Overtime (Hours): 24 Pay Rate Per Hour : RM15.00 Total Overtime Payment RM540.00 Staff Name : Abdul Jabbar Othman Staff Position Manager Overtime (Hons) 8 Pay Rate Per Hour RM25.50 Total Overtime Payment RM306.00 Figure 10.0 (6.75 marks) ii) Provide a VB program codes for the same Open & Print File (cmdOpenPrintFile) command button that print the details in the list box (IstStaffs) as shown by Figure 11.0 below. (Hint - title: Hpos = 100, Vpos = 80, list box: Hpos = 100, Vpos = 150) Overtime Payment List Staff Name : Ghazali Ilyas Staff Position : Supervisor Overtime (Hours) 13 Pay Rate Per Hour : RM23.00 Total Overtime Payment : RM448.50 Staff Name: Hanani Halim Staff Position : Clerk Overtime (Hours) : 24 Pay Rate Per Hour : RM15.00 Total Overtime Payment : RM540.00 Staff Name : Abdul Jabbar Othman Staff Position : Manager Overtime (Hours) : 8 Pay Rate Per Hour : RM25.50 Total Overtime Payment : RM306.00 Figure 11.0 (3.25 marks) QUESTION 4 a) Given a following list of the tallest buildings in the world shown by Table 4.0 Write a VB program codes that use a multi-dimensional array (strinfo) to store all the information in the Table 4.0 below. A combo box (cboBuilding) is used to display all of the buildings, and when user clicks on the Information command button (cmdinfo), it will display the city and height of the buildings in a message box as shown in the Figure 7.0 below Table 4.0: Tallest Building in the World Buildings Burj Khalifa One World Trade Center Petronas Tower Shanghai Tower City Dubai New York City Kuala Lumpur Shanghai Height (ft) 2717 1776 1483 2073 Biniame Buting huile One World Trade Center Po Say Tan Located at Height: Figure 7.0 (5 Marks) b) From the application in (a), add a Print command button (cmdPrint) that displays the most tallest building among the data store in the multi-dimensional array (strinfo) (hint - to compare, use Cint operator that convert the height value for the array). Then, display the building's name in a message box as shown in the Figure 8.0 below. Tallestudis Building Name Womation Part The Most Tallest Building is : Dubai OK Figure 8.0 (5 Marks) c) Given Figure 9.0 is a text file named as staff.txt. The file consists of staff name, position, overtime working hour and pay rate per hour. staft - Notepad File Edit Format View Help Ghazali Ilyas Supervisor 13 23.ee Hanani Halim Clerk 24 15.00 Abdul Jabbar Othman Manager 8 25.50 Figure 9.0 i) Provide a VB program codes for Open & Print File (cmdOpenPrintFile) command button that read the file and calculate the overtime payment for the staffs. Display the details in a list box (IstStaffs) as shown by Figure 10.0 below. A message box will appear if the file does not exist. Format the overtime payment and pay rate per hour to currency format. Calculation for overtime payment: Overtime working hour x 1.5 x Pay rate per hour Overtime Calculation Open & Print File Staff Name: Ghazali lyas Staff Position Supervisor Overtime (Houns): 13 Pay Rate Per Hour RM23.00 Total Overtime Payment RM448.50 Staff Name : Hanani Halim Staff Position Clerk Overtime (Hours): 24 Pay Rate Per Hour : RM15.00 Total Overtime Payment RM540.00 Staff Name : Abdul Jabbar Othman Staff Position Manager Overtime (Hons) 8 Pay Rate Per Hour RM25.50 Total Overtime Payment RM306.00 Figure 10.0 (6.75 marks) ii) Provide a VB program codes for the same Open & Print File (cmdOpenPrintFile) command button that print the details in the list box (IstStaffs) as shown by Figure 11.0 below. (Hint - title: Hpos = 100, Vpos = 80, list box: Hpos = 100, Vpos = 150) Overtime Payment List Staff Name : Ghazali Ilyas Staff Position : Supervisor Overtime (Hours) 13 Pay Rate Per Hour : RM23.00 Total Overtime Payment : RM448.50 Staff Name: Hanani Halim Staff Position : Clerk Overtime (Hours) : 24 Pay Rate Per Hour : RM15.00 Total Overtime Payment : RM540.00 Staff Name : Abdul Jabbar Othman Staff Position : Manager Overtime (Hours) : 8 Pay Rate Per Hour : RM25.50 Total Overtime Payment : RM306.00 Figure 11.0 (3.25 marks)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
