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...
-
Do you agree that managers and firms really pursue their interests? Why or why not?
-
This appeal involves the validity of a will executed in contravention of an earlier contract to make mutual wills. A husband and wife signed a contract to make mutual wills and then executed those...
-
Lame Specialties manufactures, among other things, woolen blankets for the athletic teams of the two local high schools. The company sews the blankets from fabric and sews on a logo patch purchased...
-
As part of a survey, 15 adults were asked, "How many hours did you spend at your job last week?" The results are shown in the stem-and-leaf display below. Use the display to answer the questions that...
-
Tu Technology Co. manufactures CDs and DVDs for computer software and entertainment companies. Tu uses job order costing. On November 2, Tu began production of 5,700 DVDs, Job 423, for Cyclorama...
-
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...
-
Determine the force in each member of the Gambrel roof truss shown. State whether each member is in tension or compression. e kaps 2kps 2 kips 3.6 ft I kip I kip B. -121--12n--12 ft--12 ft-
-
The director of finance has discovered an error in his WACC calculation. He did not factor in the tax rate when determining the cost of debt. UPC has a line of credit at 4% interest, and the company...
-
Question 1 Consider a 180-day forward contract on a certain commodity. The spot price of the commodity is Sh. 100. The commodity will attract a total of Sh. 15 in storage costs payable in three equal...
-
Try to identify the ways in which your workplace is diverse. Are there differences in race, ethnicity, gender, age, and physical ability? Are there different values and communication styles (in...
-
Assume Fred earned $10,450 in 1950, while Barney earned 18,397 in 1960. What would be Freds Real income expressed in 1960 prices? Show work and explain. CPI is not given.
-
6. For a business that wishes to follow an operational excellence value discipline strategy, which way should they lean, process or practice, and why? a. What about for customer intimacy type...
-
In Problems 1-3, name the conic or limiting form represented by the given equation. Usually you will need to use the process of completing the square 1. x2 + y2 - 2x + 2y + 1 = 0 2. x2 + y2 + 6x - 2y...
-
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...
-
Compare and contrast capitalism with a different economic system and answer the following question accordingly. Describe the organization of the labour process in your chosen system. Describe the...
-
The A frame shown is pin connected at A,B,C and D. The surface at E is level and frictionless. Calculate the reaction at E and the reaction components at the pins. ****Solve using the Method of...
-
Suppose that UTM students only buy two goods: (i) Textbooks and (ii) Pens. The cost of a Textbook is $80 each. The cost of a pen is $4 each. Suppose that students have $600 to spend. 1. Draw the...
Study smarter with the SolutionInn App