Question: Assignment Content In this module, you learned about advanced modularization techniques. You also learned about the advantages of modularization and how proper modularization techniques can
Assignment Content
In this module, you learned about advanced modularization techniques. You also learned about the advantages of modularization and how proper modularization techniques can increase code organization and reuse. You have the option of doing this either as a console application or Windows form
In this assignment, you will be creating two modules to complete calculations for Distance and Gallons Of Gas used.
Your program should meet the following objectives:
Create your project as MAssignmentYourLastname
NOTE: All controls and variables should be correctly named using the naming standards indicated in the text.
Variables are NOT single letters.
The variables declared should not be form level or global variables.
The user should enter the valuesTime and Speed into a textbox or combination for Textbox and Numeric UpDown
Use TryParse to validate the values the user entered if using a Textboxyou can decide if there should be a range check or not
If the value entered is invalidnon numeric display an error message in a messagebox control.
If the value entered is invalid, NO calculations should be executed.
There should be a method created for each calculation:
The speed and Time should be passed to the first method to calculate the Distance traveled.
The value calculated is then displayed in a Label.
This method has NO Return.
The Speed and Time should be passed to the second method to calculate the Gallons used based on the distance.
Use the Government Fuel Economy Website to find your cars MPG rating
The MPG of your car should be used numeric constant variable in the formula
The calculated value should be "Returned" to the calling statement and then displayed in a Label.
Make a working version of this program in C#
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
