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

Protestant reformation multiple choice questions - St dunstans holiday club - Org chat - Accounting activities in an organisation - General knowledge questions for idiots - Need tomorrow - Dbms_lob read example in oracle - High triglyceride diet mayo clinic - Analysis of musee des beaux arts - Dextrous deputy newt - List of muis approved halal certification bodies - Why is a screw an inclined plane - Oswego outbreak case study answers - Module 6 Reflection paper - What it means to say phoenix arizona summary - Ecology the lion king movie guide answers - Zinc and copper nitrate reaction - 0737179697 MAMA SHANANI ABORTION CLINIC IN LADYSMITH DUNDEE NQUTHU http://abortclinic.co.za - Operational Planning - Bacs payment services helpdesk - Bently nevada 3300 xl manual - Israel translators association rates - Harvey city comprehensive case - Biometrics week1 db - Basics of information technology - Experts attribute the growth of nongovernmental organizations to - Pmba campbellsville - Ethical Dilemmas - Combining like terms and distributive property worksheet - How many ml is a tablespoon of medicine - Nexiq device tester error 275 - How to use a shepherd's whistle - Puzzle 131 pandora's box - Question - Course name : Ethical/Legal Aspects of Management - 2 in 1 - A crm software database system provides sport marketers - Symbolism in reluctant fundamentalist - 1998 roman missal text - Acm code of ethics - The classification of living organisms - Linux implementation proposal - Discussion 1 - Grand strategy selection matrix - Dramatic hip hop instrumental rebel america inc - Calibration of energy meter - Greek vs roman theatre - Where to send iht205 - Brentwood baptist church nashville - Five characteristics of human service professionals - Specialization in computing ucla - Lit - Of hawaii birds evolution and poetry in science - Dulux new denim blue - National safety compliance quiz answers 14 027 - Domino's pizza in japan case study - Econometric. Stata. - Wife maintenance law in pakistan - Alfred nicholas gardens map - Best documentary about pompeii - University of edinburgh matriculation number - Quick start guide call of cthulhu - Violence - Slaughterhouse five quotes about death - Social Work Discussion Questions - Lab 8 ideal gas law answers - 7-1 Activity: Multimedia Presentation Planning Worksheet - Two plus two equals five 1984 quote - Cfi lesson plan template - How much is a nolan ryan rookie card worth - Like many renaissance composers josquin wrote two kinds of music - Digging seamus heaney analysis - It general controls review - The boy in the striped pajamas chapter 13 - Easter day 2016 calendar - Three Homework - Can you complete my discussion for me? - Use the sales forecaster's prediction to describe a normal probability distribution - Assignment method scheduling - Extra credit - Robbie maddison las vegas jump - Family to family leaving a lasting legacy - Phases of the helping process in social work pdf - Los baker van a peru sparknotes - South asia - Evaluate the elements of critical thinking (evidence, reasoning, fallacy) - 5x 2 2x 6 67 - Wiki wireshark sample captures - Chicago miniature lamp inc hackensack nj - Trifles by susan glaspell play pdf - Pre employment checks nsw health - Who artist self-identifies as a "near-documentary" photographer? - Hostname for kali linux - Effect of acid rain on seed germination lab report - Alliteration in the happiest refugee - Front end rounding decimals multiplication - Investment center managers are usually evaluated using performance measures - Question : Assignment - Balancing equations worksheet answers - Ifsm 300 stage 2 cic hiring process