Write a program which defines an integer array of size

Assignment Help Programming Languages
Reference no: EM13338908

Write a program which defines an integer array of size three (3), the size of the array should be a constant variable. Read data using loops for this array from the user. The data of this array will be the number of vacation days of an employee in a company.

Define a user define function modify_days() which returns the number of vacation days plus 5 of the employees.

In main function display the number of vacation days of each employee after modification.

e.g. Your output should look like this,

Enter allowed vacation days for employees 1 through 3:
10 20 5
The revised numbers of vacation days are:
Employee number 1 vacation days = 15
Employee number 2 vacation days = 25
Employee number 3 vacation days = 10

 

Reference no: EM13338908

Questions Cloud

Which sustainable supply chain practice used by tiffany & co : Which sustainable supply chain practice used by Tiffany & Co. is the most innovative? Explain your position.
What is the max value the coefficient of kinetic friction : A uniform rectangular bookcase of height 1.63 m and width 1.03 m is to be pushed at a constant velocity across a level floor. The bookcase is pushed horizontally at its top edge, at the distance H above the floor.
What is the terminal speed for skier : What is the terminal speed for an 76.0kg skier going down a 38.0? snow-covered slope on wooden skis ?k= 0.060
What torque is exerted by the right ring : A 60 kg gymnast holds an iron cross position on the rings. What torque is exerted by the right ring about the right shoulder joint
Write a program which defines an integer array of size : Write a program which defines an integer array of size three (3), the size of the array should be a constant variable. Read data using loops for this array from the user. The data of this array will be the number of vacation days of an employee in..
A columbia journalism review : A Columbia Journalism Review study found that 90% of news stories originated or were influenced by PR professionals. If you consider that the average newspaper is 70% advertising and 30% editorial content, one begins to wonder what exactly you..
Determine what is the width w of the refrigerator : The refrigerator is pushed in the horizontal direction halfway between the floor and the top of the refrigerator and the refrigerator does not tip over while being pushed.
Calculate the weight of the bananas in newtons : At an outdoor market, a bunch of bananas attached to the bottom of a vertical spring of force constant 16.0 N/m is set into oscillatory motion with an amplitude of 20.0 cm. What is the weight of the bananas in newtons
What is the womans recoil speed : A 70-kg man and a 55-kg woman holding a 2.50-kg purse on ice skates stand facing each other. What is the woman's recoil speed

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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