Calculate and display the sum of all the numbers divisible by 7 between 18 and 534 using loops and conditional statements i.e. 21+28+35+...+525+532.
Q5: Create a list containing the following 3 elements:
your favorite color
the number of pets you have
a boolean value describing whether you have previous programming experience
Q6: Complete the following print and if statements by accessing the appropriate elements from my_list.
Hint: Use the list indexing notation [].
print('My favorite color is', ???) print('I have {} pet(s).'.format(???)) if ???:
print("I have previous programming experience") else:
print("I do not have previous programming experience")
Q7: Add your favorite single digit number to the end of the list using the appropriate list method.
Q8: Remove the first element of the list, using the appropriate list method.
Q9: Complete the print statement below to display the number of elements in my_list. print("The list has {} elements.".format(???))
five 10- resistor are connected in parallel and the combination is connected to 10-V emf device. what is the current device
What is the concentration of 22.50 mL of NaOH if this was neutralized with 20.00 mL of 0.120 M HCI in the following reaction? NaOH +HCI. NaCI+H2O
Q11: A travel company wants to fly a plane to the Bahamas. Flying the plane costs 5000 dollars. So far, 29 people have signed up for the trip. If the company charges 200 dollars per ticket, what is the profit made by the company?
Fill in values or arithmetic expressions for the variables below.
cost_of_flying_plane = ??? number_of_passengers = ??? price_of_ticket = ???
profit = ???
print('The company makes of a profit of {} dollars'.format(profit))
Q11b Out of the 29 people who took the flight, only 12 buy tickets to return
from the Bahamas on the same plane. If the flying the plane back also costs 5000 dollars, and does the company make an overall profit or loss? The company charges the same fee of 200 dollars per ticket for the return flight. (Optional)
Use an if statement to display the result.
Write a C++ program to find sum of all even numbers between 1 to n. – using for loop
Write a C++ program to print all even numbers between 1 to 100. - using while loop
Irene wants to prepare a solution in the laboratory. How many mL of concentrated liquid solute should she mix with water to make a volume of 135 mL of 1.7 M liquid substance from 13.0 M concentration?
Kai wants to make a cleaning solution of water and chlorine to disinfect their home. He diluted 45 grams of solid chlorine to 150 grams of water. What is the percent by mass of the cleaning solution?
How many mL of Soju should be mixed with 330 mL of beer to yield a percentage volume 7.04 %?