IT 106 George Mason University Solution Algorithm Programming Project

1) Create a defining diagram that shows the input, processing, and outputInput
homeType
Process
Prompt for home types
Read home types
Calculate the total cost for all homes
Calculate the average cost per home
Print total cost
Print average
Output
total_cost
average
2) Create a solution algorithm using pseudocode
BEGIN
SET types = {“Cottage”, “Victorian”, “Tudor Revival”, “Mansion”}
SET costs = {99955, 423699, 777399, 1025999}
SET number_homes = {0, 0, 0, 0}
SET i = 0
WHILE i < 0 DO PROMPT homeType READ homeType IF homeType == “finish” THEN BREAK END IF SET valid = false FOR j = 0 to 4 IF types(j) == homeType THEN SET valid = true Increment number_homes(j) Increment i END IF END FOR IF valid == false THEN PRINT “Error invalid home type” END IF END WHILE SET total_cost = 0 SET average = 0 FOR j = 0 to 4 PRINT types(j), costs(j), number_homes(j) SET total_cost = total_cost + costs(j) * number_homes(j) END FOR SET average = total_cost / i PRINT total_cost PRINT average END 3) Show testing using the desk checking table method, to include test data, expected results, and a desk checking table. Make sure your desk checking considers multiple cases including both valid and invalid test data to prove your algorithm will work in all cases Input 1 2 3 4 5 Cottage Victorian New Mansion Finish number_homes 0,0,0,0 1,0,0,0 1,1,0,0 1,1,0,0 1,1,0,1 1,1,0,1 total_cost average Output 0 0 0 0 1549653 0 0 0 0 516551 Error invalid home type Cottage $99955.00 No. Homes: 1 Victorian $423699.00 No. Homes: 1 Tudor Revival $ 777399.00 No. Homes: 0 Mansion: $1025999.00 No. Homes: 1 Total Cost: $1549653.00 Average: $516551.00 Programming Assignment 7/8 Scenario: A company is planning an awards reception for its employees and wants to track entrée choices for up to 250 guests. Each guest will have a name and one entrée choice which must be either chicken (at $50), pasta (at $45), or vegetarian (at $40). Create a modular solution to allow the input of guest information. After all guests are input, print a well-formatted report that displays all of the guest names, along with his/her entrée choice. At the end of the report, include the counts and total cost for each of the four entree choice categories. Other Requirements: • • • • • • Your solution must be designed as a modular solution using modules other than a mainline, with each module performing only one task. The mainline should contain only a very minimal amount of logic, calling modules instead. Your solution must demonstrate the concept of arrays. Your solution must demonstrate the concept of multi-dimensional arrays. Your solution must not import any Java library other than JOptionPane, including java.util.Arrays Your solution must contain appropriate validation. Try to think about what might be considered appropriate as you are designing your solution beyond what has already been explicitly provided. Your solution may not use any functions or language constructs not covered during this semester’s IT 106 without prior authorization from your instructor, even if you know other functions or language constructs. We want everyone to be on the same "playing field", regardless of previous programming exposure, and get practice with algorithmic design to solve problems (the intent of the course). Using something existing not discussed in class does not give you as much practice as solving the problem yourself. Doing this may lead to a substantial grade penalty, a grade of zero, or an Honor Code inquiry. When in doubt, ask! To Do (Check Blackboard for Due Dates): Programming Assignment 7: Solution Design Copyright © 2019 John Bono, Ph.D. All rights reserved. 1 1) Create a defining diagram that shows the input, processing, and output 2) Create a structure diagram/hierarchy chart grouping processes from the defining diagram into modules to help you determine what modules you will need (You need to do this, but you do not need to turn it in as part of the grade) 3) Create a modular solution algorithm using pseudocode 4) Show testing using the desk checking table method, to include test data, expected results, and a desk checking table. Make sure your desk checking considers multiple cases including both valid and invalid test data to prove your algorithm will work in all cases Upload a Word document containing only items above to Blackboard. Grading Criteria Requirement Points Defining Diagram with input, processing, and output 40 Efficient Solution Algorithm 40 Thorough Desk Checking Table including test data and expected results 20 Programming Assignment 8: Solution Implementation Write a well-documented, efficient Java program that implements the algorithm you identified. Include appropriate documentation as identified in the documentation expectations document. Note: You must use the JOptionPane class for input/output. Additionally, if you use System.exit as shown in the textbook, it may only be used as the absolute last line in the program. You may not use System.exit, or any variant that exits the program in the middle of the program. The program should be designed to only exit once the algorithm has finished. Upload the .java file of the final program to Blackboard. Be careful that you do not submit a .class file instead of a .java file. Your program must successfully compile using jGrasp. Partial credit is available. Any final program that does not compile, for any reason, will receive an automatic zero. Other IDEs often place in additional code that you are unaware of, doing too much of the work for you. You are strongly discouraged from using IDEs other than jGrasp. Grading Criteria Requirement Points Implementation of Java Program, using efficient practices where appropriate, such as the use of constants, good variable names, no redundant code, etc. 70 Appropriate objective-style documentation 10 Appropriate intermediate comments 20 Copyright © 2019 John Bono, Ph.D. All rights reserved. 2

Calculate your order
275 words
Total price: $0.00

Top-quality papers guaranteed

54

100% original papers

We sell only unique pieces of writing completed according to your demands.

54

Confidential service

We use security encryption to keep your personal data protected.

54

Money-back guarantee

We can give your money back if something goes wrong with your order.

Enjoy the free features we offer to everyone

  1. Title page

    Get a free title page formatted according to the specifics of your particular style.

  2. Custom formatting

    Request us to use APA, MLA, Harvard, Chicago, or any other style for your essay.

  3. Bibliography page

    Don’t pay extra for a list of references that perfectly fits your academic needs.

  4. 24/7 support assistance

    Ask us a question anytime you need to—we don’t charge extra for supporting you!

Calculate how much your essay costs

Type of paper
Academic level
Deadline
550 words

How to place an order

  • Choose the number of pages, your academic level, and deadline
  • Push the orange button
  • Give instructions for your paper
  • Pay with PayPal or a credit card
  • Track the progress of your order
  • Approve and enjoy your custom paper

Ask experts to write you a cheap essay of excellent quality

Place an order