Engineering, 05.05.2021 21:00 TamB01
For each of the problems write a CH code to perform the required task. Your program should be
based on the flow chart you drawn in the first worksheet.
1) Receive a number and determine whether it is odd or even
2) Obtain two numbers from the keyboard, and determine and display which (if either) is the
larger of the two numbers,
3) Receive 3 numbers and display them in ascending order from smallest to largest
4) Add the numbers from 1 to 100 and display the sum
5) Add the even numbers between 0 and any positive integer number given by the user
6) Find the average of two numbers given by the user.
I
7) Find the average, maximum, minimum, and sum of three numbers given by the user.
8) Find the area of a circle where the radius is provided by the user.
9) Swap the contents of two variables using a third variable.
10) Swap the content of two variables without using a third variable.
11) Read an integer value from the keyboard and display a message indicating if this
number is odd or even.
12) read 10 integers from the keyboard in the range 0 - 100, and count how many of them are
larger than 50, and display this result​
Answers: 2
Engineering, 04.07.2019 18:10
Which of the following controllers anticipates the future from the slope of errors over time? a)-proportional b)-on/off c)-integral d)-derivative.
Answers: 2
Engineering, 04.07.2019 18:20
Asolid cylinder is concentric with a straight pipe. the cylinder is 0.5 m long and has an outside diameter of 8 cm. the pipe has an inside diameter of 8.5 cm. the annulus between the cylinder ad the pipe contains stationary oil. the oil has a specific gravity of 0.92 and a kinematic viscosity of 5.57 x 10-4 m2/s. most nearly, what is the force needed to move the cylinder along the pipe at a constant velocity of 1 m/s?
Answers: 3
Engineering, 04.07.2019 18:20
Asimple rankine cycle uses water as the working fluid. the water enters the turbine at 10 mpa and 480c while the condenser operates at 6 kpa. if the turbine has an isentropic efficiency of 80 percent while the pump has an isentropic efficiency of 70 percent determine the thermal efficiency
Answers: 1
Engineering, 04.07.2019 18:20
An open feedwater heater operates at steady state with liquid entering at inlet 1 with t? = 40°c and pl = 1 .2 mpa. water vapor att2-200°c and p2 = 1.2 mpa enters at inlet 2. saturated liquid water exits with a pressure of pa 1.2 mpa. neglect heat transfer with the surroundings and all kinetic and potential energy effects, determine the mass flow rate of steam at inlet 2 if the mass flow rate of liquid water at inlet 1 is given as 2 kg/s.
Answers: 3
For each of the problems write a CH code to perform the required task. Your program should be
base...
Mathematics, 10.09.2020 19:01
Mathematics, 10.09.2020 19:01
Mathematics, 10.09.2020 19:01
English, 10.09.2020 19:01
Mathematics, 10.09.2020 19:01
Geography, 10.09.2020 19:01
Mathematics, 10.09.2020 19:01
Mathematics, 10.09.2020 19:01
Biology, 10.09.2020 19:01
Mathematics, 10.09.2020 19:01
Mathematics, 10.09.2020 19:01
Mathematics, 10.09.2020 19:01
Mathematics, 10.09.2020 19:01
Mathematics, 10.09.2020 19:01
History, 10.09.2020 19:01
Mathematics, 10.09.2020 19:01
Mathematics, 10.09.2020 19:01
Mathematics, 10.09.2020 19:01
Mathematics, 10.09.2020 19:01
Mathematics, 10.09.2020 19:01