Question: really needing help. It is telling me i have no errors but anytime i try to start or debug my project, it throws an exception

really needing help. It is telling me i have no errors but anytime i try to start or debug my project, it throws an exception when calculting the total price. i cant get the text box for a total purchase amount to convert to a decimal really needing help. It is telling me i have no errors but

11.cs [Design] _and_total_final Chpt._3PP_Sales_tax_and_total_final.Form1 decimal totalPurchasePrice; totalPriceButton_Click(object sender, EventArg stateSales Tax = 4m / 100; countySalesTax - 2m / 100; totalSales Tax = stateSales Tax + countySales Tax; purchasePrice = decimal.Parse(inputPrice.Text); totalPurchasePrice = (1 + totalSales Tax). (deci Exception Unhandled 4 X x outputLabel. Text - totalPurchasePrice.ToString(" System.FormatException: Input string was not in a correct format. This exception was originally thrown at this call stack [External Code) Chpt_3PP_Sales_tax_and_total_final.Form1 totalPriceButton_Click(obj 1 reference [External Code] private void exitButton_Click(object sender, EventAr Chpt_3PP_Sales_tax_and_total_final.Program.Main() in Program.ss this.close(); View Details Copy Details Start Live Share session.... Exception Settings Break when this exception type is thrown Except when thrown from: in Chpt3PP_Sales_tax_and_total_final.exe Open Exception Settings Edit Conditions I I ssues found Ln: 71 Ch: 13 0 Errors A Warnings 6 0 of 7 Messages XY Build IntelliSense Ecription es Exception Settings Command Window Immediate Window Output Error List Project

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To resolve the SystemFormatException you need to ensure that the input from your text box is in a fo... View full answer

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!