### Design a program that calculates the average number of days

Assignment Help Operation Management
##### Reference no: EM13225781

Design a program that calculates the average number of days a company's employees are absent. The program should have the following functions:

A function that asks the user for the number of employees in the company. This value should be returned as an int. (The function accepts no arguments.)

A function that accepts one argument: the number of employees in the company. The function should ask the user to enter the number of days each employee missed during the past year. The total of these days should be returned as an int.

A function that takes two arguments: the number of employees in the company and the total number of days absent for all employees during the year. The function should return, as a float, the average number of days absent. (This function does not perform screen output and does not ask the user for input.)

#### Questions Cloud

 Which machine should she pick : If demand for Karla's candles is 25,000, which machine should she pick? How many joules of energy are stored in the battery : A double-A (AA) rechargeable battery is rated at 1.2V, 2100mA-h ( mili-amp hours) 1- how many coulombs of charge can this battery hold 2- how many joules of energy are stored in the battery Describe the boron trifluoride molecule : Consider the boron trifluoride molecule, BF3, that results from the bonding of three fluorine atoms and one hybridized boron atom. A) The nub that is seen just below the boron central atom is one of the ends of a hybrid sp2 orbital. In what ways is state power changing : In what ways is state power changing (increasing, decreasing, shifting, diffusing)? and What are the implications of these changes for how we tackle some of the global issues? Design a program that calculates the average number of days : Design a program that calculates the average number of days a company's employees are absent. The program should have the following functions. Job redesign and workplace rewards assessment : The Job Redesign and Workplace Rewards Assessment is a project which asks you to assess the current state of your workplace environment (or home if you do not work outside of your home). Design an rc low-pass filter with a cutoff frequency : Design an RC low-pass filter with a cutoff frequency at 2kHz, using a capacitor of $$0.1\mu F$$ A. Show a circuit diagram and your calculations in obtaining R B. Make as sketch of the absolute value of the input impedence Government policy favor certain kinds of immigrants : Should United States government policy favor certain kinds of immigrants? Should citizenship preference be given to the neediest applicants? The most talented? The most oppressed? The firm instead rents saucepans every period : Consider the pricing problem of Alcoa's cookware division. Suppose that the world last for only two periods, period 1 and period 2. A saucepan last two periods, so that a saucepan that is bought in period 1 can also be used in period 2. Consumers val..

### Write a Review

#### The current break-even points in units is

The local convenience store makes personal pan pizzas. Currently, their oven can produce 50 pizzas per hour. It has a fiixed cost of $2,000, and a variable cost of$0.25 per pizza.

#### Case study - materials manager at b&l

Brian XXXXXX, materials manager at B&L Inc. in Lancaster, Pennsylvania, was considering a proposal from his purchasing agent to outsource manufacturing for an outrigger bracket.

#### Crubrew has signed a year-long contract to purchase

CruBrew uses 100 bags of whole bean coffee every month. Currently, CruBrew has signed a year-long contract to purchase its coffee beans from a domestic supplier (DS), located in the USA

#### Case study - nordstroms performance goals

At Nordstrom, employee performance is directed towards a single goal - extraordinary service that produces extraordinary sales volumes. Every measure by which an employee is evaluated and rewarded is based on this goal.

#### Calculate ways to save expenses for jva corp

Depend on the prices which have been computed, a net savings should be evident to allow for major or minor price savings for JVA Corp.

#### What type of steel should be used to construct the bridge

What type of steel should be used to construct the bridge? How will the safety of workers be ensured during construction and steel erection?

#### Could model be modified to fit needs of specific businesses

Do you think se assumptions are realistic or are EOQ model an outdated technique for inventory control. If so, why. If not, explain why not. Could model be modified to fit needs of specific businesses.

#### What is the name of the first american penitentiary

What is the name of the first American penitentiary, which opened in the late 1700's in Philadelphia?

#### Illustrate what are greatest challenges one might encounter

Illustrate what are greatest challenges one might encounter through process. Illustrate what is enterprise transformation.

#### How many drivers can be processed in one hour

If there are two clerks and three typists, where will the bottleneck in the system be? How many drivers can be processed in one hour if the clerks and typists work at 80 percent utilization rate?

#### Calculate labor productivity for the initial situation

Gibson Products produces cast bronze valves for use in offshore oil platforms. Currently, Gibson produces 1600 valves per day.

#### Illustrate what are possible options that lack skills

Illustrate what are some or possible options for those organizations that lack necessary skills in this area.