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

Provided under license from Skillworks Australia Pty Ltd. All rights reserved. This document and its contents are protected by Australian - Owl ice cream gruffalo - 2 essays - Project closure report template - Bob dylan 115th dream lyrics - Scholarly argument - Farewell to manzanar full pdf - Stick of truth canada monks - Ge rr7 relay replacement - Correction System W1 - Rhs steel span tables australia - Bunsen burner temperature range - Cambridge house grammar school uniform - Webcam input or output - The four pillars of design user interface - How to calculate rate of transpiration - Benner's novice to expert examples - Cephaelis ipecacuanha common name - International human resource management book pdf - Discussion case 5 - Pledge of allegiance words under god - Specialised wholesale plastics lambton - Tsotsi chapter 5 summary - Kimpel products makes pizza ovens for commercial use - Psyc 305 unit 2 ip - Bsbfim601 manage finances answers - Home health nurse differ from traditional nursing care in hospital setting - Managerial Finance - Performance management system essay - Cheez 80s double exposure portrait app - The way movie reflection questions - Oedipus rex chorus quotes - Canton and hall daytripper watch review - Arcair k3000 parts breakdown - Lisrel 8.5 free download - Difference between qualitative and quantitative research sampling strategies - Https owl english purdue edu owl resource 614 03 - Veyance belting pty ltd - Australian stained glass supplies catalogue - Compute stanley black & decker's gross profit margin - What is the probability of rolling 7 with two dice - Apps deadiversion usdoj gov webforms - Pure risk vs speculative risk - Murach's asp net core mvc - LOST LOVE SPELLS TO RESTORE BROKEN RELATIONSHIP TODAY - Citizens advice cablink login - Vce japanese listening practice - Workday strayer - 21 39 melbourne street north adelaide south australia - How does a photogate work - Royal roads university admissions - Discussion: The Inclusion of Nurses in the Systems Development Life Cycle,NURS 5051/NURS 6051: Transforming Nursing and Healthcare Through Technology - Reena mistry nail creations - Namo tassa bhagavato arahato samma sambuddhassa mp3 song - Indirect object pronouns french - Mrs frisby and the rats of nimh questions and answers - Rothman's three models of community organizing - Psyk - How to write an oral presentation vce - Malware Protection Procedure Guide - Chapter 12 differential analysis the key to decision making - Anticipated demand business plan - Obscure feedback of authentication information - Apostrophe figurative language examples - The “organizing framework” for understanding and applying ob is based on the systems approach. - Determine the expected count for each outcome statcrunch - Do a bit of research on-line. Find a criminal case that involved Digital Forensics. - Xcally motion bar - Bainbridge ethics paper - Unisa graduation live stream - Character Evolution Instructions - Leadership theory application & skill development 6th edition pdf - DUALISM VS PHYSICALISM - Research Digest - Is tuna renewable or nonrenewable - John connelly crown cork and seal - Oxalic acid suppliers australia - Miles into kilometers formula - Cost volume profit analysis questions and answers doc - Super channel bender for sale - The Application of Data to Problem-Solving - How should telco approach segmenting its customers - 1952 vincent black lightning tuning - Strategic factor analysis summary sfas - Make allusions crossword clue - How to make fluted filter paper - What is wrong with marisol's mother's face - Hunger games the game how to dodge knife - Relationship between pressure and volume - Social validity is an indicator that demonstrates the quality of single subject research. - Bsbpmg522a undertake project work assessment task 1 - Death of a salesman questions and answers - Milieu therapy is based primarily on the principles of ______ psychology. - Balanced scorecard in healthcare organizations ppt - Prince2 risk register template - ARTICLE REVIEW DUE IN 3 HOURS!!! - Paladin boot disk - A highly available and scalable web service - When was pompeii and herculaneum discovered - Girl interrupted lisa monologue