Submitted By Tsegayart

Words 410

Pages 2

Words 410

Pages 2

Program Description:

This program will accept the lengths and widths of four rooms from the user, then use this data to compute the total area. The result will be displayed for the user.

Analysis:

Inputs:

There are eight inputs: the lengths and widths of each room.

Outputs:

There is one output: the total area.

Obtaining the Outputs from the Inputs:

For each room, we have to multiply the length by the width to get the area. Then the four room areas are added to get the total area.

Mathematical Formulas:

Area of a rectangle: Area = Length * Width. Total area of a complex figure: add the areas of the parts.

Variables table:

Name Data Type Usage

Length1 Float Length of room 1 in feet

Width1 Float Width of room 1 in feet.

Length2 Float Length of room 2 in feet

Width2 Float Width of room 2 in feet.

Length3 Float Length of room 3 in feet

Width3 Float Width of room 3 in feet.

Length4 Float Length of room 4 in feet

Width4 Float Width of room 4 in feet.

Area1 Float Area of room 1 in square feet

Area2 Float Area of room 2 in square feet

Area3 Float Area of room 3 in square feet

Area4 Float Area of room 4 in square feet

TotalArea Float Total area in square feet

Test Cases:

[I omit this as nearly everyone presented good cases]

Pseudocode:

BEGIN PROGRAM

Declare Length1, Width1, Length2, Width2, Length3, Width3, Length 4, Width4 as Float

Declare Area1, Area2, Area3, Area4, Area5, TotalArea as Float

// Gather the input data

Print “Enter the length of room 1 in feet: “

Input Length1

Print “Enter the width of room 1 in feet: “

Input Width1

Print “Enter the length of room 2 in feet: “

Input Length2

Print “Enter the width of room 2 in feet: “

Input Width2

Print “Enter…...

...Homework Assignment #2 Analysis Input: The input of this program will consist of the base price (BasePrice), the operating system choice (OSChoice), the monitor choice (MonitorChoice), and the case choice (CaseChoice). After the user has made all of the required choices, the program will determine the appropriate cost of that option: OSCost, MonitorCost, and CaseCost. Output: The required output for the program will be the total cost (TotalCost) of the state of the art gaming computer. The program will then determine the total cost of the state of the art gaming computer by using the following computation: TotalCost = BasePrice+OSCost+MonitorCost+CaseCost. Variables: BasePrice // The cost of the computer prior to the user deciding on the three options OSChoice // The operating system selected by the user Win7 // Windows 7 Home Premium Win8 // Windows 8.1 RedHat // Red Hat Linux 9.0 Personal MonitorChoice // The monitor selected by the user Asus // Asus 23.6” LED ViewSonic // ViewSonic 20” LED Acer // Acer 23” LCD CaseChoice // The case selected by the user Thermal // Thermaltake Gaming Case Rosewill // Rosewill Black Gaming Case NZXT // NZXT Guardian Gaming Case OSCost // The cost of the selected operating system MonitorCost // The cost of the selected monitor CaseCost // The cost of the selected case TotalCost // The total cost of the gaming system Design Input the base price of the computer Calculate user selected options to add the......

Words: 735 - Pages: 3

...HELPIDO.COM ----------------------------------------------------------------- Follow the link to get the tutorial http://helpido.com/cmis-242-project-1-design-and-implement-a-vehicle-class-along/ ----------------------------------------------------------------- CMIS 242 PROJECT 1 This project focuses on demonstrating your understanding of classes and objects. Before attempting this project, be sure you have completed all of the reading assignments listed in the syllabus to date, participated in the weekly conferences, and thoroughly understand the examples throughout the chapters. The project requirements include: 1. Design and implement a vehicle class along with 4 subclasses using the following guidelines: Create a lass named Vehicle and its four subclasses named Truck, Car, Bus, and Motorcycle. A Vehicle has a name, model, and make data fields. It also has methods for setting and getting the values of each of the fields along with a method to display the type of license needed to operate it. A constructor that sets the model and make fields to null is also included in the Vehicle class. You are welcome to add additional methods if you like. The types of licenses are: Class Licenses Car Regular Truck Regular Bus Commercial Motorcycle Moto 2. Finally, create a Java test class that creates a fleet of vehicles. In your test class you should at a minimum: a) Construct 100 instances of each kind of vehicle, b) assign a different name to......

Words: 263 - Pages: 2

...<Name> Intro to Problem Solving and Algorithm Design CMIS 102 Professor March 30, 2015 My House Room 1 Length: 25’ Width: 17’ | Room 2 Length: 23’ Width: 11’ | | Room 4 Length: 23’ Width: 15’ | Room 3 Length: 25’ Width: 12’ | | Program Description * To identify the total square footage of the entire house by using mathematical equation and creating a C++ program to run the equation showing the formula and total area. Analysis * First thing is to identify the dimensions of each room and add those dimensions to get the total square footage of the house. * Variables: * L = Length * W = Width * R1 = Room 1 * R2 = Room 2 * R3 = Room 3 * R4 = Room4 * Formula: * Dimension – L x W = Room Area (sq. ft.) * Total Square Footage – R1+R2+R3+R4 = House Area (sq. ft.) Test Plan Test Case # | Input | Expected Output | Room 1 | Length: 25’ x Width: 17’ | 425 square feet | Room 2 | Length: 23’ x Width: 11’ | 253 square feet | Room 3 | Length: 25’ x Width: 12’ | 300 square feet | Room 4 | Length: 23’ x Width: 15’ | 345 square feet | Entire House | Total Square Footage = 1323 square feet | Pseudocode #include <stdio.h> int main () { /* variable definition: */ int a, b, c, d, e, f, g, h, i, j, k, l; float m,n,o,p,q; /* variable initialization */ a = 25; b = 17; c = a * b; d = 23; ...

Words: 380 - Pages: 2

...ACCT 553 Week 1 Homework Solution http://hwguiders.com/downloads/acct-553-week-1-homework-solution/ • 3-31. Tom and Linda are married taxpayers who file a joint return. They have itemized deductions of $12,250 and four exemptions. Assuming an adjusted gross income of $40,000, what is their taxable income for 2012? • 3-32. Compute Marie’s taxable income for 2012, assuming she is single and claims two dependent children. Her adjusted gross income is $70,000, and she has itemized deductions of $9,000. • 3-36. Compute Stanley’s taxable income for 2012, assuming he has $1,000 in wages from working in a grocery store and $2,000 in interest income from some bonds he owns. Stanley, age 16, is claimed as a dependent on his parents’ return. • 13-55. Mr. Z, a non-dealer, sold assets on an installment plan. Determine Mr. Z’s gross income for 2012. Relevant data include: • 13-69. Comprehensive Problem. Bill is a cash-basis, calendar-year taxpayer. Which of the following December items result in gross income or deductions for the current year? ACCT 553 Week 1 Homework Solution http://hwguiders.com/downloads/acct-553-week-1-homework-solution/ • 3-31. Tom and Linda are married taxpayers who file a joint return. They have itemized deductions of $12,250 and four exemptions. Assuming an adjusted gross income of $40,000, what is their taxable income for 2012? • 3-32. Compute Marie’s taxable income for 2012, assuming she is single and claims two dependent children. Her adjusted gross......

Words: 2897 - Pages: 12

...square footage in a house that contains four rooms. The values which are required to perform the calculations will be the length of room 1 times the width of room 1(in feet). This will give the area of room one, which will in turn become the useable area for this particular room. The same length times width (L x W) formula will then be used for all subsequent rooms. After the area for all four rooms has been found, the sum of the area of each room will be the final output for useable square feet. The output values are as follows: * L1: The length for room 1 * W1: The width for room 1 * L2: The length for room 2 * W2: The width for room 2 * L3: The length for room 3 * W3: The width for room 3 * L4: The length for room 4 * W4: The width for room 4 * T1: Total square feet for room 1 * T2: Total square feet for room 2 * T3: Total square feet for room 3 * T4: Total square feet for room 4 * Total_SqFt: Total useable square footage in the house Test Plan: Test Case # | Input | Expected Output | 1 | Room 1 - Length:20 Width:14Room 2: - Length:16 Width:12Room 3: - Length:22 Width:16Room 4: - Length:12 Width:10 | Square Feet: 944 | 2 | Room 1 - Length:17 Width:11Room 2: - Length:11 Width:9Room 3: - Length:13 Width:16Room 4: - Length:19 Width:12 | Square Feet: 722 | 3 | Room 1 - Length:10 Width:8Room 2: - Length:12 Width:10Room 3: - Length:14 Width:12Room 4: - Length:16 Width:14 | Square Feet:......

Words: 653 - Pages: 3

...Peter Doyle CMIS 102 Prof. Tanney HW1 Purpose of the program This program will be used to determine the square feet of usable space in each individual room and those values will be added together to get the total usable area of square feet in house with length and width values of up to four rooms being the only known value BEGIN define variables for rooms and total usable space room numbers and area of each room will be will be represented by integers r1 through r4 total usable area in the house will be represented by Usable_space which define variables of length and width for r1-r4, integer l1,l2,l3,l4,w1,w2,w3,w4 //the values for length and width will be added by user input l1,w1,l2,w2,l3,w3,l4,w4 //Length will be known as L and will have the integers of L1 through L4. L1through L4 will correspsond to the the integer “L” with the same number //Width will be known as “W” and will have the integers of w1 through w4 with the numbers corresponding to the integer “w” with the same number r1=L1*w1; r2=L2*w2; r3=L3*w3; r4=L4*w4; define formula to get total usable square feet Usable_space=(r1+r2+r3+r4); Have program show with printf command Usable square feet for each room and total usable square feet: “ The individual rooms r1-r4’s (respectively) usable area in square feet is r1,r2,r3,r4. The total usable square feet of your house with those given values is Usable_space.” END Code and run test cases. If successful code is good to go. Test......

Words: 354 - Pages: 2

...Ayman Abdeldayem CMIS 320 A piano manufacturer wants to track all pianos it makes. Each piano has a unique serial number and a manufacturing completion date. Each instrument represents exactly one piano model, all of which have an identification number and model. The company produces thousands of pianos of a certain model, and the design is specified before any single piano exists. 1. Identify the degree and cardinalities of the relationship. The degree is the number of attributes in a relation. For this company, the attributes to distinguish between the products would be serial number, completion date, piano model, and identification number. This company makes thousands of pianos per model, and makes many different models. “Cardinality is the number of tuples in a relation,” in this case, a tuple would be a single piano model. So depending on the number of different piano models they produce will be the cardinality. 2. Express the relationships graphically with an E-R diagram. A vendor builds multiple types of tablet computers. Each has a type, identification number, and a name. The key specifications for each type include amount of storage and display type. The company uses multiple processor types, exactly one of which is used for a specific tablet type. The same processor can be used in multiple types of tablets. Each processor has a manufacturer and a manufacturer's unique code that identifies it. 1. Identify the degree and cardinalities of the......

Words: 326 - Pages: 2

...BMGT220 Week 1 homework solutions Click Link Below To Buy: http://hwaid.com/shop/bmgt220-week-1-homework-solutions/ Problem 1 Record the following journal entries below. The first two are done for you as examples. Date Event 1/2/2010 Amanda Smith invested $20,000 cash in capital stock of newly formed corporation 1/4/2010 Purchased equipment on account for $15,000. Note that when you see on account it means the customer will pay later. 1/12/2010 Received $30,000 from customers for services rendered. 1/15/2010 Received a bill for construction supplies used in the amount of $4,000. 1/18/2010 Provided $6,400 of services on account. 1/20/2010 Paid employees $4,600 for wages earned. 1/22/2010 Collected the amount due for work provided on January 18. 1/23/2010 Paid the amount due on equipment purchased on January 4. 1/25/2010 Purchased (and used immediately) construction supplies for cash in the amount of $1,200. 1/31/2010 The company paid Amanda Smith a $3,000 dividend PROBLEM 2 Record the following journal entries below. Hint - some transactions do not require a journal entry Date Event 6/2/2011 Jose Alverado invested $50,000 cash in the capital stock of a new corporation 6/3/2011 Paid rent for June in amount of $2,000. 6/6/2011 Hired an assitant to be paid $6,000 per month. 6/7/2011 Signed contract with Alpha Company to provide services for $15,000. 6/8/2011 Purchased on account and immediately used......

Words: 404 - Pages: 2

...BMGT220 Week 1 to 7 homework solutions Click Link Below To Buy: http://hwaid.com/shop/bmgt220-week-1-7-homework-solutions/ Problem 1 Record the following journal entries below. The first two are done for you as examples. Date Event 1/2/2010 Amanda Smith invested $20,000 cash in capital stock of newly formed corporation 1/4/2010 Purchased equipment on account for $15,000. Note that when you see on account it means the customer will pay later. 1/12/2010 Received $30,000 from customers for services rendered. 1/15/2010 Received a bill for construction supplies used in the amount of $4,000. 1/18/2010 Provided $6,400 of services on account. 1/20/2010 Paid employees $4,600 for wages earned. 1/22/2010 Collected the amount due for work provided on January 18. 1/23/2010 Paid the amount due on equipment purchased on January 4. 1/25/2010 Purchased (and used immediately) construction supplies for cash in the amount of $1,200. 1/31/2010 The company paid Amanda Smith a $3,000 dividend PROBLEM 2 Record the following journal entries below. Hint - some transactions do not require a journal entry Date Event 6/2/2011 Jose Alverado invested $50,000 cash in the capital stock of a new corporation 6/3/2011 Paid rent for June in amount of $2,000. 6/6/2011 Hired an assitant to be paid $6,000 per month. 6/7/2011 Signed contract with Alpha Company to provide services for $15,000. 6/8/2011 Purchased on account and immediately......

Words: 2570 - Pages: 11

...ACC 557 Homework 1 to 5 Complete solution To Buy this Class Copy & paste below link in your Brower http://homeworklance.com/downloads/acc-557-homework-1-5-complete-solution/ Or Visit Our Website Visit : http://homeworklance.com Email Us : lancehomework@gmail.com ACC 557 Homework 1-5 Complete solution ACC 557 Homework 1: Chapters 1, 2, and 3 Due Week 2 and worth 95 points Directions: Answer the following questions in a separate Microsoft Word or Excel document. Explain how you reached the answer or show your work if a mathematical calculation is needed, or both. Submit your assignment using the assignment link in Blackboard. Exercises E1-11.Two items are omitted from each of the following summaries of balance sheet and income statement data for two corporations for the year 2015, Plunkett Co. and Herring Enterprises. Instructions Determine the missing amounts. E2-9.Selected transactions from the journal of Kati Tillman, investment broker, are presented below. Instructions 1. Post the transactions to T-accounts. 2. Prepare a trial balance at August 31, 2015. E2-11.Presented below is the ledger for Higgs Co. Instructions 1. Reproduce the journal entries for the transactions that occurred on October 1, 10, and 20, and provide explanations for each. 2. Determine the October 31 balance for each of the accounts above, and prepare a trial balance at October......

Words: 4265 - Pages: 18

...PSYC 354 Week 1 to 8 Complete Homework Solution http://homeworklance.com/downloads/psyc-354-week-1-8-complete-homework-solution/ PSYC 354 Homework 1 Introduction to Statistics When submitting this file, be sure the filename includes your full name, course and section. Be sure you have reviewed this module/week’s lesson and presentations before proceeding to the homework exercises. Number all responses. Review the “Homework Instructions: General” document for an example of how homework assignments must look. All Questions Part I: Concepts These questions are based on the Nolan and Heinzen reading and end-of-chapter questions. Fill in the blank with the appropriate word or words. 1. A statistic that uses sample data to make general estimates about the larger population is statistic. 2. A statistic that summarizes a group of numbers is a(n) statistic. 3. A(n) is a set of observations drawn from the larger group of interest. 4. The large group about which you want to know something is called . 5. A five-star rating system for movies is a variable at the level of measurement. 6. A person’s religious preference is a variable at the level of measurement. 7. A(n) variable is a variable that meets the criteria for an interval and ratio variable. 8. Discrete values that the independent variable can take on are called the of the independent variable. 9. A variable that is manipulated to determine its effects on another variable is a(n) variable. 10. A(n)......

Words: 3977 - Pages: 16

...Week 1-8 Complete Homework Solution http://homeworklance.com/downloads/psyc-355-week-1-8-complete-homework-solution/ PSYC 355 Homework 1 1. Single-Sample t-Test: Based on Green & Salkind – Lesson 22, Exercises 1–4 (Mod1_Lesson 22 Exercise File 1), but follow the instructions below instead. 2. Green & Salkind: Lesson 23, Exercises 6–8: (Lesson 23, Exercise File 1) PSYC 355 Homework 2 Part 1 1. Group Statistics 2. a. Mean eating time for overweight individuals b. Standard deviation for normal weight individuals, c. Results for the test evaluating homogeneity of 3. The effect size is -1.6590451330094784 4. An independent-samples t-test was conducted to compare eating time in overweight people and normal weight people. There was a not a significant difference in the scores for overweight people (M=589, SD=42.615) and normal weight people (M=698.4, SD=82.949) conditions; t(38)=-3.975, p =0. PSYC 355 Homework 3 Part 1: Green & Salkind: Lesson 25, Exercises 1–3 1. F ration for the group effect – 1. b. Sums of squares for the hair color effect – c. Mean for redheads d. p value for the hair color effect 2. An independent-samples t-test was conducted to compare violence against women after men watch nature films or explicit films. There was a significant difference in the scores for men who watch nature films (M=5, SD=2.121) and men that watch explicit films (M=7.71, SD=2.138) conditions; t(14)= -2.530, p = -5.015. PSYC 355 Homework......

Words: 331 - Pages: 2

...ACC 557 Homework 1-5 Complete solution Follow Below Link to Download Tutorial http://homeworklance.com/downloads/acc-557-homework-1-5-complete-solution/ For More Information Visit Our Website ( http://homeworklance.com/ ) Email us At: Support@homeworklance.com or lancehomework@gmail.com ACC 557 Homework 1: Chapters 1, 2, and 3 Due Week 2 and worth 95 points Directions: Answer the following questions in a separate Microsoft Word or Excel document. Explain how you reached the answer or show your work if a mathematical calculation is needed, or both. Submit your assignment using the assignment link in Blackboard. Exercises E1-11.Two items are omitted from each of the following summaries of balance sheet and income statement data for two corporations for the year 2015, Plunkett Co. and Herring Enterprises. Instructions Determine the missing amounts. E2-9.Selected transactions from the journal of Kati Tillman, investment broker, are presented below. Instructions 1. Post the transactions to T-accounts. 2. Prepare a trial balance at August 31, 2015. E2-11.Presented below is the ledger for Higgs Co. Instructions 1. Reproduce the journal entries for the transactions that occurred on October 1, 10, and 20, and provide explanations for each. 2. Determine the October 31 balance for each of the accounts above, and prepare a trial balance at October 31, 2015. ......

Words: 4258 - Pages: 18

...PSYC 354 Week 1-8 Complete Homework Solution Follow Below Link to Download Tutorial http://homeworklance.com/downloads/psyc-354-week-1-8-complete-homework-solution/ For More Information Visit Our Website ( http://homeworklance.com/ ) Email us At: Support@homeworklance.com or lancehomework@gmail.com PSYC 354 Homework 1 Introduction to Statistics When submitting this file, be sure the filename includes your full name, course and section. Be sure you have reviewed this module/week’s lesson and presentations before proceeding to the homework exercises. Number all responses. Review the “Homework Instructions: General” document for an example of how homework assignments must look. All Questions Part I: Concepts These questions are based on the Nolan and Heinzen reading and end-of-chapter questions. Fill in the blank with the appropriate word or words. 1. A statistic that uses sample data to make general estimates about the larger population is statistic. 2. A statistic that summarizes a group of numbers is a(n) statistic. 3. A(n) is a set of observations drawn from the larger group of interest. 4. The large group about which you want to know something is called . 5. A five-star rating system for movies is a variable at the level of measurement. 6. A person’s religious preference is a variable at the level of measurement. 7. A(n) variable is a variable that meets the criteria for an interval and ratio variable. 8. Discrete values that the......

Words: 4001 - Pages: 17

...PSYC 355 Week 1-8 Complete Homework Solution Follow Below Link to Download Tutorial http://homeworklance.com/downloads/psyc-355-week-1-8-complete-homework-solution/ For More Information Visit Our Website ( http://homeworklance.com/ ) Email us At: Support@homeworklance.com or lancehomework@gmail.com PSYC 355 Homework 1 1. Single-Sample t-Test: Based on Green & Salkind – Lesson 22, Exercises 1–4 (Mod1_Lesson 22 Exercise File 1), but follow the instructions below instead. 2. Green & Salkind: Lesson 23, Exercises 6–8: (Lesson 23, Exercise File 1) PSYC 355 Homework 2 Part 1 1. Group Statistics 2. a. Mean eating time for overweight individuals b. Standard deviation for normal weight individuals, c. Results for the test evaluating homogeneity of 3. The effect size is -1.6590451330094784 4. An independent-samples t-test was conducted to compare eating time in overweight people and normal weight people. There was a not a significant difference in the scores for overweight people (M=589, SD=42.615) and normal weight people (M=698.4, SD=82.949) conditions; t(38)=-3.975, p =0. PSYC 355 Homework 3 Part 1: Green & Salkind: Lesson 25, Exercises 1–3 1. F ration for the group effect – 1. b. Sums of squares for the hair color effect – c. Mean for redheads d. p value for the hair color effect 2. An independent-samples t-test was conducted to compare violence against women after men watch nature films or explicit films. There was a......

Words: 356 - Pages: 2