1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
grigory [225]
3 years ago
6

How many inputs are included in the following requirement? REQUIREMENT: Write a program that asks the employee for their age. Th

e program must subtract the age from 65, and display the age, followed by the number of years left to retirement.
Computers and Technology
1 answer:
wolverine [178]3 years ago
4 0

Answer:

The correct answer for the given question is 1

Explanation:

Following are the program in c language  

#include<stdio.h> // header file

#include<conio.h>  //header file

void main()  // main method

{

int age,retiredAge;  // variable

clrscr();  // clear screen

printf("Enter Age : ");

scanf("%d",&age);  // input age

printf("************************");

retiredAge = (65-age);  // calculating retired age

printf("\nYour Age is %d",age);

if(retiredAge<0)  // checking condition

{

printf("\nYou are already cross the retired age. Or Enter Invalid Age.");

}

else

{

printf("\nNo of Years Left to retired is %d",retiredAge);  // dsiplay age

}

getch();

}

Output:

Enter Age : 50

************************

Your Age is 50

No of Years Left to retired is 15

Here Age is the only required input to calculate the retirement age of employee. if entered age is greater than 65 then a message is printed " You are already cross the retired age. Or Enter Invalid Age. " if entered age is valid then retiredAge is calculated with the formula retiredAge = (65-age). and finally display the age,followed by the number of years left to retirement.

Therefore  1 input are required for the above program.

You might be interested in
When using the strcat function, you must be careful not to overwrite the bounds of an array?
77julia77 [94]

If this is a true or false question the answer is true.

5 0
3 years ago
This program will demonstrate nested loops. Create a Java program that asks for a number of orders to process and use a loop to
podryga [215]

Answer:

there a website you can see a picture it wont let me send you a link sorry

3 0
3 years ago
what of the following compound conditions determines whether the values in the intOrdered variable is outside the range of 0 thr
11111nata11111 [884]

Answer:

intOrdered < 0 OrElse intOrdered > 25

4 0
3 years ago
1 white an object selected pressing CTRL D will
dsp73
1. B.
2.True
3.either B. or D.
4. I think it's a. or b.
7 0
3 years ago
A problem with windows is preventing screen snipping
TiliK225 [7]

Answer:

Don't post irrelevant questions.

Also yes it is.

3 0
2 years ago
Other questions:
  • Assume that ip has been declared to be a pointer to int and that result has been declared to be an array of 100 elements . Assum
    7·1 answer
  • Which stage best represents the developing of documents that provides the basis for acquiring the resources and for developing a
    11·1 answer
  • (3.01 MC)
    11·1 answer
  • Your organization recently deployed a Windows domain controller with Active Directory. All the domain OU users need to run the s
    7·1 answer
  • Module main() //Declare local variables Declare Real restaurantSales //Set gratuity tax rate as 10 percent Declare Real salesTax
    7·1 answer
  • create your own min function that finds the minimum element in a list and use it in a separate function
    14·1 answer
  • You have two microservices that need to communicate with each other without holding up a thread on either end. One service will
    6·1 answer
  • Bryan's company is new and has limited funds to work with. He has been tasked with finding a telecommunications technology that
    7·1 answer
  • Requests to retrieve data written in a language such as SQL are called…
    8·1 answer
  • What dictionary operation can you use to remove all the keys within the dictionary-named contacts?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!