Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

how would i make an actual code like this on visual basics? CS4- Visual Basic Assignment 1: 50 Points Due By: 1/23 Physical Hand in

how would i make an actual code like this on visual basics? image text in transcribed
image text in transcribed
image text in transcribed
CS4- Visual Basic Assignment 1: 50 Points Due By: 1/23 Physical Hand in Goal: Create a program (P-Code Only) that will take in 2 values: person's name and their yearly income. Calculate the following taxes: Federal 10%, state 3.07%, Local tax 1%, and fica tax 6.2%. Calculate their takehome pay by subtracting ALL of the taxes above from their YEARLY pay. Output their name, EACH tax amount, and their takehome. Example to get you started: I'll separate this example into 3 phases input processing.output for clearer structure. [Phase 1] get name [End Phase1] [Phase 2] calc fedtax = YEARLY X 10% calc takehome = YEARLY - fedtax - statetax - localtax - ficatax [End Phase 2] [Phase 3] output name output "Federal Tax" & fedtax [End Phase 3] What you'll need to add to complete this P-Code: Phase 1: get the persons yearly Phase 2: calc statetax, localtax, and ficatax using the provided percentage rates each in their own line of P-code Phase 3: output statetax, localtax, and ficatax each in their own line of P-code, be sure to include some labeling text as shown in the example 11:287 LTE D X CS4-1 DOCX - 13 KB Damon Drositis CS4-Visual Basics Assignment [Phase 1] input Get persons name bob Get persons yearly income=25000 [End Phase 1] [Phase 2] Calc Fedtax=YEARLY x10% =25000 x 10/100 -2500 Cale statetax -YEARLY X3.07% -25000x3.07/100 -767.5 Calc localtax-YEARLY x1% -25000x1/100 -250 Calc ficatax-YEARLY 6.2/100 =1550 Calc takehome=YEARLY-fedtax-statetax-localtax-ficatax -25000-2500-767.5-250-1150 -19,932.5 (end phase 2] [Phase 3] output persons name bob fedtax-2500 statetax-7675 localtax-250 ficatax=1550 takehome19932.5 [end phase 3] Open Word content-rid-50850234 2/courses/2204 UPITT_CS_0004_SEC1060/Assignment2.pdf CS4 - Visual Basic Assignment 2-50 Points Due: 1/30 Using the pseudo code you built for Al, you will create a real working version of that program in visual basic. Your program must use variables to store the input the user gives to your program and then make any needed calculations using math operators (...) Remember variable assignment goes to the left so the sender of the data will be in the right. So, to pull the value of someone's name from a textbox into a variable it will look like this: variable Textbox1.Text Then to output the value stored in a variable to a control will be the opposite: Textbox2.Text Variable You should be able to take cach line of the pseudo code you made for Al and convertit into VB code. Remember math assignments work similarly right to left: output = vall * val2 Math in VB when dealing with percentages is done with decimals so 10% is entered as I example: fedtax income. Read your pseudo code and mark which values need to be declared as variables and declare (Dim) those first. Then, proceed through all 3 phases of the program input, processing, output) and test your program There is a zip file called "A2-Template" that built to give you a running start. It provides an outline with most of the needed controls in place - you will need to add labels, change text on the button, and complete the source code for it. What is needed to hand in? Print out the source code (go to code tab where you enter the code and Copy/Paste the source code into a Word document) Take a screenshot of the output of the same data below showing what output your program has generated. Print those as well. Sample Data Longhao

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions