C# Language PROJECT #1 REQUIREMENTS A retail company must file a monthly sales t
ID: 3786000 • Letter: C
Question
C# Language PROJECT #1 REQUIREMENTS A retail company must file a monthly sales tax report listing the total sales for the month, and the amount of state andcounty sales tax collected. The state sales tax rate is 4% and the county sales tax rate is 2%. Create anapplicationthat allows the user to enter the total sales from the month. From this figure, the application should calculate and display the following: 1. The amount of country sales tax 2. The amount of state sales tax 3. The total sales tax (county plus state) The following represents the requirements for this project 1. The project should be named Project1 2. When saving the project, uncheck the "Create directory for solution" checkbox. 3. The form (file and objectname)should be renamed from Form1 to frmMain 4. The form layout should be very similarto the following in terms of control alignment, sizes, spelling, meaningful labels and an overall professional look: Monthly Sales Tax Calculator Total Monthly Sales I Taxes County Sales Tax: State Sales Tax: Total Sales Tax: Ext Calculate Clear 5. When the application is run have the form display in the middle of the screen. 6. Set the Form Accept and Cancel Button properties. 7. The label controls for the County, State and Total Sales Tax shouldbe containedwithin a Group Box.Explanation / Answer
First you should statr the visual basic application
tap the new project
select windows form application
name the file as service tax calculator
then you a window will appear on your display with name Form1
as you said we have rename the name as frmMain to do this we have to do is click on the window and go the properties on the right bottom side and the change the name from form1 to monthly sales tax calculator by renaming the "Text". Scroll up and you will find "(Name)" ,change that field frmMain.
Next go the tool bar on the left where you find different components which we use in the visual basic.
now drag on botton and place on the working window. in the same way drag another to buttons.
name the first button as calculate, second button as clear, third button as exit in the way you name the main window by changing the text. I.e; form1 to monthly sales tax calculator.
align these three buttions as per the given image.
now it time to place the lables in the window. To do this you have to go the toolbox>commands and drag the "label" intlo the screen. now you need the five labels and name them as required.
sizes of this toolbars can be adjustable for this you have to go the properties of the each and every toolbox
now its time to place the text boxes. As it is resize the text boxes of your requirement and place as per the images. you need four textboxes for this project.
now we have to program the project
public Class frmMain
private sub button1click(Byval sender As System.object, Byval e as System.EvenArgs) Handles Button1.Click
Dim i as Double = Textbox1.text
i = 0.2*Textbox1.text
j=0.4*Textbox1.text
k= i+j
Textbox2= i.Tostring
Textbox3= j.Tostring
Textbox4=k.Tostring
End Sub
End Class
private sub button1click(Byval sender As System.object, Byval e as System.EvenArgs) Handles Button2.Click
Textbox1.Clear()
Textbox2.Clear()
Textbox3.Clear()
Textbox4.Clear()
End Sub
End Class
private sub button1click(Byval sender As System.object, Byval e as System.EvenArgs) Handles Button3.Click
Me.Close()
End Sub
End Class
Important Notation:
Textbox1 = box beside monthly sales
Textbox2 = box beside country sales tax
Textbox3 = box beside state sales tax
Textbox4 = box beside total sales tax
Button1= calculate button
Button2= clear button
Button3= exit button
when the press the button with out coding then it will open a window for us to write the code
change your dimensions as per the project
Thank you
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.