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
maxonik [38]
3 years ago
12

Edhesive 6.7 code practice

Computers and Technology
1 answer:
timurjin [86]3 years ago
3 0
For the happy code put a happy face and so on and so forth. There isn't much people,e can do to help with these type of questions. A bit more detail is always appreciated for the people answering questions
You might be interested in
A check of dorms revealed that 38% had refrigerators, 52% had TV’s and 21% had both a TV and a refrigerator. What’s the probabil
stira [4]

Answer:

a) 31%  b) 48% c) 31%

Explanation:

We have the probabilities:

P(had TV) = 0.52

P(had refrigerator)=0.38

P(had both a TV and a refrigerator)=0.21

<em>a) a TV but no refrigerator </em>

P(a TV but no refrigerator) =P(TV)- P(both a TV and a refrigerator) = 0.52 - 0.21 = 0.31

<em>(b) a TV or refrigerator but not both </em>

P(a TV or refrigerator but not both) = P(TV) + P(had refrigerator) - 2×P(had both a TV and a refrigerator) = 0.52+ 0.38 - (2×0.21) = 0.48

<em>(c) neither a TV nor a refrigerator</em>

P(neither a TV nor a refrigerator) = 1 - ( P(TV) + P(had refrigerator) - P(had both a TV and a refrigerator) ) = 1- (0.52 + 0.38 - 0.21) = 0.31

<em></em>

8 0
4 years ago
Why should you keep lines of code short?
Nataly [62]

The programmers should keep lines of code short because It makes the code more readable by other programmers.

<h3>Short lines of Code</h3>

Normally, a shorter lines of code are more efficient than spreading the code over several lines

Also, If a programmer have more lines of code, there are more places for bugs to hide and finding them might be more of a hassle.

So, the fewer lines of code can achieve the same results or much better than many lines of code

Hence, the programmers should keep lines of code short because It makes the code more readable by other programmers.

Therefore, the Option A is correct.

Read more about Short lines of Code

<em>brainly.com/question/20475581</em>

3 0
2 years ago
Thomas is getting ready for a presentation. His slides are set, and he's
PIT_PIT [208]
B copy the web page of the video that you want to use
5 0
4 years ago
Algorithm to find volume of cuboid​
Dovator [93]

Answer:

Volume of a Cuboid = Length * Breadth * Height.

Volume of a Cuboid = lbh.

The Lateral Surface Area of a Cuboid = 2h (l + w)

Explanation:

6 0
3 years ago
Write a new method in the Rectangle class to test if a Point falls within the rectangle. For this exercise, assume that a rectan
algol [13]

Answer:

Explanation:

The Rectangle and Point class is not provided in this question but was found online. Using that code as guidance I created the following method named contains. This method takes in a Point object and checks to see if the x-axis point is inside the parameters of the Rectangle class and then checks the same for the y-axis. If it is inside the Rectangle then the method returns true otherwise it returns false.

def contains(self, point):

       return self.width > point.x >= self.corner.x and self.height > point.y >= self.corner.y

7 0
3 years ago
Other questions:
  • The process of converting information, such as text, numbers, photos, or music, into digital data that can be manipulated by ele
    7·1 answer
  • What is the name of the device that senses the current flowing, tripping the circuit, and cutting off the electricity?
    13·1 answer
  •  How does critically analyzing technology add value to interactions with people in personal and professional contexts?
    7·2 answers
  • Anybody know this question???
    6·1 answer
  • If Z=52 and ACT=48 then BAT=​ with explanation??​
    12·1 answer
  • While using a web-based order form, an attacker enters an unusually large value in the Quantity field. The value he or she enter
    15·1 answer
  • Please helpppppppppp​
    8·1 answer
  • Which symbol should you use for entering a formula in a cell?
    7·2 answers
  • 1.What is the output of the following program? [10 Marks]namespace ConsoleApp1{class Program{static void Main(string[] args){int
    13·1 answer
  • Why should you avoid the use of sarcasm, clichés, and idioms in business<br> letters
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!