answer.
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
JulsSmile
2 months ago
14

Assignment 2: Room area

Computers and Technology
1 answer:
Rzqust [1K]2 months ago
5 0

Response:

a = float(input("Enter the length of Side A: "))

b = float(input("Enter the length of Side B: "))

c = float(input("Enter the length of Side C: "))

d = float(input("Enter the length of Side D: "))

e = float(input("Enter the length of Side E: "))

area1 = 1.0 * a * b

area2 = (a - c) * (d - e -b)

area3 = 0.5 * (a - c) * e

print ("Total Area of the Room: " + str(area1 + area2 + area3))

Clarification:

I'm here to help ^3^

You might be interested in
In this code, identify the repeated pattern and replace it with a function called month_days, that receives the name of the mont
8_murik_8 [964]

Answer:

Below is the month_days function:

def month_days(month, days):

 print (month +" has " + str(days) + " days.")

You can invoke this function with arguments like:

month_days ("June", 30)

month_days("July", 31)

The function can also be restructured as follows:

def month_days(month, days):

 return (month +" has " + str(days) + " days.")

To view the output, call the function along with print like this:

print(month_days ("June", 30))

print(month_days("July", 31))

Explanation:

The defined month_days function takes two parameters: the month name and the number of days in that month. It has a return statement return (month +" has " + str(days) + " days.") which combines the month name held in the variable month with the word "has" and then the number of days stored in days followed by the term days.

For instance, if "June" is passed in as month and 30 as days, the output will be:

June has 30 days.

This program can also be constructed using an f-string for better formatting in the month_days function:

def month_days(month, days):

   output = f"{month} has {days} days."

   return (output)

To see the output, invoke the function with print:

print (month_days("June", 30))

print (month_days("July", 31))

The f-string starts with 'f' and includes the parameters month and days within curly braces. The variables month and days are substituted with their respective values when the function is called.

Screenshot of the program and its output is attached.

6 0
2 months ago
A company requires an Ethernet connection from the north end of its office building to the south end. The distance between conne
maria [1035]

Answer:

A business needs an Ethernet connection that spans from the northern part of their office to the southern part. The distance of this connection is 161 meters and should support speeds up to 10 Gbps in full duplex mode. Which cable types would be suitable for these specifications?

ANSWER: Multi-mode fiber optic cable should be used

Explanation:

MULTI-MODE FIBER OPTIC CABLE

For distances extending to 100 meters, Copper CATX cable is adequate. However, since the distance here is 161 meters, an Ethernet extension is necessary. Using fiber optic cable along with a media converter allows for the transition from copper Ethernet lines to fiber. Multi-mode fiber supports distances up to 550 meters for 10/100/1000 Ethernet links.

Typically, multi-mode fiber is used for short-distance communication like inside buildings or across campuses. It can achieve data rates of up to 100 Gbps, well above the requirements here. Furthermore, this option is cost-effective compared to single-mode fiber optic cables. Fiber optic technology is also advantageous due to its immunity to electromagnetic interference, voltage spikes, ground loops, and surges, making it a better choice for this application.

7 0
1 month ago
Haley is helping to choose members for a customer satisfaction team. Which of the following employees demonstrate skill in focus
oksian1 [950]
Jesse consistently seeks enhanced methods for addressing customer issues.
7 0
1 month ago
Which of the following attributes of a website indicates a more reliable source for information?
amid [951]
A characteristic of a website that signifies a more trustworthy source of information is when it has a domain ending in ".edu". This top-level domain is associated with educational institutions, indicating that the site is connected to universities, colleges, or other educational entities, thus providing reliable and factual information.
3 0
1 month ago
Debug the program so it prints the factorial of a positive integer entered by the user. This is calculated by multiplying all th
Natasha_Volkova [1026]
The primary issue was declaring int prod within the while loop, which caused prod to reset to 1 each time the loop executed.
3 0
1 month ago
Other questions:
  • 3.14 LAB: Input and formatted output: Caffeine levels A half-life is the amount of time it takes for a substance or entity to fa
    9·1 answer
  • Which of these is an example of the integrity principle that can ensure your data is accurate and untampered with?
    10·2 answers
  • Susan is assisting a web designer to create a promotional web page on eco-friendly classroom designs. She uses color combination
    5·1 answer
  • Two middle-order batsmen are compared based on their performance in their previous cricket match.
    7·1 answer
  • Define a function print_feet_inch_short(), with parameters num_feet and num_inches, that prints using ' and " shorthand. End wit
    6·2 answers
  • U.S. industries like steel, computers, and energy need to be protected from foreign competition to ensure which of the following
    6·2 answers
  • Assign max_sum with the greater of num_a and num_b, PLUS the greater of num_y and num_z. Use just one statement. Hint: Call find
    5·1 answer
  • 7.7 LAB: Using a while loop countdown Write a program that takes in an integer in the range 10 to 100 as input. Your program sho
    11·1 answer
  • Write lines of verse that rhyme to remember the following information:
    16·2 answers
  • Dr. Collins has a personal website where he encourages his students to solve questions and discuss topics he taught in class. Wh
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!