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
Anuta_ua [19.1K]
4 years ago
14

Write Python algebraic expressions corresponding to the following statements: (a) The sum of the first five positive integers (b

) The average age of Sara (age 23), Mark (age 19), and Fatima (age 31) (c) The number of times 73 goes into 403 (d) The remainder when 403 is divided by 73 (e) 2 to the 10th power (f) The absolute value of the difference between Sara's height (54 inches) and Mark's height (57 inches) (g) The lowest price among the following prices: $34.99, $29.95, and $31.50
Computers and Technology
1 answer:
lbvjy [14]4 years ago
5 0

Answer:

#part a

#sum of first 5 positive number

Sum=5*(5+1)/2

print("sum of first 5 positive integer is: ",Sum)

#part b

# declare age of all

Sara_age=23

Mark_age=19

Fatima_age=31

ave_age=(Sara_age+Mark_age+Fatima_age)/3

print("average age of Sara,mark and Fatima is: ",ave_age)

#part c

#find number of times

no_of_times=int(403/73)

print(" number of times when 73 goes into 403 is: ",no_of_times)

#part d

#find remainder

rem=403%73

print("when 403 is divided by 73 then remainder  is: ",rem)

#part e

#calculate 2 to pawer 10

two_pow=2**10

print("2 to power  10 is: ",two_pow)

#part f

#declare height of both

sara_h=54

mark_h=57

diff_h=abs(sara_h-mark_h)

print("The absolute difference between height of Sara and Mark is: ",diff_h)

#part g

#find the minimum among three

print("lowest price among the three($34.99,$29.95,$31.50) is: $",min(34.99,29.95,31.50))

Explanation:

In part a, sum of first 5 positive number is calculated as 5*(5+1)/2.In part b, add the age of three and divide it  by 3. In part c, use "/" to find number of times 73 goes into 403.In part d, use "%" to find remainder when 403 is divide by 73.In part e, 2 to the 10th power is calculated as 2**10.In part f, use abs() to find the absolute  difference.In part g, min() function is used to find lowest among the 3 prices.

Output:

sum of first 5 positive integer is:  15.0                                                                                  

average age of Sara,mark and Fatima is:  24.333333333333332                                                                

number of times when 73 goes into 403 is:  5                                                                              

when 403 is divided by 73 then remainder  is:  38                                                                          

2 to power  10 is:  1024                                                                                                  

The absolute difference between height of Sara and Mark is:  3                                                            

lowest price among the three($34.99,$29.95,$31.50) is: $ 29.95

You might be interested in
PLEASE HELP ME ASAP I HAVE AN EXAM SOON!!!!
3241004551 [841]

Answer:

try seeing if the nozzle of the cartridge is clogged

Explanation:

8 0
3 years ago
You need to put cabling for connecting two new computers in a room, which did not have any network infrastructure. Because of th
vredina [299]

Answer: Twisted pair cabling in the shielded form can be used for the mentioned situation in the question

Explanation: Twisted pair cables in shielded form are easy to make a connection .It does not create lot of noise and has reduced cross talk .It is a low weighted cable and so it can be easily attached with the ceiling tile.

The maintenance of the complete cabling is not a issue and interference is also low that fulfills the requirement of disruption-less network signal.The overall costing of the cable is also less .Thus shielded twisted pair cable are the most appropriate cable for the mentioned situation.

3 0
3 years ago
Read 2 more answers
PLEASE HELP BRAINLIEST TO CORRECT ANSWER!!!
dsp73

Answer:

Blank #1 Meetup

Blank#2 MySpace

Explanation:

Blank# 1 Explanation

Meetup is a platform that enables to to seek out (or create!) local meetups. You mark your preferences when you register to this site. Meetup will then inform you of local meet ups that may concern you. The meetups cover a wide range of topics varying from technical issues, professional discussion to hobbies  etc. If you do not find topic of your interest, you may set up one and Meetup can inform relevant people who have marked your topic as something that interests them. It's a perfect platform to locally gather people with same interests.

Blank #2 Explanation

MySpace is a platform for social networking. It is a social networking website which offers an engaging, user network of friends, blog, personal profiles, forums, communities, images, songs, and videos.It used to be one of the largest social networking site in the world where people communicate and interact informally.

6 0
3 years ago
Should I Buy a 2070 super or 2060 super
fiasKO [112]

Answer:

Which ever one you want

Explanation:

Make your heart happy

8 0
3 years ago
They convert energy from the Sun into usable chemical energy by the process of photosynthesis. They are
Alchen [17]
Photosynthetic organisms are producers because they are producing chemical energy useable by living things.
4 0
3 years ago
Other questions:
  • How do you enlarge your screen if there is no control panel? Need desperate help!
    15·1 answer
  • When the wires are connected to the terminals of the battery, what causes electric current in the circuit?
    15·1 answer
  • Vhat is output by the code below?<br><br> PLEASE HELP!! TIME LIMIT!!
    5·1 answer
  • _______ allows you to add formatting such as shapes and colors to text.
    14·1 answer
  • 1. What does a network allow computers to share?
    13·1 answer
  • ____ a British mathematician devolved the concept of a programmable digital computer and worked with Ada Lovelace to design the
    13·1 answer
  • Write a program that reads a list of integers into a vector, and outputs the two smallest integers in the list, in ascending ord
    5·1 answer
  • Which of the following is an object such as a field which can be inserted into a document
    7·1 answer
  • When using a small mic that attaches to your interview subject, where should you place that mic and why?
    5·1 answer
  • Assume the data link protocol used by NDAS has the following associated characteristics:
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!