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

Golden lion tamarin population graph - Building the Profession of Nursing - Paper review - The grasshopper and the bell cricket analyzing the text - Lve mcpa 570 nufarm - When milk is mixed with gasoline which substance will float - Fundamentals of Nursing - AB=+1 - City of greater geelong council meetings - Similarity transformation state space - Personal philosophy of nursing practice - Human resource (tutorjass) - Explore data, Python - Assignment 5 - Soap case notes social work - Piano songs with numbers - Cole hersee 24059 wiring diagram - Python coding help - Theories of personality schultz 11th edition apa citation - How to crash in ms project - Evangelism explosion two questions - Project - Average daily census formula example - Babylonian numbers 1 1000 - En espanol level 1a textbook answers - Biome activity high school - Straight line method bond amortization calculator - Organic chemistry 9th edition mcmurry test bank - Business statistics chapter 3 answers - Archangel global security llc washington dc - Avon company case study - Styrofoam cup calorimeter lab report - Peter dicken global shift 7th edition free pdf - Case problem 1 pelican stores managerial report - Input bias current and input offset current - Information Technology Project Management - Cert 4 in Training and Assessment - The very secret diary of aragorn - Clearly visual basic 2012 review question answers - Mnemonic generator using letters - Foursquare swot analysis - Volclay waterstop rx 102 - Essay #1 - The Printing Press as an Agent of Change ( class of media history) - In active and passive euthanasia rachels claims that - Wicked the untold story of the witches of oz book - 89 aulberry parade leeming - 300 words response paper on Indian society and Bollywood film Dil Chahta Hai due in 10 hrs - Some researchers believe that business firms moving towards ecological sustainability results in: - A report to an academy themes - One access one420 manual - Anima Behavior - Journals on plastic tiles - 3.2 m in cm - Cre form 3 questions and answers - Promethean asb 40 remote - Lab report density and buoyancy answers - Plate heat exchanger slideshare - Install webex extension for chrome - How to interpret binary logistic regression in spss - Journal Article Summaries/Evaluations - Health and human development revision notes - Working at university health network - Dhanmondi 27 haunted house - Wakefield coroner's court parking - Hot bed in horticulture - Fire lieutenant interview questions and answers - Religious study, reflection paper3 - Ashford university english proficiency exam answers - 6 ferndale road glen iris rmh - 2 paragraphs 10/24/2020 - Hepa filter leak repair - Gauze mat used in laboratory - Why did jane elliot do her experiment - Aqa biology grade boundaries - Job safety analysis ppt - Nurs 6640 Psychotherapy with individuals - Week 4 - Chromium iii nitrate iron ii sulfate - Wrexham council bin not emptied - Case Study - Cell homeostasis virtual lab worksheet answers - Ann taylor survival in specialty retail - 9 hewin close liberty grove - PHd Isaac Newton - Essay - There are five sales associates at mid motors ford - Advanced Industrial Hygiene - Northeast health wangaratta abn - Characteristics of scholarly articles - Essay on an printing in a arts museum - Structure of an exposition - HR Discussion post - Seating plan in excel - Reserve based lending primer - 4 3 submission summarizing me talk pretty one day - Decision by blades inc to invest in thailand - North pole of inaccessibility - Where has muthoni gone - Patient Malnutrition - How many pentecostals in australian government