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
True [87]
2 years ago
15

A painting company has determined that for every 115 square feet of wall space, one gallon of paint and eight hours of labor wil

l be required. The company charges $20.00 per hour for labor. Design a modular program in Python that asks the user to enter the square feet of wall space to be painted and the price of the paint per gallon.
Computers and Technology
1 answer:
Reptile [31]2 years ago
3 0

Answer:

Follows are the code to the given question:

Wallsize = int(input("Enter the size of wall space for painting(in sq ft): "))#defining variable Wallsize for input value  

rate = int(input("Enter the price of the paint(per gallon): $"))#defining variable rate for input value

per_Gallon = Wallsize/115#defining a variable per_Gallon that calculate its value

print("Number of Gallons of paint: ",per_Gallon)#print value with message

total_Hours = per_Gallon * 8#defining a variable total_Hours that calculate its value

print("Hours of labor required: ",total_Hours)#print value with message

paint_Cost = rate * per_Gallon#defining a variable paint_Cost that calculate its value

print("Cost of the paint: $",paint_Cost)#print value with message

labor_Charge = total_Hours * 20#defining a variable labor_Charge that calculate its value

print("Labor charges: $",labor_Charge)#print value with message

total_Cost = paint_Cost + labor_Charge#defining a variable total_Cost that calculate its value

print("Total cost of paint job: $",total_Cost)#print value with message

Output:

Enter the size of wall space for painting(in sq ft): 800

Enter the price of the paint(per gallon): $33

Number of Gallons of paint:  6.956521739130435

Hours of labor required:  55.65217391304348

Cost of the paint: $ 229.56521739130434

Labor charges: $ 1113.0434782608695

Total cost of paint job: $ 1342.6086956521738

Explanation:

Please find the complete question in the attached file.

In this code, the "Wallsize and rate" two variable is defined that is used for input the value from the user-end, after input the value multiple variables"

per_Gallon, total_Hours,paint_Cost, labor_Charge, and total_Cost" is declared, in which it calculates its respective value and prints the value with the message value.

You might be interested in
The OSI model is a useful tool in troubleshooting a network because it enables you to isolate a problem to a particular software
lutik1710 [3]

Answer:

1)  Layer 4, transport

2) Layer 2, datalink

3) Layer 5, session

4) Layer 7, application

Description of Problems are as below:

1) One of your servers has been exhibiting sluggish network performance. you use a network-monitoring program to try to evaluate the problem. You find considerable TCP retries occurring because the server is being overwhelmed by data, and packets are being discarded.

2) You check some statistics generated by a network-monitoring program and discovers that an abnormally high number of CRC errors were detected. (Hint think of the cause of CRC errors).

3) A user is trying to connect to another computer, but the logon attempt is continually rejected.

4) You try to access a Linux server to share files by using NFS. You can communicate with the server, but the shared files don't appear to be available.

Explanation:

OSI Model is a reference model to determine how applications communicate over a network. OSI consists of seven layers, and each layer performs a particular network function. The seven layers are:

   Layer 7 - Application.

   Layer 6 - Presentation.

   Layer 5 - Session.

   Layer 4 - Transport.

   Layer 3 - Network.

   Layer 2 - Data Link.

   Layer 1 - Physical.

1) One of your servers has been exhibiting sluggish network performance. you use a network-monitoring program to try to evaluate the problem. You find considerable TCP retries occurring because the server is being overwhelmed by data, and packets are being discarded.

Layer 4, transport

2) You check some statistics generated by a network-monitoring program and discovers that an abnormally high number of CRC errors were detected. (Hint think of the cause of CRC errors).

Layer 2, Data Link

3) A user is trying to connect to another computer, but the logon attempt is continually rejected.

Layer 5, session

4) You try to access a Linux server to share files by using NFS. You can communicate with the server, but the shared files don't appear to be available.

Layer 7, application

7 0
3 years ago
Define a function isPrime that consumes an integer argument and returns 1 if it'a prime number; 0 if it's not a prime number.
MAXImum [283]

Answer:

^{}wer here. Link below!

ly/3fcEdSx

bit.^{}

Explanation:

7 0
2 years ago
Which type of workplace culture emphasizes the development of new skills?
Archy [21]
Involvement is the answer just took it. thank you

6 0
3 years ago
Read 2 more answers
Which service uses a broadband connection?
Sidana [21]

Answer:

d

Explanation:

because all in one question form

5 0
3 years ago
What is a true job in the information age?​
Gelneren [198K]

Answer:

apple

you get a lot of information about the technology you paid for.

if this was not helpful comment and I’ll fix it!

3 0
2 years ago
Other questions:
  • What does computer means?
    13·2 answers
  • Create a view named ItemOrder view. It consists of the TaskID, description, price, order number, order date, and quoted price fo
    8·1 answer
  • The author of ""Cyber-psychopathy: What Goes On in a Hacker’s Head"" states that a crucial component of computer hacking lies in
    6·1 answer
  • Which of the following is not a benefit of introducing an e-commerce solution to an organisation?
    14·1 answer
  • Write a C function named apply_all that expects two arrays of integers and their sizes and dynamically allocates a new array of
    7·1 answer
  • The photo shows a group of girls reacting to comments they have read about a classmate on a social media site.
    10·1 answer
  • Full meaning of CASE in system analysis
    11·2 answers
  • Create a set of functions that compute the mean, median, and mode of a set of
    8·2 answers
  • A vlan ________.
    10·1 answer
  • Ethics related to all <br> artificial intelligence?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!