00:01
In this video, we will program a financial application that takes an employee's name.
00:05
A number of hours worked in a week, hourly pay rate, federal tax withholding rate, and state tax withholding rate, and prints a payroll statement for this person.
00:16
I've already outlined the class as well as the main method within it.
00:19
I've also already imported java .utile .scanner since we'll be taking user input.
00:24
First thing we can go ahead and do is go into the main method and create a new scanner object.
00:31
We can pass in system .n, the predefined object, which is the standard input stream.
00:40
Next, we'll want to use system .out .println to prompt the user to enter employee's name.
01:07
Next, we'll save that as name, the string value input, next line.
01:21
Next, we'll want to prompt the user to tell us the number of hours worked in a week.
01:28
After this, we can store this as a double.
01:32
Hours equals input.
01:34
Next, we will want to prompt the user to enter our hourly pay rate.
01:47
We can save this as a double called rate as well.
01:52
Input, next double.
01:58
We'll also want to prompt our user to enter the effect.
02:02
Federal tax withholding rate.
02:07
Again, we'll save this as a double...