Input two integers in one single line. The first inputted integer must be within 0-9 only.
Using loops, identify if the first inputted integer (0-9) is present in the second inputted integer. If it is found, print "Yes"; otherwise, print "No". Tip: If the number is already found even without reaching the end of the loop, use the break keyword to exit the loop early for a more efficient code.
Write a program that does the following for 15
students:
Reads in 3 marks for each student (you
need to ensure that only valid marks
between 0 and 100 are processed) – your
prompt message to the user should
indicate which number is being requested
(see example image of output)
Calculates and displays the highest mark
for each student.
Finds and displays the highest mark in the class.
(Note: The example output only shows data for 5
students, but your program must work for 15
students).
Write a program which requests a number between
1 and 50 from the user. It must repeatedly ask the
user for a number until a valid number is entered.
After receiving a valid number, the program must
display all the even numbers smaller than that number. (If the user enters 11, the numbers 2, 4, 6,
8, 10 must be displayed).
Write a program, using nested loops, to display the following:
7 6 5 4 3 2 1
7 6 5 4 3 2
7 6 5 4 3
7 6 5 4
7 6 5
7 6
7
Write a program, using nested loops, to display the following:
1
12
123
1234
12345
A retailer receives a shipment of 10,000 kilograms of rice that will be used up over a 5-month period at the constant rate of 2,000 kilograms per month. If storage costs are 1 cent per kilogram per month, how much will the retailer pay in storage costs over the next 5 months?
It is estimated that x months from now the population of a certain town will be increasing at the rate of 2 + 6√𝑥 people per month. The current population is 5,000. What will be the population 9 months from now?
A manufacturer has found that marginal costs are 3𝑞 2 − 60𝑞 + 400 dollars per unit when q units have been produced. The total costs of producing the first 2 units are $ 900. What is the total cost of producing the first 5 units?
a ladder 20 feet long leans against a vertical building is the tower of the ladder slides down at a rate of p3 fits how fast is the bottom of the ladder sliding away from the building in the top of the ladder is 10 feet above the ground