Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

/* * File: main.cpp * Author: YOUR NAME HERE * Created on January DATE AND TIME HERE * Purpose: Cross one-side or the other */

image text in transcribed

/* * 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 using namespace std;

//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 cout

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Issues In Database Management A Refernce For The Thinking Practitioner

Authors: Fabian Pascal

1st Edition

0201485559, 978-0201485554

More Books

Students also viewed these Databases questions

Question

3. The group answers the questions.

Answered: 1 week ago

Question

1. How will you, as city manager, handle these requests?

Answered: 1 week ago