cameroon gce advanced level June 2023 computer science 3

cameroon gce advanced level June 2023 computer science 3

cameroon gce advanced level June 2023 computer science 3

SECTION A: A Plotting Program (Program Development) (30 Marks)

Describing the Task.
Many interesting programming problems involving nested loops can be encountered when creating plots using a printer.
Your task is to create the plot in Figure 1 (pyramid) in a general manner with the size of the base entered at the
beginning of program’ execution.[Arrays are not used to do this. (The grid lines are just to ease working with the figure;
the lines are not directly needed to answer any question.) A pyramid has a number of stars at its base (MaxNoOfStars),
and is made up of rows of spaces and stars. Each line of the pyramid is made up of an odd number of leading spaces
(NoOfSpaces) followed by a number of stars (NoOfStars). There are blanks after4’the stars, but they are not important for
this exercise

PDF is loading please wait...


Leave a comment

Your email address will not be published. Required fields are marked *

Download our application
kawlo
sponsors Ads