Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 . 1 There are 1 2 children in a class at a private college. An array called childrenAges is used to store the ages

1.1 There are 12 children in a class at a private college. An array called childrenAges is used to store the
ages of children in the class:
13,12,15,18,15,11,19,12,17,14,10,18
Create an algorithm to find and display the position (index) and value of the highest age in childrenAges
array.
(10 Marks)
1.2 Sandile is managing her monthly savings and wants to ensure she meets her financial goals. She lives
with her parents and as such, contributes a sum of R1200 monthly to her parents as a form of housing
support. Of the remainder, she plans her savings allocation as follows: 30% for general expenses, 20% into a
savings account, 15% into an emergency fund, 20% for investments, and the remaining percent is assigned
for a vacation fund due to her love for adventure at National parks. Enter her monthly salary on the keyboard
and then calculate and display how much money she has available for the various savings categories. Write
an algorithm in form of pseudocode to solve this scenario.
(10 Marks)
1.3 Evaluate the following expressions:
a. D <(E -7) OR G AND (A * C)>=(D E * C)
where A =3, C =7, D =-8, E =-6, G = TRUE
(5 Marks)
b. C *4>= B^318\5 AND F OR A <= D -5
where A =5, B =2, C =12, D =-4, E = FALSE and F = TRUE.
(5 Marks)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Are there any questions that you want to ask?

Answered: 1 week ago