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
What did Gilbert Arenas did impact or influence on Black History and Sports?
7nadin3 [17]

Answer: December 19, 2009, NBA star Gilbert Arenas and a teammate on the  Washington Wizards  Javaris Crittenton got in a heated argument over a  game,  and made violent threated. After Crittenton challenged him to a fistfight, Arenas told his younger teammate he could not  fight him, but he'd burn his SUV or shoot him in the face instead.

this overall had a negative affect   on black history when it comes to sports or Gilbert

3 0
3 years ago
Read 2 more answers
During casting and solidification, shrinkage includes: a)-Liquid contraction during cooling prior to solidification. b)-Contract
AysviL [449]

Answer:

(d) all of the above

Explanation:

The option (a) (b) and (c) all are the process of the casting and solidification shrinkage, all the three process are done one by one in casting and solidification shrinkage.

there are mainly three stages in casting and solidification shrinkage these are

  • liquid shrinkage
  • solid to liquid shrinkage
  • contraction process

so from given conclusion it is clear that the statement of option a b and c are correct so the option d will be the correct option

7 0
4 years ago
What are some of the trade-offs of a move to an enterprise-level analytics solution for individual end users who might have grow
aleksandrvk [35]

Answer:

THE thing is 435

Explanation:

3 0
3 years ago
the frequencies 10, 12, 23 and 45 Hz. (a) What is the minimum sampling rate required to avoid aliasing? (b) If you sample at 40
ValentinkaMS [17]

Answer:

Sampling rate = 90

23 and 45 Hz

Explanation:

The Nyquist criteria states that the sampling frequency must be at least twice of the highest frequency component.

(a) We have 10, 12, 13, 23, and 45 Hz signals

The highest frequency component in this list is 45 Hz

So minimum sampling frequency needed to avoid aliasing would be

Sampling rate = 2*45 = 90 sps

Hence a sampling rate of 90 samples per second would be required to avoid aliasing.

(b) if a sampling rate of 40 sps is used then

40 = 2*f

f = 40/2 = 20 Hz

Hence 23 and 45 Hz components will be aliased.

3 0
3 years ago
What is the length of x
kkurt [141]

Answer:

14/64

Explanation:

8 0
3 years ago
Other questions:
  • .provide feedback to the controller about the robot's environment, a limited sense of sight and sound
    6·2 answers
  • What is the effect of the workpiece specific cutting energy on the cutting forces, and why?
    5·1 answer
  • Consider a torsionally elastic (GJ = 8000 lb-in2) wind tunnel model of a uniform wing, the ends of which are rigidly fastened (f
    11·2 answers
  • What are four types of biomass that can be converted into alternative fuels
    9·1 answer
  • 10. The repair order is a legal document because
    7·1 answer
  • A car engine with a thermal efficiency of 33% drives the air-conditioner unit (a refrigerator) besides powering the car and othe
    15·1 answer
  • Description: An apartment building has a pumped ring main that circulates hot water at 75 C through insulated 40 mm pipe with he
    12·1 answer
  • 1. What is resilience engineering and how does it pertain to the current<br>corona virus crisis? ​
    14·1 answer
  • 7. Which of the following is a disadvantage of an electromagnet?
    10·1 answer
  • 1. When jump starting a car, make sure it is in __________.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!