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
Licemer1 [7]
4 years ago
8

Write a program that takes the length and width of a rectangular yard and the length and width of a rectangular house situated i

n the yard. Your program should compute the time required to cut the grass at the rate of two square feet a second.
Computers and Technology
1 answer:
Salsk061 [2.6K]4 years ago
7 0

Answer:

// here is code in c++.

#include <bits/stdc++.h>

using namespace std;

// main function

int main()

{

// variables

int y_len,y_wid;

int h_len,h_wid;

// read the length and width of yard

cout<<"Enter the legth of yard:";

cin>>y_len;

cout<<"Enter the width of yard:";

cin>>y_wid;

// read the length and width of house

cout<<"Enter the legth of house:";

cin>>h_len;

cout<<"Enter the width of house:";

cin>>h_wid;

// calculate grass area

int g_area=(y_len*y_wid)-(h_len*h_wid);

// find the time

int t=g_area/2;

// print the time

cout<<"time required to cut the grass is: "<<t<<" seconds."<<endl;

return 0;

}

Explanation:

Read the length and width of the yard. Then read the length and width of house from user.Calculate the area of grass by subtracting the area of house from area of yard.Then divide the area of grass by rate of 2 square feet per second.

Output:

Enter the legth of yard:25

Enter the width of yard:20

Enter the legth of house:15

Enter the width of house:12

time required to cut the grass is: 160 seconds.

You might be interested in
All of the following are ways to save money on transportation except :
Lisa [10]
The options listed are not related to the question. and if they were related in any sense then I would say the cheapest thing on the list is a phone card so I guess you can buy that and save the most for your travel as you can use phone cards anywhere as they have 1800 numbers which are free from any public phone. 
7 0
3 years ago
Terry is building a Web site and wants to have three main links called Home, Product Info, and Contact Us. She will create a hie
Shalnov [3]

Answer: Child element

Explanation:

 According to the question, terry building the web site and she wants to create the three main types of links in the home page such as home, contact us and the product information. The, she start creating the hierarchy of elements in the page and also revise all the styles in the sheet.

Then, the home page contain the two child element as it s the sub elements of the home page. As, the one element which is inherited from the upper element ( Parent ) is known as child element. This is the hierarchy of the elements which represented in the home page.  

5 0
3 years ago
A company database consists of 10,000 sorted names, 40% of whom are known as good customers and who together account for 60% of
vladimir2022 [97]

Answer:

The answer is "binary search= 5.111 and Linear seacrch= 6400".

Explanation:

Following are the description of this question:

  • Binary Search-The performance with single arrays is log 10000 = 4, through the use of two arrays (60/100)*log4000 + (40/100)*(log4000 + log6000) = 5.111.  
  • In the linear search: while doing static searches, 10000 would be performed, and (60/100)*4000 + (40/100)*6000 = 6400 will be used with two arrays.  
  • It's a special case, that will be used in one of the arrays in a binary search. Whereas good case uses linear frames, two frames are used, as indicated above.
7 0
3 years ago
What is an online recommendation engine?
Nataly_w [17]

it is software that analyzes available data to make suggestions for something that a website user might be interested in, such as a book, a video or a job, among other possibilities.

6 0
3 years ago
Images that are made up of pixels and cannot be resized without losing quality?
Inessa05 [86]

Answer:

there are no known pictures that can be zoomed in and not lose quality. they will all be pixelized. mostly everything on a computer is made of pixels.

Explanation:

hope this helps!

~evita

8 0
3 years ago
Other questions:
  • While at work, Joe asked Dana to show him how to change the copier paper. Joe kept working as she explained the process, and the
    5·2 answers
  • A standard science experiment is to drop a ball and see how high it bounces. Once the bounciness of the ball has been determined
    10·1 answer
  • Each of the major DBMS products changes quite rapidly, and keeping DBMS software up-to-date can be a difficult task. As a DBA, w
    14·1 answer
  • A _____ is inserted so that a portion of a document that can have different formatting from the rest of the document. a. heading
    9·1 answer
  • Who Keeps Reporting My questions<br><br> Please Be Honest Lying Isnt Nice
    15·1 answer
  • DRAG DROP -A manager calls upon a tester to assist with diagnosing an issue within the following Python script:#!/usr/bin/python
    11·1 answer
  • Dgvdsgf cvdzgb fgvsdxchygfdrzvdszfgvsdzxd
    9·1 answer
  • Convert one billion byte into one storage unit​
    6·1 answer
  • Why is UPS necessary to connect with the computer​
    11·1 answer
  • Savings accounts _____.
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!