Question
/* * File: main.cpp * Author: YOUR NAME HERE * Created on January DATE AND TIME HERE * Purpose: Cross one-side or the other */
/* * File: main.cpp * Author: YOUR NAME HERE * Created on January DATE AND TIME HERE * Purpose: Cross one-side or the other */
//System Libraries Here #include
//User Libraries Here
//Global Constants Only, No Global Variables //Like PI, e, Gravity, or conversions
//Function Prototypes Here
//Program Execution Begins Here int main(int argc, char** argv) { //Declare all Variables Here unsigned short x; char shape; //f-> forward b->backward x->cross //Input or initialize values Here cout>x>>shape; //Draw the shape
//Exit return 0; }
PLEASE CODE IT IN C++ LANGUAGE
Input a number [1-501 representing the size of the shape and then a character [x,b, f] which represents the shape i.e. x-cross, b-backward slash, or f-forward slash. Here are 4 examples which give the 2 inputs with the shape of the result directly below Note: Even number outputs are different from odd Prompt the user with the following coutStep 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 Started