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
PtichkaEL [24]
3 years ago
5

write a program that reads in the length and the width of a rectangular yard . your program should compute the time required ( i

n minutes ) to cut the grass at the rate of 2.3 square meters a second
Computers and Technology
1 answer:
sveticcg [70]3 years ago
3 0
Here's on C:
#include<stdlib.h> 
<span>#include<stdio.h> </span>
<span>#include<conio.h> </span>
<span>long YardArea=0,HouseArea=0; </span>
<span>int YardLength=0,YardWidth=0,HouseLength=0,HouseWidth=0; </span>
<span>long GroundArea=0; </span>
<span>int TimeReqierd=0; </span>
<span>int GrassCutRate=2; </span>
<span>void main() </span>
<span>{ </span>
<span>char inp[256]; </span>
<span>clrscr(); </span>
<span>printf("your text text\n");  // put your greetings</span>
<span>printf("Input the leght of the yard\n"); </span>
<span>gets(inp); </span>
<span>YardLength= atoi(inp); </span>
<span>printf("input the width of the yard\n"); </span>
<span>         gets(inp); </span>
<span>YardWidth=atoi(inp); </span>
<span>    printf("input the length of the house\n"); </span>
<span>         gets(inp); </span>
<span>HouseLength=atoi(inp); </span>
   printf("input <span>the width of the house\n"); </span>
<span>         gets(inp); </span>
<span>HouseWidth=atoi(inp); </span>
<span>HouseArea=HouseWidth *HouseLength ; </span>
<span>YardArea=YardWidth* YardLength; </span>
<span>GroundArea=YardArea-HouseArea; </span>
<span>   TimeReqierd=GroundArea/GrassCutRate; </span>
<span>printf("%s%d","Grass Area is ",GroundArea); </span>
<span>printf("%s%d seconds"," \n time required to cut it out " ,TimeReqierd); </span>
<span>getchar(); </span>
<span>} </span>
You might be interested in
The computer mouse are used for
IgorC [24]
A computer mouse is an input device for a computer that provides information onto the x and y coordinates of the icon being moved around by this mouse (referred to as a cursor) based off of the hand movements of the user moving the mouse.
Mouses also have three other button inputs. These are the left, right, and middle mouse buttons. The left button is typically used as the primary button, and is used to select, drag, open, and similar function. The right mouse button is usually intended for opening menus for additional options to be performed by the program being right-clicked on. The middle mouse button is actually a wheel that is used to move pages that extend beyond the boundaries of your screen up and down for easier viewing.
Hope that helped! =)
5 0
3 years ago
Read 2 more answers
A technician is assigned a task to configure a new server with six hard drives. The senior administrator requested the technicia
Doss [256]

Answer:

The answer is "Option C".

Explanation:

It is a way of saving data for additional protection, and it provides an efficiency to connect the lots of hard discs. It uses the optimization techniques, named stages, which is used in unique counts, that will be considered from 0 to 9, and other were incorrect, that can be described as follows:

  • The RAID 3 offers synchronization rotation to all discs.
  • The RAID 5 uses parallel disc patterning.
  • The RAID 0 divides data into the blocks.
4 0
3 years ago
Give me at least five main characteristic of irrigation equipment​
ss7ja [257]

Answer:

flow control devices

filters

fertigation equipment

water emitters

automation equipment

operation equipment

water-lifting devices.

3 0
3 years ago
Assume that the array arr has been defined and initialized with the values {4, 2, 5, 3, 1}. What are the values in the array arr
Murrr4er [49]

Answer:

arr = [4, 2, 5]

Explanation:

The while loop will remove the array elements from the back.

5 0
3 years ago
A ____________ would be a misconfiguration of a system that allows the hacker to gain unauthorized access, whereas a____________
Lynna [10]

Answer:

vulnerability, risk

Explanation:

A vulnerability would be a misconfiguration of a system that allows the hacker to gain unauthorized access, whereas a risk is a combination of the likelihood that such a misconfiguration could happen, a hacker’s exploitation of it, and the impact if the event occurred.

6 0
3 years ago
Other questions:
  • Which of the following is a goal of paraphrasing and summarizing?
    14·2 answers
  • Assume the following JavaScript program was interpreted using staticscoping rules. What value of x is displayed in function sub1
    12·1 answer
  • ____ is another term for document properties.
    12·1 answer
  • A string s is a circular shift of a string t if it matches when the the characters are circularly shifted by any number of posit
    9·1 answer
  • PLEASE HELP. I’ll mark you BRAINLIST <br> Please read the comment under this question
    9·1 answer
  • What is the output?
    11·1 answer
  • Cora is writing a program to make a motorcycle racing game. If Cora wants the speed of the motorcycle to appear on the screen wh
    5·2 answers
  • In two to three sentences, define "home row" and explain why it is important.
    6·2 answers
  • What is the main difference between the ICD-10 annual revision released by the WHO and the ICD-10-CM/PCS annual revision release
    11·1 answer
  • _____ allows a function or operator to perform different tasks depending on the types of the arguments or operands. Group of ans
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!