Calculates the employees gross pay

Assignment Help Accounting Basics
Reference no: EM131149087

Instructions:

1. Complete the following programming problems in a Word document, clearly numbering each question in bold and in a large font. If I cannot easily see where your answer to each question begins, I will assume you did not want me to grade your answer.

2. Include your name in the document header so that it is shown on every page.

3. For each problem, write pseudocode as shown in all examples on Blackboard for all Chapters that we have covered, without any housekeeping or detail or detailLoop or any other modules. Only the programs for #4 and #5 are to contain modules/methods, and those must be written as described in the problem in order to receive credit.

4. All requirements that have been given for homework programs apply here too. Follow the Good Program Design Example from the Chapter 2 Reading folder on Blackboard, and what has been demonstrated in all examples on Blackboard.

5. Any program that does not follow all of these instructions will not be read and will receive a grade of zero. If you make no effort to make your program easy to read and follow according to the principles demonstrated in the text book and the Blackboard examples, I will, likewise, make no effort to read them.

6. I may ask you to explain in detail any and all of your programs after I receive them. If you are unable to explain any part of any program, you will receive a grade of zero for that program.
Any program that fails to follow any of these requirements will receive an automatic grade of zero.

1) The Downdog Yoga Studio offers five types of classes, as shown in Table 6-2.

Table 6-2 Downdog Yoga Studio classes

Class Number

Class Name

1

Yoga 1

2

Yoga 2

3

Children's Yoga

4

Prenatal Yoga

5

Senior Yoga

Using arrays where applicable, design one program that
a) accepts a class number and then displays the class's name.
b) Allow the user to enter class numbers continuously until a sentinel value is entered. Then, display each class number, name, and a count of the number of requests for each class.

2) A company maintains its employee records in a sequential text file named employees.txt. The record for each employee contains the following: ID number, employee's name, hourly pay, hours worked, benefits contribution, retirement account contribution. Design the logic, in pseudocode, for a program that

a) Reads each record in the employees.txt file

b) Calculates the employee's gross pay, based on their hourly pay and how many hours they worked

c) Calculates the employee's net pay after deducting the following:
i) the benefits contribution
ii) the retirement account contribution
iii) income tax, based on the following scale:
(1) gross pay of 1,000 or more: 10%
(2) gross pay of 750 or more but less than 1000: 7.5%
(3) gross pay of 500 or more but less than 750: 5%
d) Writes the employee data along with the gross pay, benefits and retirement account contributions, income tax (in dollars), and net pay to another file named payroll.txt

3) The village of Marengo conducted a census and collected records that contain household data, including the number of occupants in each household. The exact number of household records has not yet been determined, but you know that Marengo has fewer than 300 households. Using an array where applicable, develop the logic for a program that allows a user to enter each household size and then

a) Displays a list of the entered household sizes

b) Determines the mean household size in Marengo, the largest household size and the smallest household size. The program must complete these tasks without sorting the array.

4) Plan the logic for an insurance company program to determine policy premiums. The program prompts the user for an insurance policy number and the type of policy needed- health or auto. Depending on the policy type, the program gets additional information from the user and then calls one of the methods described below, to determine their insurance premium, and then displays the policy number, the policy type and the premium. The methods are:

a) calculateHealthPremium method
i) requires to be passed information ("Y" or "N") that indicates whether the user is a smoker
ii) if the user is a smoker, the premium should be $550, otherwise, $345
iii) returns the premium amount

b) calculateAutoPremium method

i) requires to be passed the number of traffic tickets the user has received in the last three years
ii) determines the premium as follows:
(1) three or more tickets: $225
(2) one or two tickets: $190

(3) zero tickets: $110
iii) returns the premium amount

5) Create the logic for a program that prompts the user for numeric values for a month, day, and year. Then pass the three variables to the following methods:

a) A method that displays the date with dashes in month-day-year order, as it is often represented in the United States-for example, 6-24-2015

b) A method that displays the date with dashes in day-month-year order, as it is often represented in the United Kingdom-for example, 24-6-2015

c) A method that displays the date with dashes in year-month-day order, as it is represented in the International Standard-for example, 2015-6-24

d) A method that prompts the user for the desired format ("US", "UK", or "IS") and then passes the three values to one of the other three methods described in parts a, b, and c of this exercise

Reference no: EM131149087

Questions Cloud

Calculate the mass moment of inertia : Consider 500mm to be the max size of the flywheel dia. Calculate the mass moment of inertia required for the flywheel of the punching press machine
What is artificial intelligence : What is Artificial intelligence - Which is not the commonly used programming language for AI?
Write a function that takes as input an image object : Write a function that takes as input an image object, crops it to make it a square, and returns the resulting object. You must write a function to accomplish this.
What indicators might see as anthony progresses : Consider and discuss the 5 stages of change. Based upon the information provided discuss what stage Anthony is in, and provide a rationale for your decision. Next, discuss the other stages of change and what indicators we might see as Anthony prog..
Calculates the employees gross pay : Calculates the employee's gross pay, based on their hourly pay and how many hours they worked and determines the mean household size in Marengo, the largest household size and the smallest household size. The program must complete these tasks witho..
Write a one page issue proposal : Write a one-page Issue Proposal. - The issue you are proposing is the topic you will pursue for your course project.
What is the molar mass of the mixture : Inside a rigid container, a mixture of three ideal gases with mass fractions of 30% N2, 50% O2 and 20% CO2 has a total mole of 10 kmol. What's the molar mass of the mixture
Fill in the periodic rates and the effective annual rates : In the following table, fill in the periodic rates and the effective annual rates.
What must the temperature of low temperature reservoir be : An ice cube that has a mass of 150.0 g and that has a starting temperature of -10C melts completely into a very large bucket of water whose temperature is 4C and stays 4C. What is the entropy change for the molecules contained in the ice cube? And..

Reviews

Write a Review

 

Accounting Basics Questions & Answers

  What is the effective interest rate

What is the effective interest rate

  What is the companys pretax cost of debt do not round

mudvayne inc. is trying to determine its cost of debt. the firm has a debt issue outstanding with 12 years to maturity

  Does it matter whether the transfer is to a c corporation

You can use section 351 for asset protection by exchange your assets for stock in a corporation. That asset is no longer at risk to your personal creditors. Is this true? Does it matter whether the transfer is to a C Corporation or an S Corporatio..

  Evaluate accounts receivable internal control

Evaluate accounts receivable internal control and conclude the IC risk as being low. Also, you have estimated inherent risk low. The total balance in AR is relatively low.

  Wright company deposits all cash receipts on the day when

wright company deposits all cash receipts on the day when they are received and it makes all cash payments by check. at

  Prepare the static budget operating income in contribution

Compute and reconcile the sales volume variance for August. Indicate whether the variance is favorable or unfavorable.

  Ferraro inc established a stock appreciation rights sar

ferraro inc. established a stock appreciation rights sar program on january 1 2012 which entitles executives to receive

  Describe the components of the common body of tax law

Describe the components of the common body of tax law (CBOTL). Include in your response answers to the following questions: What role does the U.S. Congress play in creating the tax law? Briefly explain how a tax bill becomes a tax law.

  A firm experiences demand with a mean

A firm experiences demand with a mean of 100 units per day. Lead time demand is normally distributed with mean 1000 units and standard deviation 200 units. It costs $6 to hold one unit for one year.

  Stan and ollie are partners who share income in the ratio

radley and smithers share income and losses in a 21 ratio after allowing for salaries to radley of 24414 and 30821 to

  A severe shortage of plastic pellets has required the

sport luggage inc. makes high-end hard-sided luggage for sports equipment. data concerning three of the companys most

  What was the amount of net income reported by gore corp

the following account balances relate to the stockholders equity accounts of gore corp. at

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd