Question: Write the Visual Basic code for the algorithm shown in Figure 5-10 in this lesson. The car classification (either S for standard or L for
Write the Visual Basic code for the algorithm shown in Figure 5-10 in this lesson. The car classification (either S for standard or L for luxury) is stored, in uppercase, in a variable named strClass. The club membership information (either M for member or N for nonmember) is stored, in uppercase, in a variable named strClub. Assign the fee to a variable named intDailyFee. Display the fee in the lblFee control.

Problem Specification Sam's Car Rental wants an application that displays the daily fee for renting a car. The daily fee is $55; however, there is an additional charge for renting a luxury car. The additional charge depends on whether the customer belongs to Sam's Car Rental Club, as indicated in the chart shown here: $55 Daily fee: Additional daily charge for luxury car: Club member $20 $30 Nonmember Correct algorithm 1. daily fee = 55 2. if luxury car if club member add 20 to the daily fee else add 30 to the daily fee end if end if 3. display the daily fee
Step by Step Solution
3.49 Rating (166 Votes )
There are 3 Steps involved in it
intDailyFee 55 If strClass L Then I... View full answer
Get step-by-step solutions from verified subject matter experts
