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
OLEGan [10]
3 years ago
15

Complete the function ConvertToWeeksAndDays to convert totalDays to weeks and days. Return weeks and days using the ElapsedWeekD

ay struct. Ex: 26 days is 3 weeks and 5 days.
Engineering
1 answer:
mafiozo [28]3 years ago
7 0

The program is an illustration of functions.

Functions are group of code blocks that perform as one

The ConvertToWeeksAndDays() function in python where comments are used to explain each line is as follows:

#This defines the ConvertToWeeksAndDays function

def ConvertToWeeksAndDays(totalDays):

   #This calculates the number of weeks

   weeks = totalDays//7

   #This calculates the number of days

   days = totalDays %7

   #This prints the number of weeks and days

   print(weeks,"weeks and",days,"days")

Read more about similar programs at:

brainly.com/question/25223400

You might be interested in
Convert 850 nm wavelength into frequency, eV, wavenumber, joules and ergs.
Sholpan [36]

Answer:

Frequency = 3.5294\times 10^{14}s^{-1}

Wavenumber = 1.1765\times 10^6m^{-1}

Energy = 2.3365\times 10^{-19}J

Energy = 1.4579 eV

Energy = 2.3365\times 10^{-12}erg

Explanation:

As we are given the wavelength = 850 nm

conversion used : (1nm=10^{-9}m)

So, wavelength is  850\times 10^{-9}m

The relation between frequency and wavelength is shown below as:

Frequency=\frac{c}{Wavelength}

Where, c is the speed of light having value = 3\times 10^8m/s

So, Frequency is:

Frequency=\frac{3\times 10^8m/s}{850\times 10^{-9}m}

Frequency=3.5294\times 10^{14}s^{-1}

Wavenumber is the reciprocal of wavelength.  

So,  

Wavenumber=\frac{1}{Wavelength}=\frac{1}{850\times 10^{-9}m}

Wavenumber=1.1765\times 10^6m^{-1}

Also,  

Energy=h\times frequency

where, h is Plank's constant having value as 6.62\times 10^{-34}J.s

So,  

Energy=(6.62\times 10^{-34}J.s)\times (3.5294\times 10^{14}s^{-1})

Energy=2.3365\times 10^{-19}J

Also,  

1J=6.24\times 10^{18}eV

So,  

Energy=(2.3365\times 10^{-19})\times (6.24\times 10^{18}eV)

Energy=1.4579eV

Also,  

1J=10^7erg

So,  

Energy=(2.3365\times 10^{-19})\times 10^7erg

Energy=2.3365\times 10^{-12}erg

5 0
3 years ago
What is pre-flush and post flush in petroleum engineering?
cluponka [151]

Answer:

Pre-Flush:

It is also known as In-line Equalization. In this stage of flow equalization, all the flow passes through the equalization basin. It helps in reduction of fluctuation in pollutants concentration and flow rate and helps to control short term surges with the use of basin.

Post-Flush:

Another name for this stage is Off-line Equalization. In this stage, only overflow above a predetermined standard is diverted into the basin. It helps in reducing the fluctuations in loading by a considerable amount and helps to reduce the pumping requirement. It is basically used to capture "first flush" from combined collection systems.

5 0
3 years ago
Elizabeth has been asked to design a pool umbrella that can withstand wind speeds of up to 30 miles per hour. Now that she under
zlopas [31]

Answer:

The correct option is;

D. She will need to research the problem even more

Explanation:

In other to properly design the pool umbrella that will be reliable and meet the needs of the particular customer, she will need to carry out a basic research about the environment where the pool umbrella is to be used, the presence of other factors that can impact on an idea for the pool umbrella.

She can then proceed to create a concept about the proposed pool umbrella, which is in the form of a paper concept

She will then proceed to carry out a more detailed study based on the paper concept that will consist of concept technology and application as well as functionality.

7 0
4 years ago
Read 2 more answers
it is used to meusure the amount of electric current. A.clamp meter. B .micrometer C steel rule D. electric meter​
Marianna [84]

Answer:

<em>Option D </em>

<em>Electric meter is used to </em><em>measure</em><em> the amount of electric current</em>

6 0
3 years ago
Elijah wants to make some changes to a game that he is creating. Elijah wants to move the bleachers to the right, the coaches to
Ahat [919]

Answer:

the editor

Explanation:

the variable is usually a number, and the conditional loop has nothign to do with movement/ where something is located

7 0
3 years ago
Read 2 more answers
Other questions:
  • Why does a foil airplane fly farther than a paper one?
    6·1 answer
  • 7. __________ is also known as coolant and is found in liquid-cooled engines.
    11·2 answers
  • The total energy of a system remains unchanged during a cycle. a)- True b)- False
    13·1 answer
  • An amplifier which needs a high input resistance and a high output resistance is : Select one: a. A voltage amplifier b. None of
    8·1 answer
  • g Asbestos is a fibrous silicate mineral with remarkably high tensile strength. But is no longer used because airborne asbestos
    5·1 answer
  • A fill covering a wide area is to be placed at the surface of this profile. The fill has a total unit weight of 20 kN/m^3 and is
    11·1 answer
  • Technician A says that a tie rod end is a ball and socket joint similar in construction to a ball joint. Technician B says that
    6·2 answers
  • E) What are the major jobs of a nurse?<br><br>​
    14·1 answer
  • While servicing a vehicle, you retrieve the diagnostic code P0401, "EGR (exhaust gas recirculatior flow insufficient." Which of
    10·1 answer
  • What do we need to travel farther distances in space
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!