Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Designing, Instantiating and Using a OOP class. The Windows Calc button's click event should instantiate an object, send all values from the GUI to the

Designing, Instantiating and Using a OOP class.

The Windows Calc button's click event should instantiate an object, send all values from the GUI to the properties in the object and call the object's methods for calculating and returning Total Cost.

image text in transcribed

General Instructions: Application: This program is designed to enable users to de termine which of two cars to drive to work and which route to take Travel Expense System Travel Expense Management Information System The user selects a car, a route and enters a price for a gallon of gasoline Once the user clicks on the calculate button the program determines the cost of using the select- ed car on the selected route at that price for gas- oline Auto Mileage 15.5 Buick Electra Total Miles 21 Chevy Lumina Processing: Route 1. The program should calculate the total cost based upon the selected automobile and the selected route when the user clicks on the Calc command button The user will need to supply the auto and route selection as well as the price of gasoline All calculations should be error trapped to keep the program from crashing. Optional: For those of you interested in an extra challenge, program the textbox entry to allow only numeric values or one decimal to be entered (without using the masked edit textbox) Gas Price 1.09 Freeway Total Cost $1.48 City 2. 3. Calc Quit 4. The interface should never be inaccurate 5. The Quit command button should end the pro- gram Additional Notes: C# Programming 1. 2. 3. 4. The Buick gets 23.7 miles per gallon on the freeway and 15.5 miles per gallon in the city The Chevy gets 29.3 miles per gallon on the freeway and 19.8 miles per gallon in the city Freeway distance is 33 miles. City driving distance is 21 miles Project #5

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 19th International Conference Dexa 2008 Turin Italy September 2008 Proceedings Lncs 5181

Authors: Sourav S. Bhowmick ,Josef Kung ,Roland Wagner

2008th Edition

3540856536, 978-3540856535

More Books

Students also viewed these Databases questions

Question

7. Do the organizations social activities reflect diversity?

Answered: 1 week ago

Question

Understand why empowerment is so important in many frontline jobs.

Answered: 1 week ago