Loading...

Messages

Proposals

Stuck in your homework and missing deadline? Get urgent help in $10/Page with 24 hours deadline

Get Urgent Writing Help In Your Essays, Assignments, Homeworks, Dissertation, Thesis Or Coursework & Achieve A+ Grades.

Privacy Guaranteed - 100% Plagiarism Free Writing - Free Turnitin Report - Professional And Experienced Writers - 24/7 Online Support

C++ I programming

10/10/2020 Client: murali Deadline: 7 Days

 


Overview


For this assignment you will be building two main components. A menu system and several drawing routines.


The menu system will operate on a whitelist principle and prompt the user for the type of drawing they want and its size. A whitelist is a list of accepted inputs with anything not on the list rejected.


The drawings will all be ASCII shapes of user specified size.


Menu System


The menu should prompt the user for a command and if it is not a valid command, respond it is invalid and prompt again. The commands it needs to respond include:



  • help - This will print a list of all accepted inputs and re-prompt the user.

  • quit - This will terminate the program.

  • square - This will initiate the square drawing.

  • box - This will initiate a box drawing.

  • diagonaldown - This will initiate a diagonal down line.

  • diagonalup - This will initiate a diagonal up line.

  • checkerboard - This will initiate a checkerboard pattern.


The matching for the commands should be case insensitive. That is "Help", "help", and "hElP" will all trigger the help command.


Drawings


There are several drawings that your program needs to support


Square


When a square is drawn it will first prompt the user for a size. Valid sizes are 1 through 15 inclusive. An example square of size 5 is


*****

*****

*****

*****

*****

Box


When a box is drawn it will first prompt the user for a size. Valid sizes are 3 through 15 inclusive. An example box of size 5 is


*****

*   *

*   *

*   *

*****

Diagonal Down


When a diagonal down line is drawn, it will first prompt the user for a size. Valid sizes are 3 through 15 inclusive. An example line of size 5 is


*    

*   

 *  

  *

   *

Diagonal Up


When a diagonal up line is drawn, it will first prompt the user for a size. Valid sizes are 3 through 15 inclusive. An example line of size 5 is


    *

  *

 *  

*   

*    

Checkerboard


When a checkerboard drawn, it will first prompt the user for a size. Valid sizes are 5 through 15 inclusive. An example line of size 10 is


* * * * * 

* * * * *

* * * * *

* * * * *

* * * * *

* * * * *

* * * * *

* * * * *

* * * * *

* * * * *

Tips



  • Write your program iteratively. You shouldn't ever write more than a few lines of code without compiling and testing it.

  • Start with small pieces. It isn't reasonable to sit down and write the whole program from beginning to end. The pieces you build should ultimately fit together to build the whole program.

  • It is easiest to draw the various shapes using nested for loops.

  • One way to build the program is as follows:

    1. Write a function that accepts user input and validates it against the list of command. Start with it being case sensitive and then add case insensitivity.

    2. Write the functionality to print out a help message, quit, and re-prompting the user on invalid input.

    3. Start with one of the drawings, say a square. Create a function to draw a square. Initially make it draw a fixed size, then allow for it to draw an arbitrary size.

    4. Write a function to prompt the user for a size within a specified range. This function should validate the input is in the specified range and re-prompt if it is outside. Make sure to write this function so that it can be used for multiple drawings which may have different size constraints.

    5. Integrate your size prompt function to fully draw your first chosen shape.

    6. At this point your program should have close to full functionality, with the only thing missing being other shapes.

    7. Add the remaining shapes to the program using the infrastructure you have already built.




Example Output


User input is in bold


Please enter a command: bad

Invalid command

Please enter a command: hElP

Acceptable commands: help, quit, square, box, diagonaldown, diaonalup, checkerboard

Please enter a command: square

Please enter a size between 1 and 15: -1

The value -1 is not in a valid range.

Please enter a size between 1 and 15: 16

The value 16 is not in a valid range.

Please enter a size between 1 and 15: 5



*****

*****

*****

*****

*****



Please enter a command: box

Please enter a size between 3 and 15: 2

The value 2 is not in a valid range.

Please enter a size between 3 and 15: 5



*****

*   *

*   *

*   *

*****



Please enter a command: diagonaldown

Please enter a size between 3 and 15: 7



*      

*     

 *    

  *   

   *  

    *

     *



Please enter a command: diagonalup

Please enter a size between 3 and 15: 7



     *

    *

   *  

  *   

 *    

*     

*      



Please enter a command: checkerboard

Please enter a size between 5 and 15: 13



* * * * * * *

* * * * * *

* * * * * * *

* * * * * *

* * * * * * *

* * * * * *

* * * * * * *

* * * * * *

* * * * * * *

* * * * * *

* * * * * * *

* * * * * *

* * * * * * *



Please enter a command: quit

PreviousNext

 

Homework is Completed By:

Writer Writer Name Amount Client Comments & Rating
Instant Homework Helper

ONLINE

Instant Homework Helper

$36

She helped me in last minute in a very reasonable price. She is a lifesaver, I got A+ grade in my homework, I will surely hire her again for my next assignments, Thumbs Up!

Order & Get This Solution Within 3 Hours in $25/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 3 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 6 Hours in $20/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 6 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 12 Hours in $15/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 12 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

6 writers have sent their proposals to do this homework:

Isabella K.
Innovative Writer
Financial Hub
Solution Provider
Helping Hand
Essay & Assignment Help
Writer Writer Name Offer Chat
Isabella K.

ONLINE

Isabella K.

Hi there! I saw you have posted a project, which is according to my skills. I am a native level English speaking writer. I came across your post and found that my expertise is the best fit for this job. I have solid experience writing high quality, engaging, and SEO optimized content for business sites. I know Chinese but I am fluent in writing in Chinese. So, I would like to work with you to provide the highest quality of work. So, please send me a message so that we can discuss it more.

$55 Chat With Writer
Innovative Writer

ONLINE

Innovative Writer

I have read and understood all your initial requirements, and I am very professional in this task, I would be the best choice for this project, I am a PhD writer with 6-7 years of experience and can deliver quality notes to tight deadlines. I can generally compile up to 10 pages of lecture notes per day. I am known as Unrivaled Quality, Written to Standard, providing Plagiarism-free woork, and Always on Time

$70 Chat With Writer
Financial Hub

ONLINE

Financial Hub

Hey, I have gone through your job posting and become very much interested in working with you.I can deliver professional content as per your requirements. I am a multi-skilled person with sound proficiency in the English language for being a native writer who worked on several similar projects of content writing and can deliver quality content to tight deadlines. I am available for both online and offline writing jobs with the promise of offering an incredibly responsive and supreme level of customer service. Thanks!

$70 Chat With Writer
Solution Provider

ONLINE

Solution Provider

Hi.I have read your descriptions and i will provide you quality work.I am a Ph.D. writer with 5-6 years of experience. I have worked on several similar projects and can deliver quality works in a tight deadline. I am interested to hear more about the project and about the subject. If you award me the project I would be very glad to discuss this further and get started for you as soon as possible. Thanks You!

$70 Chat With Writer
Helping Hand

ONLINE

Helping Hand

Hello, I an ranked top 10 freelancers in academic and contents writing. I can write and updated your personal statement with great quality and free of plagiarism as I am a master writer with 5 years experience in similar ps and research writing projects. Kindly send me more information about your project. You can award me any time as I am ready to start your project curiously. Waiting for your positive response. Thank you!

$70 Chat With Writer
Essay & Assignment Help

ONLINE

Essay & Assignment Help

I have a Master’s degree and experience of more than 5 years in this industry, I have worked on several similar projects of Research writing, Academic writing & Business writing and can deliver A+ quality writing even to Short Deadlines. I have successfully completed more than 2100+ projects on different websites for respective clients. I can generally write 10-15 pages daily. I am interested to hear more about the project and about the subject matter of the writing. I will deliver Premium quality work without Plagiarism at less price and time. Get quality work by awarding this project to me, I look forward to getting started for you as soon as possible. Thanks!

$70 Chat With Writer

Let our expert academic writers to help you in achieving a+ grades in your homework, assignment, quiz or exam.

Similar Homework Questions

Learning stories eyfs examples - Position Paper - A rose for emily shmoop - Sales mix in units formula - I need 2 discussion questions answers 200 word min with references. - Red energy service to property charge - 6 cardinal fields of gaze - Nursing. - Sustainability Initiative, Part 4 - Lightforce 240 blitz specs - Racv home assist phone number - Hansteen saltley unit trust - Beef cattle breeds ppt - Business - Block ciphers more closely emulate one-time pads. - Galls street thunder siren - Cybersecurity - Terasaki tembreak 2 accessories - The csirt is also known as the ir reaction team - Lsbu mental health nursing - OB2 - Psychology questions - Boiling water experiment report - Climate change essay - Laboratory report gram staining exercise 7 - Quantitative determination of an empirical formula lab answers - Technology - Form 681 australia 2021 - Nursing care plan for diabetic foot patient - Sarda farms dahi price - ISSC341 - Aqa french vocab list gcse 2016 - Team project - Discussion Questions - Employee retention strategy of mcdonald - Nba salary cap faq - Raider 646 edit course code - Philippine nursing law jurisprudence and ethics - Fulmer spices an overall assessment tool for older adults - Forensic audit case study - Kite runner Essay - The animals in that country analysis - Helping skills facilitating exploration insight and action 4th edition - 15 5 mastery problem accounting answers - Matthew keong brisbane magistrates court - Assignment: Evidence-Based Project, Part 3: Advanced Levels of Clinical Inquiry and Systematic Reviews - Think like a nurse keith rn - Carol kuhlthau information search process - Physical security plan - Cranford by elizabeth gaskell sparknotes - Fin 100 assignment 1 - Betasustainability etf units - Tasmanian sandstone quarries pty ltd - Jonbenet ramsey killer found 2018 - Semester 2 dates uts - How is visual literacy a universal language - Who founded mary aikenhead ministries - 5.5 Strategic Thinking Project - Bus/475 - Their eyes were watching god chapter 6 - Guyan machinery a west virginia manufacturing corporation - Telsim online transactions - Chemical kinetics of the iodine clock reaction lab report - Transformer coupled amplifier circuit diagram - Literature Review - Sabre simulation tips - Friction on the inclined plane lab report - Origin price fact sheet - Jaandar meaning in english - How to protect your company from being salted by union - Determining the band gap of germanium - Arden company reported the following costs and expenses - Statistics chapter 1 homework answers - Veriti thermal cycler ramp rate - Nursing Soap note - Hey google can you help me with my homework - 5012_ASS 3 # DRAFT 1 # Digital Marketing Plan # MBA # FLEXPAH CAPELLA - Week 6 Business discussion board - Kfc in china case study pdf - Boiling point of na2o2 - How to determine which quadrant an angle lies in radians - 3 page essay due in 24 hours - Is painting a chemical change - Who is jennie in the yellow wallpaper - Gary lawrie driving instructor - Koi milk tea menu singapore - COMM THEORY - GENDER DIFFERENCES/LISTENING SKILLS - Conservation of angular momentum lab - Gm in china case study solution - Episodic soap note sample - University of iowa studies leadership styles - How to calculate percent error - Disney in france case study answer - Pediatric well child soap note example - Practical strategies for technical communication 3rd edition pdf - Postpartum maternal depression - Module 22 understanding consciousness and hypnosis worksheet answers - Backpack simulation strategy - Diversity audit powerpoint - Motivation, Emotion, Attitudes, and Product Repositioning" week5