Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

I need help with this assignment. Could you help with all requirements.

I need help with this assignment. Could you help with all requirements.

Homework 3 – Loops and Decision/Selection statementsIn this assignment, you will Design, C-code and Write a test plan for a program that performs thefollowing task:Write your own unique program that does something in a loop that is flexible enough for anynumber of loops (i.euse a counter controlled loop and prompt for the number of loops or use asentinel controlled loop). You loop must do some calculation inside (DO NOT just sum the loopcounter). Your program must also include a Decision/Selection statement (i.e If structure). Andfinally display some kind of output.You may look at discussion 1 in Weeks 3,4,5 for some ideas. Some other suggestions: You mayuse the If structure to validate the user input. Or prompt the user if he is a Senior citizen andcalculate a discount if so.There are 3 components of your submission including:DESIGN– Design your program using one of following three design tools:oProgram Design (i.e. outline) –Make sure you include the start and end of theLoop and include any selection/decision conditions.oPseudo-code –Design your program using the pseudo-code commandsoFlowchart– Provide a flowchart for your design using the flowchart symbols thatwe learned in class. You can use Excel, Word, Powerpoint, Visio or any softwareyou have available that will allow to draw shapes and connectors.TEST PLAN– Prepare at least 3 sets of input data (Test data) along with their expectedoutput for testing your program. Make sure you test each part of your conditional test.Your test data can be presented in the form of a table as follows (note: feel free to adaptto your design. Note: A test set is one execution of the program – NOT one loop.C-code– submit your C-code as a separate file (.txt or .c)oInclude a screen shot of the execution of you program.oMake sure your C-code is documented with Header and in-line comments andproperly indented.The Design, Test Plan should be placed in a Word or PDF document for submission.Additional options:1.You may add additional prompts if you like. Maybe purchase two items or prompt for thetax rate.2.You may write out additional output such as the purchase amount, sales tax.3.You may add addition test conditions if you like.Submission requirements:See Submission requirements under Syllabus.
Background image of page 1
Grading guidelinesSubmissionpointsDesign.One of the three design methods to design your program.1Test Plan.Provides a new test table with at least 3 distinct test cases listing inputand expected output your program.1C-code.Create your own unique C code implementation of the assigned problemIncludes a screen capture of executing the new code and submits separate .txt or .ccode file.2Documentation: Code is documented (i.e header and in-line comments)is well-organized (i.e indented). Submitted files are to requirement specs.1
Background image of page 2
 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"