Write the Visual Basic code for the algorithm shown in Figure 5-10 in this lesson. The car
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 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.
Transcribed Image Text:
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
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 77% (9 reviews)
intDailyFee 55 If strClass L Then I...View the full answer
Answered By
Emel Khan
I have the ability to effectively communicate and demonstrate concepts to students. Through my practical application of the subject required, I am able to provide real-world examples and clarify complex ideas. This helps students to better understand and retain the information, leading to improved performance and confidence in their abilities. Additionally, my hands-on approach allows for interactive lessons and personalized instruction, catering to the individual needs and learning styles of each student.
5.00+
2+ Reviews
10+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer science questions
-
Write the Visual Basic code for a pretest loop that uses an Integer variable named intEven to display the even integers from 2 through 20 in the lblEven control. Use the For...Next statement. Display...
-
Write the Visual Basic code that corresponds to the flowchart shown in Figure 6-30. Display the calculated results on separate lines in the lblCount control. start initialize counter to 5 T display...
-
Write the Visual Basic code that displays the message Use the Kanton room when the number of seminar participants is at least 75. When the number is 40 through 74, display the message Use the Harris...
-
Sienna has experienced a couple of profitable months and has over $20,600 in disposable income, however she is thinking that she should replace a few of her high-end blenders for the smoothie bar....
-
For each of the following, find the maximum and minimum of f on H. a) f(x, y) = x2 + 2x - y2 and H = {(x, y) : x2 + 4y2 < 4} b) f(x, y) = x2 + 2xy + 3y2, and H is the region bounded by the triangle...
-
noin 2. Assume the following current information: (i) The deposit rate on Euro-yen 6-month deposits = 3% per annum (ii) The deposit rate on Eruo-Cdn $ 6-month deposits = 4% per annum (iii) The...
-
What the methods are for service of a summons and complaint?
-
On January 1, 2016, the Wardens Restaurant decides to invest in Lake Turner bonds. The bonds mature on December 31, 2030, and pay interest on June 30 and December 31 at 5% annually. The market rate...
-
atement - Lyman Sisters Inc. Here is the adjusted trial balance for Lyman Sisters Inc. Step 1: For each account in the trial balance, identify the account type. Step 2: Prepare a multistep income...
-
Assume you have been asked to develop a proposal for Memorial University to enhance the quality of undergraduate student ratings of teacher performance. Along these lines, the university has decided...
-
What will the code in Figure 5-28 assign to the dblRate variable when the dblSales variable contains the number 1000? a. 0 b. 0.05 c. 0.1 d. 0.15 If db1Sales
-
In this exercise, you code an application that allows the user to select one radio button from each of two groups: an English group and a Spanish group. Open the VB2015\ Chap05\Language...
-
Notown Recording Studio rents studio time to musicians in 2-hour blocks. Each session includes the use of the studio facilities, a digital recorded CD of the performance, and a professional music...
-
through its first quarter of operations placed a considerable strain on Ms. Tyler's personal finances. The following income statement for the first quarter was prepared by a friend who has just...
-
Hillside Pharmaceuticals is an Irish firm that manufactures generic drugs. 95% of its customers are in the Euro area. It has recently completed construction of a new fabrication facility in Cork,...
-
Discuss the 2008, 2016, and 2020 Electoral College results acknowledging Agnew's key argument, King's critique, and Agnew's response as well as Johnston's observations. How would you apply space,...
-
It is now January. The current annual interest rate is 3%. The June futures price for gold is $1,246.30, while the December futures price is $1,251. Assume the June contract expires in exactly 6...
-
A 20-kg box is at rest on a rough inclined surface of 15 degrees, where the coefficient of static and kinetic friction is 0.35 and 0.25 respectively. (a) Will the box remain stationary? (b) A force...
-
County is considering using a piece of park land for one of two alternative recreation projects. Project A would require construction costs of $2 million (year 0) and generate net benefits of $1...
-
The Ranch 888 Noodle Company sells two types of dried noodles:ramen, at $6.50 per box, and chow fun, at $7.70 per box. So farthis year, the company has sold a total of 110,096 boxes ofnoodles,...
-
Assume $t0 holds the value 0x00101000. What is the value of $t2 aft er the following instructions? $t2, $0, slt $t0 bne $t2, $0, ELSE DONE ELSE: addi $t2, $t2, 2 DONE:
-
Suppose the program counter (PC) is set to 0x2000 0000. Is it possible to use the jump (j) MIPS assembly instruction to set the PC to the address as 0x4000 0000? Is it possible to use the...
-
Assume the following register contents: $t0 = 0xAAAAAAAA, $t1 = 0x12345678 1. [5] For the register values shown above, what is the value of $t2 for the following sequence of instructions? 2. For the...
-
A nursing team is having a routine meeting. One of the nurses, Stephen, is at the end of a 12-hour shift, and another nurse, Tanya, is just beginning hers. Tanya is a senior nurse in the unit with...
-
Assume that you are the leadership team of a convenience store chain that has more than 300 outlets. The company is facing an inventory shrinkage problem, and store managers report that the main...
-
1 . An employee at Amy's candles has noticed that some order quantities in the two reports presented are different although the order numbers are the same. We normally refer to such data as dirty....
Study smarter with the SolutionInn App