Question
Geo is the name of an AI whose job is to draw a rectangle with any dimensions the user wants using any character the
Geo is the name of an AI whose job is to draw a rectangle with any dimensions the user wants using any character the user wants. Write a function void geo(int height, int width, char draw) to do Geo's job. The function should take the height, width, and a character, and draw a rectangle of the required dimensions using the character. In the main, ask the user to input height, width, and character, then call the function to draw it. Sample output: Microsoft Visual Studio Debug Console Hi I'm Geo and I'm here to make your rectangle dreams come true! Enter height: 8 Enter widith: 12 Enter character: s ssssssssssss S S S S S S S S S S S S SSSSSSS
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get StartedRecommended Textbook for
C++ Primer Plus
Authors: Stephen Prata
6th Edition
978-0321776402, 0321776402
Students also viewed these Programming questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App