Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Make and set up a web app using the MVC template Add and modify the model, Razor view imports page, and a strongly-typed view Add
- Make and set up a web app using the MVC template
- Add and modify the model, Razor view imports page, and a strongly-typed view
- Add the Razor layout and view start
- Add data validation
Price Quotation Web App
- When the app starts, it should display the Price Quotation page with no subtotal or discount percent, and it should set the discount amount and total to $0.00.
- If the user enters a valid subtotal and discount percent and clicks the Calculate button, the app should calculate and display the discount amount and total.
- If the user enters invalid data and clicks the Calculate button, the app should display a summary of validation errors above the form.
- Requirements for valid data:
- The sales price is required and must be a valid number that's greater than 0.
- The discount percent is required and must be a valid number from 0 to 100.
- If the user clicks the Clear link, the app should reset the form to how it was when the app first started.
- Use the MVC pattern. To do that, create a model class that stores the subtotal and discount percent and calculates the discount amount and total. Make sure to bind that model to the Razor view that displays the Price Quotation page shown above.
- Use a Razor layout to store the , , and elements.
- Use a custom CSS style sheet to style the HTML elements so they appear as shown above.
Tasks - Tip Calculator Web App
Watch the video overview. You only need to watch one of the videos. If you are using a Windows computer to complete the work this semester, please watch "Video Overview (Windows)". If you are using a Mac computer, please watch "Video Overview (macOS)".
Tip Calculator Web App
- When the app starts, it should display an empty text box and tip amounts of $0.00.
- If the user enters a valid meal cost and clicks the Calculate button, the app should calculate and display the tip amounts as shown above.
- If the user enters invalid data and clicks the Calculate button, the app should display a summary of validation errors above the form and $0.00 for the tip amounts.
- The cost of the meal is required and must be a valid number that's greater than 0.
- If the user clicks the Clear link, the app should reset the page to how it was when the app first started.
- Use the MVC pattern. To do that, create a model class that stores the cost of the meal and includes a helper method for calculating the tip percentages.
- Use a Razor layout to store the , , and elements.
- Use a custom CSS style sheet to style the HTML elements so they appear as shown above.
REQUIRED: MAKE IT YOUR OWN
- On each of the .cshtml pages, you should have your first name in the H1 tags
- OPTIONAL: Add any additional elements you would like (Have fun with it!)
Submit
- Take a screenshot of the following and put them in a word document
- The Price Quotation web app running locally on your machine with the following inputs entered and the calculate button pressed (YOU MUST SHOW THE BROWSER URL FOR CREDIT)
- Subtotal: 245.86
- Discount percent: 25
- The Tip Calculator web app running locally on your machine with the following input entered and the calculate button pressed. (YOU MUST SHOW THE BROWSER URL FOR CREDIT)
- Cost of meal: 123.78
- The code in the HomeController.cs classes for each project (MUST INCLUDE A LINE OF PSEUDO CODE FOR EACH LINE OF SOURCE CODE CREATED)
- The code in the new model classes for each project (MUST INCLUDE A LINE OF PSEUDO CODE FOR EACH LINE OF SOURCE CODE CREATED)
- Remember to make it your own. Your first name should display on each of the .cshtml pages
- The Price Quotation web app running locally on your machine with the following inputs entered and the calculate button pressed (YOU MUST SHOW THE BROWSER URL FOR CREDIT)
- Submit the screenshots.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started