subject
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​

ansver
Answers: 2

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 18:10, Candi9697
A-mn has a cubic structure with a0 0.8931 nm and a density of 7.47 g/cm3. b-mn has a different cubic structure, with a0 0.6326 nm and a density of 7.26 g/cm3. the atomic weight of manganese is 54.938 g/mol and the atomic radius is 0.112 nm. determine the percent volume change that would occur if a-mn transforms to b-mn.
Answers: 2
image
Engineering, 04.07.2019 18:20, 21megoplin
How much power could a wind turbine produce if it had the following specifications? cp = 0.45 -d=1.2kg/m3 d=50m v 5m/s
Answers: 2
image
Engineering, 04.07.2019 19:20, lordcaos066
Determine the time of the day and month of the year at which the peak sensible cooling load occurs for a top floor, north-eastern corner room of an office building in durban for the following conditions: floor area: 8 x 8 x 3 m east and north walls: 115 mm face brick (outside), 20 mm air space, 115 mm ordinary brick (inside) with 15 mm plaster roof construction: suspended plasterboard ceiling, 450 mm air space, 150 mm concrete, 75mm screed, waterproofing no heat transfer across other surfaces window area 3x 1,5 m high in north wall only. ordinary glass with venetian blinds. lights and occupants : from 07: 00 to 18: 00 average light density: 25 w/m2 number of occupants : 5 seated, light office work room temperature 24°c
Answers: 3
image
Engineering, 06.07.2019 03:30, sipstick971
An ammonia compressor has a 5% clearance volume and displacement rate of 80 l/s and pumps against a condensing temperature of 40°c. for two different temperatures of -10°c and 10°c, compute the mass flow rate of refrigerant assuming the clearance volumetric efficiency applies. discharge specific volume corresponding to-10°c and 10°c are 112.5 l/kg and 95 l/kg, respectively.
Answers: 2
You know the right answer?
For each of the problems write a CH code to perform the required task. Your program should be base...

Questions in other subjects:

Konu
English, 14.12.2020 22:30
Konu
Mathematics, 14.12.2020 22:40