Change the following sentences using 'used to
a. We went to school together.
b. How did you spend the winter evenings?
c. We had our milk delivered.
d. I was in love with him.
e. At one time there were trees in the garden.

Answers

Answer 1

Answer:

a. We used to go to school together.

b. How did you use to spend the winter evenings?

c. We used to have our milk delivered.

d. I used to be in love with him.

e. At one time there used to be trees in the garden.


Related Questions

In what way, if any, is a model different from a simulation?


Models are types of simulations that transform data sets into scenarios.

Models and simulations are completely different in that they achieve different results.

Models and simulations are essentially identical—they are two terms that describe the same thing.

Models are types of simulations that create ideal workers and members of leadership.

Answers

Answer:

Models and Simulations are completely different in that they achieve diffenet results.

Explanation:

Modeling is the act of building a model. A simulation is the process of using a model to study the behavior and performance of an actual or theoretical system. In a simulation, models can be used to study existing or proposed characteristics of a system. ... Simulating is the act of using a model for a simulation.

Answer:

Models are types of simulations that transform data sets into scenarios

Explanation:

Model - computer models take complex data sets and transform them into real-life simulations

Please read this lab exercise thoroughly, before attempting to write the program.

Write a program that reads the pairs of group number and student count from the text file (user must enter name of file) and:

Displays the number of groups in the file (5 %)
Displays the number of even and odd student count (5%)
Displays the sum of the even student count and the sum of the odd student count as well as the sum of all the student count (5%)
Displays the group numbers of the largest student count and the smallest student count (5 %)
Computes the average of the largest and smallest student count (10 %)
Compute the sum of ALL the digits in the largest student count (i.e. 952 – Sum is 9+5+2 = 16) (15 %)
Assume the contents of the file are as follows but that the pairs of data can change later:

1 25

2 123

3 475

4 61

5 77

6 910

7 234

8 138

9 134

10 95

11 674

12 345

13 31

14 211

15 952

16 873

17 22

18 7

19 876

20 347

21 450

The following is a sample output: User input in red

What is name of the input file? integers.dat

The number of groups in the file is 21

There are 12 odd student count and 9 even student count

The sum of the odd student count is 2645

The sum of the even student count is 4390

The sum of all the student count is 7035

The group number of the largest student count is 15

The group number of the smallest student count is 18

The average of 952 and 7 is 479.5

The sum of all the digits in the largest student count is 16

NOTE:

Use two decimal point precision for the average
To check your code, adjust one of the student count in the file, recompile your code and run again (suggest changing the largest or smallest student count )
Even though there are 21 pairs of numbers in the file, the program should NOT presume there will always be 21 pairs of numbers. In other words, you should not solve this problem by declaring 21 pairs of values. If I choose to use another integers.dat file other than the one provided with the assignment, your program should still work correctly with that file as well. All you can assume is that a series of integers will be read in from the file. Therefore, you need to implement a solution that uses the repetition control structures (for, while, do…while) in the reading and processing of these values to produce your output.

Answers

Answer:

filename = input("Enter input file? ")

with open(filename, 'r') as data:

num_groups = []

num_counts = []

for line in data:

 cols = line.split()

 num_groups.append(int(cols[0]))

 num_counts.append(int(cols[1]))

print("The number of num_groups in the file is "+str(len(num_groups)))

c_even = 0; c_odd = 0; s_odd = 0; s_even = 0

for i in num_counts:

if i%2 == 0:

 c_even=c_even+1

 s_even = s_even + i

else:

 c_odd=c_odd+1

 s_odd = s_odd + i

print("There are "+str(c_odd)+" odd student and "+str(c_even)+" even student")

print("The sum of odd student is "+str(s_odd))

print("The sum of even student is "+str(s_even))

print("The sum of all student is "+str(s_even+s_odd))

max_count = num_groups[num_counts.index(max(num_counts))]

print("The group number of the largest student is "+str(max_count))

min_count = num_groups[num_counts.index(min(num_counts))]

print("The group number of the smallest student is "+str(min_count))

print("The average of "+str(max(num_counts))+" and "+str(min(num_counts))+" is:",end=" ")

print("%.2f" % ((max(num_counts)+min(num_counts))*0.5))  

bigkount = str(max(num_counts))

bigsum = 0

for i in range(len(bigkount)):

bigsum += int(bigkount[i])

 

print("The sum of all the digits in the largest student is: "+str(bigsum))

Explanation:

The program was written in Python.

Because of the length, I added an attachment where I used comments to explain the lines of the code

Other Questions
An airplane is flying in a horizontal circle at a speed of 100 m/s. The 80.0 kg pilot does not want the centripetal acceleration to exceed 7.00 times free-fall acceleration. What is the missing number? 7/18 21/? A.3 B.32C.44 D.54 plz plz plz hury plz plz plz plz plz help me I need real big help I'm stumped on this question Tasha lists all the multiple of 3 from 3 to99. Tony lists all the multiples of 5 from 5 to100. What is the first number that is on both lists? The second. TIMED PLEASE HELP ASAPIdentify whether the sentence below is a fragment, run-on or a correct sentence.The Chinese may have been using compasses as early as A.D. 1100. WesternEuropeans and Arabs were using compasses by 1200. The first compass wasprobably a magnetized needle floating in a bowl of water; by the thirteenthcentury the compass included a card showing the various directions.A.FragmentB.Run-onC.CorrectPlease select the best answer from the choices providedABC .Why is the deforestation higher in Chure range of Nepal? Mention any four reasons. Supporters of the geocentric theory would have most strongly objected to the statement that...a The Earth stands stillb The planets move around sunc The stars move around the Earthd Man is situated at the center of the universe Is interest in the arts a characteristic of life in Athens, Sparta, or both?Athens and SpartaSpartaAthens 1/3S=9 Three optionsA S=3B. S2/3C S=271/3 times S=9 The length of a rectangle is six times its width.If the perimeter of the rectangle is 84 ft, find its area. BRAINLIESTPlot the following co-ordinates and find the fourth point D to make a square A (-1,3) B (1,-1) C(5,1). Once you have found the missing coordinate use pythagoras to calculate the length of the sides. A person on a moving sidewalk travels 24feet the in 7 seconds. The moving side walk has a length of 180 feet. How long will it take to move from one end to the other? Interest rates are down to the lowest they have been in ten years! Hurry by and get the loan you have been wanting! You can buy that car! Build the addition! Go on an amazing vacation! These rates wont last long!Newspaper adWhat does this advertisement tell you about the current economy? Banks lowered the interest rates they charge for loans. The money supply will decrease, leading to fewer sales for many businesses. Banks lowered interest rates to decrease the money supply. People will get fewer loans and purchase more products and services. Banks lowered the interest rates they charge for loans. The money supply will increase, leading to more sales for many businesses. Banks lowered interest rates to increase the money supply. People will get more loans and purchase fewer products and services. What is the acceleration of a BMW i8 Roadster that goes from 0 to 60 mph in 3.8 seconds? a) in mi/h/s and b) in m/s^2 Convert 5.00 moles of carbon to grams. Be sure to report your answer with the correct significant figures. Cattle Trails started in Texas and ended in Northern states.TrueTrueFalseFalse Nancy's Diner offers its clients a choice of regular and diet soda. Last night, the diner served 54 regular sodas and 6 diet sodas. What percentage of the sodas served were regular? Which equation has the greatest rate of change?A.y=2x+5B.y=x+6C.y= -5x+2D.y=2/3x+4 A group of 2 adults and 4 children spent $38 on tickets to a museum. A group of 3 adults and 3 children spent $40.50 on tickets to the museum. Based on this information, how much is an adult ticket, and how much is a child ticket?2a + 4c = 38.003a + 3c = 40.50What values of a and c represent the solution to the system?a = c = 3. Waves in a lake are 6.0 m apart and pass a person on a raft every 2.0 s.What is the speed of the waves?