Question 3 (40%) Write your code in Q3() that displays a pattern as shown below, according to the input size, which dete

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

Question 3 (40%) Write your code in Q3() that displays a pattern as shown below, according to the input size, which dete

Post by answerhappygod »

Question 3 40 Write Your Code In Q3 That Displays A Pattern As Shown Below According To The Input Size Which Dete 1
Question 3 40 Write Your Code In Q3 That Displays A Pattern As Shown Below According To The Input Size Which Dete 1 (111.71 KiB) Viewed 62 times
Please help me do this question, and please make sure that thereis not any error (runtime, logic and syntax errors are notallowed!). Please test all the cases and make sure that youfollowed question's instructions to finish this q. And please don'treply me with irrelevant information. Thanks! (Only the even caseis needed, no need to do odd case!)
Question 3 (40%) Write your code in Q3() that displays a pattern as shown below, according to the input size, which determines the number of rows in the pattern. You can assume the user always enters a positive integer. Odd Version (odd 8th digit in student ID) Sample display Input: More examples Input Input: 1 Input: 2 Input: 3 Input: 4 Input: 5 Even Version (even 8th digit in student ID) Sample display Input: Output (Odd Version) Output (Even Version) Note: There should be no blank line in the output. You should use repetition structure, with appropriate nested-loop, and NOT <iomanip> library functions in this question.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply