# visual basic

posted by .

i have an assignment that confuse me .here's the problem. table 4.9 gives the price schedule for eddie's rental company. full day rental cost one and a half day rentals.write a program that displays table 4.9 in a list box when an appropriate button is clicked on and displays a bill in another list box based on the item number and tie period chosen by the customer. the bill should include 30.00 dollars deposit. pls help me in this. i have to use an if else statement with a keypress events. thank you very much.

• visual basic -

Do you know how to set up the GUI (buttons, list boxes, etc?)

Table 4.9 is a static table, so all you need to do is to write the content to the textbox1.text when the appropriate button is pressed.

You will need another textbox (textbox2) to enter the item number and period. Another button (say btn2) will do these calculations and write the output to textbox3.text, where textbox3 is the third textbox for displaying the invoice.

You will have to explain to me why you need keypress events if you have input textbox and button presses. Your teacher must have explained that in class.

## Similar Questions

1. ### Math

For my class i have to solve this problem. I did it all but i am not sure its right. Heres the problem: The bike club of nj needed to rent a truck for 2 days. the president of the club got 3 different truck rentals companies to find …
2. ### math

A truck can be rented from basic rental for \$50 a day. in addition you have to pay .20 cents per mile. Cont. truck charges \$20 per day in addition to 50 cents per mile. How many miles must you drive in a day to make the rental cost …
3. ### Honors Algebra

Hi, I need some help with my Algebra. This is how it goes: Yet another company subsidiary of the company is a company that provides a dumpster rental service. The company will deliver a dumpster to a customer's site for a one-time …
4. ### Algebra 1

My little sister needs help on her homework and I don't remember really how to do this. I can't tell her if the answers or if she is doing them is the correct way. So if you could please tell me the answer and how you got it that would …
5. ### Math

1. If the point (-3,30) is on the graph y=(x-1)^2+14, where will the point be on y=(x-8)^2-6?
6. ### Math( Attn: Reiny)

1. A rental business charges \$12 per canoe and averages 36 rentals a day. For every 50-cent increase in rental price, it will lose two rentals a day. What price would yield the maximun revenue?
7. ### computer programming

a car rental company uses the following table to help compute rental fees . Chevrolet \$50.00 , corvette 85.00 , Pontiac 53.00 , Buick 60.00 , Oldsmobile 60.00 , Cadillac 70.00 (Rate per Day) . Rate per Mile .27 , .45 , .32 , .32 , …
8. ### Math

A truck can be rented from Basic Rental for \$45.00 a day plus \$0.25 per mile. Continental charges \$25.50 per day plus \$0.40 per mile to rent the same truck. a) Write an expression to calculate the cost of renting and driving a truck …
9. ### computer science

Acarrentalcompanyusesthefollowingtabletohelpcomputerentalfees. TABLE 9.3 Car Type Chevrolet Corvette Pontiac Buick Oldsmobile Cadillac Rate per Day 50.00 85.00 53.00 60.00 60.00 70.00 Rate per Mile 0.27 0.45 0.32 0.32 0.35 0.40 Write …
10. ### computer science

Acarrentalcompanyusesthefollowingtabletohelpcomputerentalfees. TABLE 9.3 Car Type Chevrolet Corvette Pontiac Buick Oldsmobile Cadillac Rate per Day 50.00 85.00 53.00 60.00 60.00 70.00 Rate per Mile 0.27 0.45 0.32 0.32 0.35 0.40 Write …

More Similar Questions