Question: You are required to write a C + + program that draws a specific geometric shape in the console, based on the digits of yourstudent
You are required to write a C program that draws a specific geometric shape in the console, based on the digits of yourstudent ID number.Task DescriptionYour main task is to create a C application that: Read your student ID from the keyboard Determine the type and dimensions of the shape to draw based on the digits in your ID Output the shape directly to the console.Shape RulesBased on the last digit of your student ID your program should draw one of the following shapes: If the last digit is either or : Rectangle If the last digit is either or : Right triangle If the last digit is either or : Isosceles triangle If the last digit is either or : Inverted right triangle If the last digit is either or : DiamondThe dimensions of the shapes should be determined by specific digits in your ID: Rectangle: The height is the summation of the first digits of your ID and width is the summation of the last digitsof your ID respectively. Triangles and Diamon
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
