Question: Your task is to write pseudocode for a function named CSS _ positions ( n 1 , n 2 , n 3 ) that takes

Your task is to write pseudocode for a function named CSS_positions(n1,n2,n3) that takes 3 parameters from the user:
n1: number of items in row 1
n2: number of items in row 2
n3: number of items in row 3
The function should calculate the coordinates for each of the rectangular elements. Your code should:
Check to make sure that the user hasn't asked for too many elements in a row. The function must output a unique error message if there are too many elements in a row.
Place 10 px of spacing in between rectangular elements and in between rows, but not add spacing at the beginning and end of the row.
Output the coordinates of the rectangular elements somewhere in the pseudocode.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!