98 785
Assignments Done
98.7%
Successfully Done
In April 2021

# Answer to Question #3790 in Action Script | Flash | Flex | ColdFusion for sarah honaker

Question #3790
A retail company must file a monthly sales tax report listing the total sales for the month, and the amount of state and county sales tax collected. The state sales tax rate is 4 percent and the county sales tax rate is 2 percent. Design a modular program that asks the user to enter the total sales for the month. From this figure, the application should calculate and display the following:
The amount of county sales tax
The amount of state sales tax
The total sales tax (county plus state)
In the pseudocode, represent the county tax rate (0.02) and the state tax rate (0.04) as named constants.
1
2011-08-11T08:31:09-0400
[code]Program.cs:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace Company
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}

Form.cs:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Company
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void numericUpDown1_ValueChanged(object sender, EventArgs e)
{
decimal amount_of_state_sales_tax = numericUpDown1.Value / 25;
decimal amount_of_county_sales_tax = numericUpDown1.Value / 50;
label2.Text = "The amount of state sales tax: " + amount_of_state_sales_tax;
label3.Text = "The amount of county sales tax^ " + amount_of_county_sales_tax;
label4.Text = "The total sales tax: " + (amount_of_county_sales_tax + amount_of_state_sales_tax);

}
}
}
[/code]

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!