Given a Program Design Language (PDL) to print a star: START int star, i, j; char repeat; DO INPUT “star”; FOR (i=1;i<=s

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Given a Program Design Language (PDL) to print a star: START int star, i, j; char repeat; DO INPUT “star”; FOR (i=1;i<=s

Post by answerhappygod »

Given a Program Design Language (PDL) to print a star:
START
int star, i,
j;
char repeat;
DO
INPUT “star”;
FOR (i=1;i<=star;i++)
FOR (j=1;j<=star-i;j++)
PRINT
" * ";
ENDFOR
ENDFOR
CETAK “Press Y/y to repeat";
INPUT repeat;
WHILE (repeat=='Y' OR repeat =='y');
END
Please create the flowgraph and find the cyclometic
complexity
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply