can someone please help me fix this code and add the code for the total invoice amount to the average discount percet
the error says overload. string
trainvoice Total.es fmUltralnvoice Total.es (Design) - X Invoice Total Enter Subtotal Subtotal: #of 20% Invoices #of 15% Invoices # of 102 Invoices of 0% invoices Discount Percent Discount mount Total #of All Invoices Total invoice Amount: Total Discount Amount: Average Invoice Amount Average Discount Percent rere Solution 1 Waming of Messages Code Descon CS1501 Moved for methodToString takes 1 arguments 56019 The variable de c e rcent is signed but is value is never used Build IntelliSense Type here to search tep - Invoice Total.frminvoice Total decimal decDiscountAmount - decSubtotal decDiscount Percent; decimal decTotal - decSubtotal - decDiscountAmount; I/aggregate processing intNumberOf Invoices++; decTotalInvoiceAmount +- decTotal; deciverageInvoiceAmount - dec TotalInvoiceAmount / int Number of invoices; 1/output txtSubtotal.Text - decSubtotal.ToString("c"); txtDiscount Percent.Text - decDiscount Percent.ToString("p2"); txtDiscount Amount. Text - decDiscount Amount.ToString(""); txt Total. Text-decTotal.ToString(""); //Declear my variables; 1/txtNumber of percentInvoices. Text - Convert.ToInt32(txtumberOfPercentInvoices); 1/txtuberof LoPercentInvoices.Text = Convert.ToInt32(txtuberof PercentInvoices); 1/txtuberof 15PercentInvoices.Text - Convert.ToInt32[txtumberOf 15PercentInvoices); //txtNumber of 20PercentInvoices.Text = Convert.ToInt32[txtuberof20PercentInvoices); int int lumberOfPercentInvoices - Convert.ToInt32(txtNumberOfPercentInvoices); // here I am declearing my follow int intrumber of 10PercentInvoices - Convert.ToInt32(taxtimberOfPercentInvoices); int intimberOf 15PercentInvoices Convert.ToInt32(tctimberOf 15PercentInvoices); int intimberOf20PercentInvoices - Convert.ToInt32(txtNumber of 20PercentInvoices); //aggregate output txtNumber of 20ercentInvoices.Text = intuberof 20Percent invoices .ToString(); // here I am trying to convert my num txtNumber of 15Percent invoices. Text - intlamberof 15PercentInvoices .ToString();// is trying to convert my percent va txtuberofpercent Invoices.Text - IntuberoftpercentInvoices .ToString();// I am tryin to change the number of p txtuberofpercentInvoices. Text - IntuberofpercentInvoices .ToString(); // is trying to change my output value txtuberof invoices.Text = IntberOf Invoices.ToString(); txt Totalvoice mount.Text-decTotal Imvoicemount.ToString(""); txt TotalDiscountmunt.Text deciscountmount.ToString(""); deciscount Percent - 0.10 txtAverageInvoicunt.Text = dechverage Invicemount. Tastring""); txtAverage Discount Percent.Text - deckverageDiscount Percent.ToString(P1"); // here I am trying to type acode which ca - 1m 1 Warning of Messages cription 1 Build Intel Sense dformethadong takes arguments edecinco c ent is wigned but its value is never used to search ) J LNUMBErUtopercentInvoices. Text = Convert.ToInt32(tx //txtNumberOf10PercentInvoices. Text = Convert.ToInt32(t> //txtNumberOf15PercentInvoices. Text = Convert.ToInt32(t> 1/txtNumberOf20PercentInvoices. Text = Convert.ToInt32(t> int intNumberOfPercentInvoices = Convert.ToInt32(txtNum int intNumberOf 10PercentInvoices = Convert.ToInt32(txtNu int intNumberOf15PercentInvoices = Convert.ToInt32(txtNu int intNumberOf20PercentInvoices = Convert.ToInt32(txtNu 1/aggregate output txtNumberOf20PercentInvoices. Text = intNumberOf20Percent txtNumberOf15PercentInvoices. Text = intNumberOf15Percent txtNumberOf10PercentInvoices. Text = intNumberOf 10Percenti txtNumberOfPercentInvoices.Text = intNumberOfPercentInv txtNumberOfInvoices. Text = intNumberOfInvoices.ToString() txt TotalInvoiceAmount.Text = decTotalInvoiceAmount.ToStri txt TotalDiscountAmount. Text = decDiscount Amount.ToString( decDiscountPercent = 0.10m; txtAverage InvoiceAmount. Text = decAverage InvoiceAmount. Tog txtAverageDiscount Percent.Text = decAverageDiscount Percent 1 Error 1 Warning 0 0 of 5 Messages cription Build + IntelliSen verload for method 'ToString' takes 1 arguments variable 'decdiscount Percent' is assigned but its value is never used Invoice Total x # of 20% Invoices Enter Subtotal Subtotal: #of 15% Invoices # of 10% Invoices Discount Percent Discount Amount Total of 0% Invoices #of All Invoices Total Invoice Amount: Total Discount Amount Calculate Average Invoice Amount: Average Discount Percent: Error List Entire Solution - 3 1 Error Warning of Messages Code Description C51501 No overload for method ToString' takes arguments 0219 The variable de discount Percent is signed but its value is never used Build IntelliSense Error List Output O Type here to search 1/input decimal decSubtotal - Convert.ToDecimal(txtEnterSubtotal.Text); //Convert is a clas decimal desdiscountRerssat - On; 1/processing decimal decDiscount Percent - Om; if (decSubtotal > 500) decDiscountPercent - 0.2m; else if (decSubtotal >- 250m 88 decSubtotal - 100 && decSubtotal //txtNumberOf15PercentInvoices. Text = Convert.ToInt32(t> 1/txtNumberOf20PercentInvoices. Text = Convert.ToInt32(t> int intNumberOfPercentInvoices = Convert.ToInt32(txtNum int intNumberOf 10PercentInvoices = Convert.ToInt32(txtNu int intNumberOf15PercentInvoices = Convert.ToInt32(txtNu int intNumberOf20PercentInvoices = Convert.ToInt32(txtNu 1/aggregate output txtNumberOf20PercentInvoices. Text = intNumberOf20Percent txtNumberOf15PercentInvoices. Text = intNumberOf15Percent txtNumberOf10PercentInvoices. Text = intNumberOf 10Percenti txtNumberOfPercentInvoices.Text = intNumberOfPercentInv txtNumberOfInvoices. Text = intNumberOfInvoices.ToString() txt TotalInvoiceAmount.Text = decTotalInvoiceAmount.ToStri txt TotalDiscountAmount. Text = decDiscount Amount.ToString( decDiscountPercent = 0.10m; txtAverage InvoiceAmount. Text = decAverage InvoiceAmount. Tog txtAverageDiscount Percent.Text = decAverageDiscount Percent 1 Error 1 Warning 0 0 of 5 Messages cription Build + IntelliSen verload for method 'ToString' takes 1 arguments variable 'decdiscount Percent' is assigned but its value is never used Invoice Total x # of 20% Invoices Enter Subtotal Subtotal: #of 15% Invoices # of 10% Invoices Discount Percent Discount Amount Total of 0% Invoices #of All Invoices Total Invoice Amount: Total Discount Amount Calculate Average Invoice Amount: Average Discount Percent: Error List Entire Solution - 3 1 Error Warning of Messages Code Description C51501 No overload for method ToString' takes arguments 0219 The variable de discount Percent is signed but its value is never used Build IntelliSense Error List Output O Type here to search 1/input decimal decSubtotal - Convert.ToDecimal(txtEnterSubtotal.Text); //Convert is a clas decimal desdiscountRerssat - On; 1/processing decimal decDiscount Percent - Om; if (decSubtotal > 500) decDiscountPercent - 0.2m; else if (decSubtotal >- 250m 88 decSubtotal - 100 && decSubtotal