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

  Use a while loop to calculate terms of summation

Write function called estimate_pi that uses this formula to calculate and return estimate of π. It must use a while loop to calculate terms of summation until last term is smaller than 1e-15.

  Design a website by using php and mysql to order pizza

Your task for this project is to design a website by using PHP and Mysqlto order pizza - A website with a complete catalog of pizzas with possible add-on options and customers should be able to prepare and customize an order as per their preference..

  Develop the interactive calculator in bash shell script

Develop the interactive calculator completely in bash shell script (Linux programming). This calculator program must have the following features: Entry of expression acceptable to expr

  Write program which prompts user for interger value

Write a program which prompts user for interger value in range 0 to 32,767 and then prints infividual digits of numbers on line with three spaces between digits.

  Write down the conditions which are not satisfied in program

Sequential program consists of the following five statements, S1 through S5. Considering each statement as separate process. Specify which of the three conditions is not satisfied.

  Write program that asks user to enter current value

Write a program which asks the user to enter the current value of a car. For new car, it is selling price of car. The program must display number of years it takes for the car's trade-in value to be below $1000.

  Write client-side javascript function to convert ampersands

Your job is to write a client-side JavaScript function that converts all ampersands in a form field to the text string " and " when the form loses focus on the textbox in question.

  Write program to find smallest-largest value from n numbers

Write down program which will determine the smallest, largest and average values in collection of N numbers. Get value of N before scanning each value in collection of N numbers.

  Develop a program to input miles driven and gallons for tank

Develop a program in C++ that will input the miles driven and gallons used (both as integers) for each tankful. The program should calculate and display the miles per gallon obtained for each tankful.

  Small game development

Small game development - the development has to be done in PROLOG LANGUAGE.

  Method to pass string argument and returns first line

Write a method, getFirstLine, that is passed a String argument and that returns the first line.

  Write program which prompts for boiling point of substance

Write program which prompts user for observed boiling point of substance in Centigrade and identifies substance if observed boiling point is within 5% of the expected boiling point.

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