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

I need 900 words 4 answering the questions on organization and/or profession adopts - Econ discussion 2 pages - Jenny eather writing posters - Scatter diagrams can be useful in spotting trends or cycles in data over time. - What three elements are present in glucose fructose and galactose - Intermediate algebra with applications and visualization 3rd edition pdf - ACC 499 Week 10 Discussion "Case C18-5: Deferred Tax Assets and Liabilities" - Week 5 Assignment: Journal - Carnatic and hindustani difference - Ikea usa case study - Pension data for barry financial services inc - Percy jackson the lightning thief chapter 1 - Managed Care - Examples of leadership in remember the titans - Survey Proposal - Aacn essentials of baccalaureate education - Outback jumper crossword clue - Article review - What is an aggregate in sociology - Choose the answer that best describes hco3- - As 4120 code of tendering pdf - Introduction to organic chemistry lecture notes ppt - Leave of absence form curtin - What is an expressed argument - Marketing Strategies - Milestone PAPER 3 - APPLE - Bsbcmm401 make a presentation assessment answers - My learning link schneider electric - Dinitrogen pentoxide water hydrogen nitrate - Lobiondo wood & haber 2018 - Sociology final exam questions and answers pdf - Critique Paper - Which of the following statements is true about scarcity - Processing Porous and Non-Porous Surfaces - Infographic Resume - Can someone do my Week 5 Discussions 1 & 2, comments, quiz, assignment and study plan in Principles in Managerial Accounting? - Nottingham uni term dates - Which of the following can lead to partial dependencies - Polit and beck 2017 pdf - Parts of a sewing machine worksheet - Mba in project management syllabus pdf - Telephone country code 212 - Hedonic experiential model examples - The signal by vsevolod garshin - Brief summary - Patient Scenario Short Paper - Ir reflow temperature profile - What do bynoe geckos eat - WEEK 8 DISCUSSION BOARD RESPOND TO BOTH - Strata by-laws wa pdf - Hr case study scenarios - Journal 3 - Data Analasys - Group incentive plans advantages and disadvantages - Case Study 2: The Job That Was Too Good to Be True - Week 3 discussion - Innovation Opportunities at Flowspace Company - Paper - Java program to print odd numbers from 1 to n - What factors affect the quality of an lcd monitor - Case - Ipod duplicate filename was specified - International trade case studies with questions - Assume that adults have iq scores - You are selling your 1996 mustang - Order 2477608: Course Reflection - Carina bus depot lost property - Looking at philosophy donald palmer free download - Healthcare - Exercise 8 - Andrew danks neurosurgeon frankston - ***Nursing 494/ YOU must read and message me how you will deliver an A - Business Communication - Swot analysis ez pleeze - Project: One important Information technologies trend impacting you at your workspace. - Selkirk townhomes kicking horse - Crowding out occurs when investment declines because - Drop in the ocean lyrics - Data table cheat sheet - Fact finding techniques in database - Camshaft position sensor a circuit bank 2 - Samsung porters 5 forces analysis - Applying psychology to everyday life essay - Computer gateway device crossword clue - Exploring dot plots and landmarks answers - Value proposition in the hotel industry - Pros and cons of vroom - Hba training and assessment - Summarizethree most important items that you learned from dealing with harsh employeeworking in positive environment, and negative one to improve it as wellExplain why and how you will apply what you have learned into your work as a manager. - Different kinds of stages in drama - Is fear an adjective - Analysis of shakespeare sonnet 18 - Four core project quality concepts - In the accompanying figure the split double arrow mouse pointer - Convert 0.625 into a fraction - Why was oglethorpe's prohibition of slavery reversed - Bottle green squeezy squash - Examples of scientific management in healthcare - How is rebt different from cbt - What is an appositive - Bangladesh police aig list