Write C++ program using pointers in which An amateur meteorologist wants to keep track of weather conditions during the past year’s three-month summer season and has designated each day as either rainy (‘R’), cloudy (‘C’), or sunny (‘S’). Write a program that stores this information in a 3 × 10 array of characters, where the row indicates the month (0 = June, 1 = July, 2 = August) and the column indicates the day of the month. Note that data are not being collected for the date greater than 10th f any month. The program should begin by reading the weather data from user. Then it should create a report that displays, for each month and for the whole three-month period, how many days were rainy, how many were cloudy, and how many were sunny. It should also report which of the three months had the largest number of rainy days.
Outline the main concepts of entropy and free energy. [10 marks]
2. Describe photorespiration and how its limitations are imposed on carbon assimilation by
the photosynthetic carbon oxidation cycle in C3 plants. [20 marks]
def mystery1(x):
return x + 2
def mystery2(a, b = 7):
return a + b
#MAIN
n = int(input("Enter a number:"))
ans = mystery1(n) * 2 + mystery2 (n * 3)
print(ans)What is output when the user enters -4?
Determine the precision of these two approximate values
a) 32000.Tons
b) 1.20×10(--5)ms
If 2.0 grams of carbon react completely with oxygen, how many grams of carbon dioxide can be produced?
A self-service photo centre allows you to make prints of pictures on an A4 size page. Two types of layouts
are available:
nnnnnlayout x: four pictures are fitted on one page, each has size 6 cm by 4 cm
nnnnnlayout y: two pictures are fitted on one page, each has size 15 cm by 9 cm
It costs R30 to print one page with layout x and it costs R40 to print one page with layout y.
You want at least 16 pictures of any size, and you are willing to spend up to R240. Write and graph a
system of inequalities that models the situation. Shade the solution space of the system of inequalities.
How many S.D are indicated by each of these approximate values?
a) 32000.tons
b) 1.20×10(--5)ms
Jemima has three boxes whose total weight is 51 1
5 kg. Box B weighs 5 1
2 kg more than box A and box C
weighs 3 1
5 kg more than box B. Choose the correct statement.
[1] Box A weighs 17 5
6 kg.
[2] Box C weighs 21 1
30 kg.
[3] Box A weighs 42 1
2 kg.
[4] Box B weighs 12 1
3 kg.
The equations of three quadratic functions are given below:
(i) y = 2x2 + 12x + 18
(ii) y = −3x2 − 5x + 3
(iii) y = x2 + 2x − 5
Determine the discriminant of each function and the number of x-intercepts that the parabola has. Choose
the correct sentence. The function described in
[1] (i) has no discriminant and the parabola has no x-intercepts
[2] (ii) has a negative discriminant and the parabola has two x-intercepts
[3] (i) has a zero discriminant and the parabola has one x-intercept
[4] (iii) has a positive discriminant and the parabola has one x-intercept
A coffee shop owner blends a gourmet brand of coffee with a cheaper brand. The gourmet coffee usually
sells for R420,00 per kilogram. The cheaper brand sells for R180,00 per kilogram. How much of each type
should be mixed in order to have 30 kilograms of coffee that is worth R240,00 per kilogram?
Choose the correct sentence:
[1] Three quarters of the mass should be from the cheaper brand.
[2] He should order 7,50 kg of the cheaper brand.
[3] A third of the mass should be from the gourmet brand.
[4] He should order 6,14 kg of the gourmet brand.