Program calculate average number of days employee are absent

Assignment Help Programming Languages
Reference no: EM1362165

Write a program that calculates the average number of days a company's employees are absent. The program should have the following functions: a function called main that asks the user for the number of employees in the company. this value should be returned as an int. a function called by main 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 called by main 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 double, the average number of days absent.

Reference no: EM1362165

Questions Cloud

Explain types of budgeting models : Explain Types of Budgeting Models - Show the differences between the rational budgeting and incremental budgeting models.
Explain how much quasi-rents would each factory earn : If the two firms each maximise profits independently, explain how much output would each firm produce. Explain how much quasi-rents would each factory earn.
How close to the goal can the hare : which the tortoise wins in a photo finish? suppose that, when moving, both animals move steadily at their respective maximum speeds.
Family function versus dysfunction : Please explain the effect of the environment on families and its effect on family function versus dysfunction.
Program calculate average number of days employee are absent : Write a program that calculates the average number of days a company's employees are absent. The program should have the following functions: a function called main that asks the user for the number of employees.
Calculate profit and the return on investment : Lauren own a margin account and deposits of $50,000. Suppose the initial margin requirements is 40 percent, and The Gentry shoe corporation is selling at $25.00 per share:
What is the range of the ball : The speed of sound in air is 332 m/s at 0°C. It increased 0.60 m/s for each degree above zero. compute the speed of sound at the temperature of the room.
Explain briefly what kind of supply and demand elasticities : explain briefly about what kind of supply and demand elasticities for gasoline must be present in the U.S. market.
Health beliefs of the cultural group : Describe and interpret health beliefs of the cultural group in relation to both health and illness.

Reviews

Write a Review

Programming Languages Questions & Answers

  Design algorithm to will read file and produce weekly report

Design an algorithm that will read file and produce a weekly report of the net earnings for those employees. Net earnings are gross earnings minus deductions.

  Write program to prints the question

Write a program that prints the question"do you want to continue?" and reads a user input. if the user input is"y", "yes", "ok", "sure", or "why not?".

  Create xml document to mark up the nutrition facts

Create XML document to mark up the nutrition facts for a package of Grandma White's cookies. A package of cookies has a serving size of 1 package and the following nutritional value.

  Designing the site links

Company needs to be able to schedule the time of day when the connections are available for replication. Replication should not occur during peak business hours. When designing the site links, which of the following options should you use?

  Using the irvine32 library functions

Create 32 random points which have (x, y) co-ordinates

  Write a method to accepts string as parameter

Write a method called wordCount that accepts a String as its parameter and returns the number of words in the String. A word is a sequence of one or more nonspace characters

  Create ajax-based product catalog

Create an AJAX-based product catalog which obtains its data from JSON files located on the server. The data should be separated into four JSON files.

  Give hypertext link of the internet location of program

Describe in one or two paragraphs what you observe. Give hypertext link of the internet location of the program (or applet) you found.

  Program to inputs four numbers and graphs them as pie chart

Write down a program which inputs four numbers and graphs them as pie chart.

  Development of the current strategic potential of airline

Evaluate the organisation's current external and internal strategic position

  Design a program using structured pseudocode

Design a program using structured pseudocode as demonstrated in the lectures and, ensuring all variables are declared, prompt the user for the appropriate input and display a meaningful output message.

  Determine branch folding for unconditional branches

Determine the improvement from branch folding for unconditional branches. Assume a 90% hit rate, a base CPI without unconditional branch stalls of 1.

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