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
What is the difference between compliled and intebrated language?
Nady [450]

Answer:  

A compiled language is a programming language whose implementations are typically compilers and not interpreters. In this language, once the program is compiled it is expressed in the instructions of the target machine. There are at least two steps to get from source code to execution. While, an interpreted language is a programming language whose implementations execute instructions directly and freely, without previously compiling a program into machine-language instructions. While in this language, the instructions are not directly executed by the target machine. There is only one step to get from source code to execution.

I hope this helps.

3 0
2 years ago
Read 2 more answers
using a timer to generate a random number, develop a program that displays random numbers between 1 and 47 (or whatever) for you
mestny [16]

Answer:

Explanation:

The following code is written in Python. It creates a variable that detects the current time. Then it loops through a range of numbers and chooses the last random number after 2 seconds. Finally, it prints that number to the screen. This function can be called countless times depending on the number of state lottery numbers needed.

import random

import time

start_time = time.time()

while time.time() - start_time < 2:

   lottery_number = random.randint(0, 48)

print(lottery_number)

3 0
3 years ago
How to copy and paste using keyboard onchromebook?
Diano4ka-milaya [45]
The copy combination is "ctrl+c". Highlight the text, go to where you want to paste it to, and use the combinations "ctrl+v".
5 0
3 years ago
The first idea for a communications network was called:
malfutka [58]

Answer:

the galactic network.

have a nice day <3

Explanation:

increase power in the telephone industry. investigate technologies for the military in the US. he first idea for a communications network was called: the galactic network.

8 0
2 years ago
Sally needs to copy data from the first worksheet to the fifth worksheet in her workbook. Which combination of keys will she use
Gelneren [198K]

The correct answer is A: Ctrl and Page Up or Page Down keys.

Ctrl + Page Down - from left-to-right

Ctr + Page Up - from right-to-left

3 0
3 years ago
Read 2 more answers
Other questions:
  • Why is the protocol down, even though you issued the no shutdown command for interface vlan 99?
    5·2 answers
  • The standard qwerty keyboard has 47 keys that can place characters on the screen. each of these keys can also display a second c
    13·2 answers
  • Write an if else statement that assigns 0 to the variable b and assigns 1 to the variable c if the variable a is less than 10. O
    5·1 answer
  • Many programmers today use a(n) _________, which is software that helps them build their computer programs. eula cad sdlc ide
    15·1 answer
  • In 1-2 pages, identify a social networking technology and identify at least 10 security and/or privacy risks the technology has
    8·1 answer
  • What are factors that limit a technological design
    11·2 answers
  • A keyboard and touch screen are the most common of ________ devices. select one:
    11·1 answer
  • PLEASE HELP!! WILL MARK BRAINLIEST!!
    15·1 answer
  • What is the output by the code system.out.print(8-4+2);
    13·1 answer
  • How to disable Fortinet?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!