I am working on a lab. It is working, but not how I expected. Am I doing something wrong? I can’t figure out how to put in the math work.
Here is the assignment:
CSC108 – Introduction to Programming
Lab 04:
Payroll Program: Java application in NetBeans called “Lab04” that creates an employee’s paystub information.
The program should first declare the constants as “final doubles” for the following withholding rates:
SOC_SEC_RATE = 0.06;
MEDICARE_RATE = 0.01;
UNION_DUES_RATE = 0.01;
RETIREMENT_PLAN_RATE = 0.02;
RETIREMENT_HEALTH_RATE = 0.03;
Next, it should capture the employee’s hours worked in a week, the employee’s hourly pay rate, the federal tax withholding rate, and state tax withholding rate. Use the Scanner class in Java located in the java.util library (e.g. include this statement: import java.util.Scanner;).
The program should print out a “Paystub Banner” (see example run below), the employee’s hours worked, hourly pay rate, gross pay, and then a “Deductions”. This section indents two spaces and reports the Federal Tax, State Tax, Social Security Tax, Medicare tax, Union Dues, Retirement Plan, and Retirement Health withholding rates as a percent, the associated actual deductions, the Total Deductions, and the Net Pay. Gross pay should be calculated by multiplying the number of hours per week by the hourly rate. If the employee works more than 40 hours in a week, then the employee is paid at a rate of 1.5 times the pay rate for the hours above 40. Net Pay should equal the Gross Pay minus the total deductions. All dollar amounts should be preceded by a “$” and reflect two decimal places. You should use the printf method to format all dollar amounts so that they display accurately – including when you have 0 cents (e.g. $51.00).
Also, please use the “t” (tab) escape sequence to format your output. To print a “%”, you should enter two (e.g. “%%”). Your output should be formatted exactly as the example run below and your calculations should be accurate to the penny. You must use variable names and constant names that conform to the naming conventions discussed in the text book. Also, please include block comments, line comments, and a program header documentation block. Below is an example (Of course, you would replace my name with your name as Program Author):
Here is my work:
package lab04;
import java.util.Scanner;
/**
* To change the License Header, go to Project Properties and select License
Header
* To change the Template File, go to Tools and press Template and open it up
* /
/**
*
* @ Taylor R. DeNardo
*/
public class Lab04 {
public static void main(String[] args) {
final double SOC_SEC_RATE = 0.06;
final double MEDICARE_RATE = 0.01;
final double UNION_DUES_RATE = 0.01;
final double RETIREMENT_PLAN_RATE = 0.02;
final double RETIREMENT_HEALTH_RATE = 0.03;
Scanner input = new Scanner(System.in);
int number, number1, number2, number3;
System.out.println(“Please enter number of hours worked in one pay period”);
number = input.nextInt();
System.out.println(“Please enter hourly payrate”);
number = input.nextInt();
System.out.println(“Please enter a federal tax withholding rate (e.g. 0.15:) “);
number = input.nextInt();
System.out.println(“Please enter state tax withholding rate (e.g. 0.045) “);
number = input.nextInt();
System.out.println(“*************************”);
System.out.println(“* Paystub Information *”);
System.out.println(“*************************”);
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
I Am Working On A Biology Lab Probability And Genetics Lab I Have The Following
/in Uncategorized /by developerI am working on a Biology Lab (Probability and Genetics Lab). I have the following question: How close did your. actual results come to your expected results? What caused the difference. I have NO idea how to get the expected number (and I’m not sure I know what the caused the difference if there is one).
We had to flip 2 coins 50 times and tally each heads and tails (which equaled a genotype of BB, Bb, and bb. My results are BB – 20, Bb – 22, bb – 8.
Can you please help me? If you need additional information, pls let me know.
Thank you!
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
I Am Working On A Capstone Project I Will Graduate This Year And Really Don T Un
/in Uncategorized /by developerI am working on a Capstone Project. I will graduate this year and really don’t understand where to start. I am a Business Student. Can you give some advice on what would make a great report? I want to do my report on a new business.. i.e. a Fashion Boutique. Thanks in advance.
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
I Am Working On A Java Program That Implements Abstracts Classes And Such
/in Uncategorized /by developer“I am working on a Java program that implements abstracts, classes, and such. It is a simple racing program that takes all of what is learned, though I grasp the concept of abstracts, I don’t quite understand how to implement them. I would like help with the program, in a way that will help me be able to utilize it later, please do not just give an answer with out a good explanation. Even assistance with screen sharing would be helpful. “
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
I Am Working On A Lab It Is Working But Not How I Expected Am I Doing Something
/in Uncategorized /by developerI am working on a lab. It is working, but not how I expected. Am I doing something wrong? I can’t figure out how to put in the math work.
Here is the assignment:
CSC108 – Introduction to Programming
Lab 04:
Payroll Program: Java application in NetBeans called “Lab04” that creates an employee’s paystub information.
The program should first declare the constants as “final doubles” for the following withholding rates:
SOC_SEC_RATE = 0.06;
MEDICARE_RATE = 0.01;
UNION_DUES_RATE = 0.01;
RETIREMENT_PLAN_RATE = 0.02;
RETIREMENT_HEALTH_RATE = 0.03;
Next, it should capture the employee’s hours worked in a week, the employee’s hourly pay rate, the federal tax withholding rate, and state tax withholding rate. Use the Scanner class in Java located in the java.util library (e.g. include this statement: import java.util.Scanner;).
The program should print out a “Paystub Banner” (see example run below), the employee’s hours worked, hourly pay rate, gross pay, and then a “Deductions”. This section indents two spaces and reports the Federal Tax, State Tax, Social Security Tax, Medicare tax, Union Dues, Retirement Plan, and Retirement Health withholding rates as a percent, the associated actual deductions, the Total Deductions, and the Net Pay. Gross pay should be calculated by multiplying the number of hours per week by the hourly rate. If the employee works more than 40 hours in a week, then the employee is paid at a rate of 1.5 times the pay rate for the hours above 40. Net Pay should equal the Gross Pay minus the total deductions. All dollar amounts should be preceded by a “$” and reflect two decimal places. You should use the printf method to format all dollar amounts so that they display accurately – including when you have 0 cents (e.g. $51.00).
Also, please use the “t” (tab) escape sequence to format your output. To print a “%”, you should enter two (e.g. “%%”). Your output should be formatted exactly as the example run below and your calculations should be accurate to the penny. You must use variable names and constant names that conform to the naming conventions discussed in the text book. Also, please include block comments, line comments, and a program header documentation block. Below is an example (Of course, you would replace my name with your name as Program Author):
Here is my work:
package lab04;
import java.util.Scanner;
/**
* To change the License Header, go to Project Properties and select License
Header
* To change the Template File, go to Tools and press Template and open it up
* /
/**
*
* @ Taylor R. DeNardo
*/
public class Lab04 {
public static void main(String[] args) {
final double SOC_SEC_RATE = 0.06;
final double MEDICARE_RATE = 0.01;
final double UNION_DUES_RATE = 0.01;
final double RETIREMENT_PLAN_RATE = 0.02;
final double RETIREMENT_HEALTH_RATE = 0.03;
Scanner input = new Scanner(System.in);
int number, number1, number2, number3;
System.out.println(“Please enter number of hours worked in one pay period”);
number = input.nextInt();
System.out.println(“Please enter hourly payrate”);
number = input.nextInt();
System.out.println(“Please enter a federal tax withholding rate (e.g. 0.15:) “);
number = input.nextInt();
System.out.println(“Please enter state tax withholding rate (e.g. 0.045) “);
number = input.nextInt();
System.out.println(“*************************”);
System.out.println(“* Paystub Information *”);
System.out.println(“*************************”);
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
I Am Working On A Lab Report And For The Experiment I Found The Slope Of A Free
/in Uncategorized /by developerI am working on a lab report and for the experiment I found the slope of a free falling object (velocity vs. time) and values of position vs. time. I was asked to use this equation (y(t)=y0+v0t+(1/2)gyt^2) to determine the free fall motion of a the object dropped. I am not sure which values to plug in where.
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
I Am Working On A Marketing Plan I Need To Advertise And Promote My Daycare Cent
/in Uncategorized /by developerI am working on a Marketing Plan. I need to advertise and Promote my Daycare Center. I need to know the benefits of using social media. Below are three areas that I want to use as my Marketing tactic.
1. How do I promote superior service and all-inclusiveness for a daycare center?
2. How do I advertise superior service and all-inclusiveness for a daycare center?
3. How do I develop maximum brand exposure through social media for a daycare?
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
I Am Working On A Team Assignment And My Portion Of The Assignment Is To Answer
/in Uncategorized /by developerI am working on a team assignment and my portion of the assignment is to answer bullet 2 which asks “Describe the overall goal(s) and objectives of your assigned team. I will also post the entire assignment. I need an answer by this Sunday. Thanks!
Assignment: Applying Teamwork
Hopefully you and your team having been working diligently since Unit 4 when you were advised of this upcoming Team Assignment, due now in Unit 6.
Being able to participate in and contribute to an effective team is crucial in today’s work world. Many corporations use ad hoc work teams to accomplish their goals, projects, tasks or initiatives. Learning to work effectively in teams is therefore a skill that employers are seeking in their new hires. Once you feel confident in your ability to work in teams, you can in turn include that skill in your résumé.
The foci of your assigned readings in Chapters 8, 9, and 10 are motivation, groups, and teams. These readings along with your Learning Activities should be of assistance in completing this Assessment in a Microsoft® PowerPoint®presentation.
The following Course Outcomes are assessed in this Assignment:
MT302-4: Apply teamwork concepts to an organizational problem.
PC-1.2: Contribute to team goals and objectives through active participation and collaboration.
Team Assignment: Assignment 1:
participate in a team to address an organization’s problem. Read the scenario below, and address the checklist items regarding a work team.
Instructions:
For this Assignment 1 you will work in teams as assigned by your instructor in Unit 4. You will join your assigned team below Unit 10 in the Team Area. Go to the “Team Area” below Unit 10 and select “Team Area Discussion,” then scroll down and when you see “Filter by: all groups” click on “All groups” then you will see the option to choose Team 1, 2, 3, etc., in the dropdown menu.
There you will address the following scenario addressing all the checklist items, and designate a person to submit the final team presentation response to the Unit 6 Dropbox. Once complete, each team member will be responsible for submitting his/her own peer evaluation form to the Unit 6 Peer Evaluation Assignment 2 Dropbox demonstrating how they contributed to the assigned team goals and objectives.
Access the Learning Activities and readings to assist the team in addressing the checklist items.
Scenario (fictional):
Artificial Intelligence Medical (i.e., AIM) Inc. is a very profitable new company. Although it has only been in business for two years, it has already doubled the size of its workforce and quadrupled its profits. The CEO/founder has stepped aside recently in favor of a new CEO in the wake of employees’ frustration and social media messages about the benefits inequity and lack of motivation for teams at the company. The new CEO wants to change the way executive salaries are determined and find ways to motivate the project teams. The project teams typically are assigned to an artificial intelligence product such as a robot to perform routine surgeries or diagnostic software used by different medical units of a hospital for patient diagnosis.
The new CEO has tasked your team of employees with determining a general proposed solution to the inequity in pay at the company and to address the lack of motivation for the 125 technicians and medical staff that work in project teams of 25 employees each. Each technician or staff member receives a salary of $35,000 per year while the CEO and V.P.s receive $500,000 per year (the CEO also holds 10% of the company stock) and the managers receive $50,000 per year. There is a CEO, 2 VPs (Manufacturing and Finance), a Marketing Manager, a Sales/Customer Service Manager, and a Technical Support Manager along with the 125 technology-savvy employees working at the company.
Access the Learning Activities and readings to assist the team in addressing the checklist items.
Checklist: After identifying the team letter/number and members on the title slide:
*Scholarly sources have been put through a peer-review by experts to ascertain that the content is original, proves any statements or claims with viable research, etc. Select “Library” under the Academic Tools area. Then select “Peer Reviewed” before doing your search on a topic.
PowerPoint® template
Access the Assignment 1: Team Assignment
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
I Am Working On Discussion Question 1 For Acc 310 At Ashford University We Are S
/in Uncategorized /by developerI am working on discussion question #1 for ACC 310 at Ashford University. We are studying standard coating and FIFO and weighted average costing.The question is as follows: Are there any accounting principles that would dictate one or the other of these methods be used for product costing and inventory valuation?
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
I Am Working On Economic Research Project Topic Is What Is The Effect Of Income
/in Uncategorized /by developerI am working on economic research project. Topic is “what is the effect of income inequality on crime rates” this will be cross section measured across U.S. 50 states. I need 3 page minimum literature review and will post articles below which you may use. Please use citations at end of sentences.
“The changing relationship between income and crime victimization,” Levitt, Steven D, Federal reserve bank of new york economic policy review; 1999″Four factors that explain both rise and fall of US crime,” Shoesmith, Gary L.”Inequality and Crime,” Kelly M., The review of economics and statistics, 2000.”Does income inequality lead to more crime? A comparison of cross-sectional and time-series analysis of United States counties.”, Brush, Jesse.”Intra- and inter-neighborhood income inequality and crime,”. Sticky; Thomas D. “Structural shifts in select determinants of crime with a focus on Rural and urban differences,”. Deller, Steven C.
Running head: INCOME INEQUALITY AND CRIME RATES What is the effect of income inequality on crime rates?Student Name:Institutional Affiliation:Date: 1 INCOME INEQUALITY AND CRIME RATES 2 Various…
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
I Am Working On Epidemiology Homework I Have Set Up My Equation Based On My Data
/in Uncategorized /by developerIncidence Rates = [60 ( # of new cases per month) / 4.09 * 10^6 ( Oregon population 2016) ] * 100,000 (standard population)
So written out, we have 60 divided by 4.09 times 10 to the 6th power. We then multiply this whole thing by 100,000. How do I solve this?
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"