Question: Just need help with the model Price Quotation Model Portion For this assignment, you will build a single-page app like the one that's shown below.

 Just need help with the model Price Quotation Model Portion For

Just need help with the model Price Quotation Model Portion

For this assignment, you will build a single-page app like the one that's shown below. O X Price Quotation x + + C localhost:5001 Q Price Quotation Subtotal: Discount percent Discount amount Total: Calculate Clear 500 20 $100.00 $400.00 Specifications Start a new ASP.NET Core MVC web application (you may start it based upon the Model-View-Controller template as we did in the Future Value practice exercise). Name the application Cho2Quotation When the app starts, it should display the Price Quotation page with no subtotal or discount percent. The discount amount and total should show $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. Here are the 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. In the model class, store the subtotal and discount percent and include methods to calculate the discount amount and total. Use a custom CSS style sheet to style the HTML elements so they appear as shown above. *Notes: For validation to check that a number is entered that is greater than 0, do a Google search for best way of adding a greater than 0 validator using MVC and data annotation". For this assignment, you will build a single-page app like the one that's shown below. O X Price Quotation x + + C localhost:5001 Q Price Quotation Subtotal: Discount percent Discount amount Total: Calculate Clear 500 20 $100.00 $400.00 Specifications Start a new ASP.NET Core MVC web application (you may start it based upon the Model-View-Controller template as we did in the Future Value practice exercise). Name the application Cho2Quotation When the app starts, it should display the Price Quotation page with no subtotal or discount percent. The discount amount and total should show $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. Here are the 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. In the model class, store the subtotal and discount percent and include methods to calculate the discount amount and total. Use a custom CSS style sheet to style the HTML elements so they appear as shown above. *Notes: For validation to check that a number is entered that is greater than 0, do a Google search for best way of adding a greater than 0 validator using MVC and data annotation

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!