...Assignment due date: 04/01/2012 Problem definition: Calculate the usable area in square feet of house. Assume that the house has a maximum of four rooms, and that each room is rectangular. A. Problem Analysis – Following the directions in the assignment, clearly write up your problem analysis in this section. In this program the overall goal is to obtain the usable area in square feet in a house. The results or overall goal would be considered the required output. To obtain the required output we would need the necessary input. The necessary information regarding the house is that it contains a maximum of four rooms that are rectangular in shape. I will obtain the required output from the given input by multiplying length x width to find the number of square feet in each rectangular room. Once the combined square footage of each room is determined this will give me the amount of usable living space. We would need to know each room length and width, then calculate each rooms area and then find the sum of all four rooms. Area of Room 1= Length1 x Width1 Area of Room 2= Length2 x Width2 Area of Room 3= Length3 x Width3 Area of Room 4= Length4 x Width4 Area of Room 1 + Room 2 + Room 3 =Room 4 = Total Square footage B. Program Design – Following the directions in the assignment, clearly write up your problem design in this section and comment your pseudocode. Useable square footage of a house Rooms- Total number of Rooms = 4 Area-Area=L x W of each room ...
Words: 643 - Pages: 3
...this program is to calculate the square footage of a house with up to 3 rooms. The program will ask the user to enter the width and length of each room in feet. The expected output will multiplying the length and width of each room and then summing the square footage of each room to yield the total square footage of the house. Program name: House Square Footage calculator Analysis: We will use sequential statements All variables will be float We will define these variables: Total_SqFt Room_1_L Room_2_L Room_3_L Room_1_W Room_2_W Room_3_W Input: The user will be prompted to enter the room dimension for each room individually (up to three rooms) “Enter Length and Width of room 1” “Enter Length and Width of room 2” “Enter Length and Width of room 3” Ouput: The output will be defined as the total square footage of the house and will use the input provided by the user to calculate output with this formula: The Square footage of the house will be calculated by this formula: SqFt = (Room_1_L x Room_1_W) + (Room_2_L + Room_2_W) + (Room_3_L x Room_3_W) The output message will display a message “Total Square foot of the house is: SqFt” Test Plan Three test cases will be done Test Case # | Input | Expected Output | 1 | Room1: length=10, width=14; Room 2: length=9, width=10; Room 3: length=12, width=12; | 374 square feet | 2 | Room1: length=5, width=9; Room 2: length=15, width=20; Room 3: length=6, width=12; | 417 square feet | | | 3 | Room1: length=8...
Words: 850 - Pages: 4
...bills with a three-month maturity. (T-Bill) Consumer Price Index (CPI): a standard measure of consumer price inflation. Risk-free rate: the rate of return on a riskless investment. (debt that is virtually free of any default) Risk premium: the extra return on a risky asset over the risk-free rate; the reward for bearing risk. (excess return) Variance: a common measure of volatility. (squared difference between the actual returns and the average return—the bigger the number the more the actual returns tend to differ from the average return. Standard deviation: square root of the variance Pg. 19 Calculating the Historical Standard Deviation: 1. Calculate the average. 2. Find the difference between each given point and the average. 3. The difference is how much each term deviates from the average. Calculating the Historical Variance: 1. Repeat steps 1-3 2. Square each of the variances 3. Add all the squared terms 4. Divide the sum by the number of returns 1 less Normal Distribution: a symmetric, bell-shaped frequency distribution that is completely defined by its average and standard deviation. (bell curve) Geometric average return: the average compound return earned per year over a multiyear period. Answers the question: “What was your average compound return per year over a particular period?” Tells you what you actually earned per...
Words: 415 - Pages: 2
...(Safety and Health) for a particular job post with the help of supervisor and HR manager of any company. We have chosen Square Pharmaceutical Ltd and the job post on which we have prepared our report is Medical Promotion Officer. We visited Square Pharmaceuticals Limited. There we appointed with Mr. Younus Ali (Sr. Manager, HRD) and Mr. Tamim Ahsan( Territory officer in Dhaka region). They were very cordial and helpful to us share their experience and provide the required information as they can provide within the policy. We asked them different relevant questions and information to provide. 1.1. Profile of Square Pharmaceuticals Ltd. Corporate Headquarters | : SQUARE CENTRE 48, Mohakhali Commercial Area Dhaka 1212, Bangladesh | Factory | : Shalgaria, PabnaTown, Pabna | Established | :1958 | Constitution | : Public Ltd Company | Founder Chairman | : Mr. Samson H Chowdhury | Chairman | : Mr. Samuel S Chowdhury | Managing Director | : Mr. Tapan Chowdhury | Details of Business | : 1. Pharmaceuticals Products 2. Bulk Chemicals 3. AgroVet Products | Manufacturing Units | :1. Pharmaceuticals Division 2. Agro Vet Division 3. Chemical Division | 1.2. Human Resource Department of Square Pharmaceutical Ltd SQUARE, with its progressive business outlook, believes and practices corporate work culture with a classic blend of efficiency and equity. SQUARE believes in company growth by increasing efficiency level of employees and for that offering excellent environment and...
Words: 2745 - Pages: 11
...Personally, my favorite constellation is a tossup between Orion and Scorpius, however I must admit the myth behind the Orion constellation is incredibly interesting, allowing it to come first as my favorite constellation. Honestly, Scorpius is one of my favorites purely based on the fact that I myself am a Scorpio. I chose Orion as my favorite constellation because the history behind this constellation is so fascinating. This constellation was named after a great Greek hunter and bowman. The most prominent stars in this constellation are Alnilam, Mintaka and Alnitak. These three stars form Orion’s belt, as well as Bellatrix at his left shoulder and Betelgeuse at his right. As many would know, Bellatrix Lestrange nee Black was a notoriously dark witch who served side by side with Voldemort, the darkest wizard of this time and age. The Blacks were known to name their children after stars, and Bellatrix was no exception. According to Greek mythology, Orion was the son of Poseidon, gifted with the ability to walk on water. He was blinded at an early age and went to search for a cure, eventually finding one with the help of one of Hephaestus’ men and a sun god. After his sight was restored, he retired to the island of Delos and became a skilled archer. He was so talented he caught the eye of the goddess of hunt, Artemis. He soon became her favorite, and they would often go on hunts together, slaying monstrous beasts. He desired to marry the goddess, however Apollo disapproved as Artemis...
Words: 583 - Pages: 3
...Program Description: The program I’m creating is going to be utilized to determine the usable surface area of each room in a four-room house and then calculate the usable square footage of the house as a whole. Analysis: To start this program, I needed to come up with a plan or blueprint. I utilized the Modular Approach to break this down into smaller parts. The main module is the solution to the problem; determine the square footage of a four-bedroom house with the all rooms being rectangles. The program will perform the equation for the area of a rectangle (Area = Length * Width) for each room. Each sub-module will perform the equation and come up with a solution. Once the solutions are identified for each room, we must finish the task by finding the sum of the four rooms’ square footage to calculate the houses’ total square footage (Area RM1 + Area RM2 + Area RM3 + Area RM4 = Total Square Footage of House). Calculate the Total Square Footage of a four-bedroom house. Calculate the Total Square Footage of a four-bedroom house. Area of Room One Area of Room One PLUS PLUS Area of Room Two Area of Room Two PLUS PLUS Area of Room Three Area of Room Three PLUS PLUS Area of Room Four Area of Room Four Analysis (CONT): In this program, I will be using various variables with different definitions. The table below will list and identify the variables: VARIABLES | DEFINITION | LR1 | LENGTH OF ROOM ONE | WR1 | WIDTH...
Words: 843 - Pages: 4
...have to attempt only one lf the alternatives in all such questions. * Use of calculator is not permitted. * An additional 15 minutes time has been allotted to read this question paper only. SECTION – A 1. Any point on the line x + y = 0 is of form a. b. c. d. (,−) 2. The coefficient of y in the equation 3(2x – y) + x + 2y = 5 is b. 7 b. – 5 c. – 1 d. 1 3. If in a sphere, volume and surface area are numerically equal, then radius will be: c. 1 b. 3 c. 2 d. 4 4. The length of longest pole that can be put in a room of dimensions (10m x 10m x 5m) is d. 15m b. 16m c. 10m d. 12m 5. If in a quadrilateral, diagonals are equal, then it cannot be a : e. Square c. Rhombus f. Parallelogram d. Rectangle 6. The median of a triangle divide it into two g. Triangles of equal area c. Right triangles h. Equilateral triangles d. Isosceles triangles. 7. A fair die is thrown. The probability that a prime number will occur is i. b. c. d....
Words: 725 - Pages: 3
...area in square feet of a house. Assume that the house has a maximum of four rooms, and that each room is rectangular. Program Description The purpose of this program is to calculate the usable area (square feet) of a four room house. Analysis To calculate the usable area in square feet in the house I would first need to identify the inputs and outputs. I know the house has a maximum of 4 rooms that are rectangular in shape, this is my input. Using the area formula (L x W) I can determine the square feet for each room. Adding the square feet for each room will provide the amount of usable area in square feet of the house and my output for this program. Test Plan Test Case # | Input | Expected Output | Results | 1 | Room 1: length = 16, width = 14Room 2 length = 13, width = 13Room 3: length = 10, width = 11 | 503 square feet | Pass | 2 | Room 1: length = 12, width = 16Room 2 length = 11, width = 14Room 3: length = 10, width = 11 | 456 square feet | Pass | 3 | Room 1: length = 12, width = 12Room 2 length = 12, width = 11Room 3: length = 11, width = 10 | 386 square feet | Pass | Pseudocode //This program will calculate the usable area in square feet of a four room house //Declare WidthRoom1, LengthRoom1 As Float // Declare WidthRoom2, LengthRoom2 As Float //Declare WidthRoom3, LengthRoom3 As Float //Declare WidthRoom4, LengthRoom4 As Float //Declare TotalHouseSquareFeet As Float Write “This program will help you calculate the usable area in square feet...
Words: 273 - Pages: 2
...Short Answer Assignment 5.1 1. Conditionally executed is a single alternative decision structure. It provides only one alternative path of execution. The action is conditionally executed because it is performed only when a certain condition is true. 2. Using the IF statement will be the way to go because it is a dual alternative decision structure. 3. The case structure would be the most straightforward to use. 4. The and operator takes two Boolean expressions as operands and creates a compound Boolean expression that is true only when both sub-expressions are true. 5. The OR operator takes two Boolean expressions as operands and create a compound Boolean expression that is true when either of the sub-expressions are true. 6. The And operator 7. A flag is a Boolean variable that signals when some conditions exists in the program. Algorithm Workbench 1. If x is > 100 y=20 z=40 End IF 2. If a is < 10 then b=0 c=1 End If 3. If a is <10 b=0 Else If 4. If score is <60 Then Display “Your grade is F.” Else If score is <70 Then Display “Your grade is D.” Else If score is< 80 Then Display “Your grade is C.” Else If score is <90 Then Display “Your grade is B.” Else Display “Your grade is A.” End If End If End If End If 5. Main Mod If (amount1>10) AND (amount2 <100) Then If amount1>amount2 Then Display “Amount 1 is greater than Amount 2” Else If amount2>...
Words: 433 - Pages: 2
...Shape class
/** * This is a class that represent any shape. This is the superclass of all shapes. * @author yklam2 * */ public class Shape { private boolean canvas[][]; private int width; private int height; /** * Create an empty shape. */ public Shape() { this(0, 0); } /** * Create a shape with a specific width
and height
. * @param width The width
of this shape. * @param height The height
of this shape. */ protected Shape(int width, int height) { this.width = width; this.height = height; canvas = new boolean[height][width]; } /** * Set a pixel * @param row The row
of the pixel. * @param column The column
of the pixel. */ protected void setPixel(int row, int column) { if(row >=0 && row < height && column >=0 && column < width) canvas[row][column] = true; } /** * Clear a pixel * @param row The row
of the pixel. * @param column The column
of the pixel. */ protected void clearPixel(int row, int column) { if(row >=0 && row < height && column >=0 && column < width) canvas[row][column] = false; } /** * Get the area of this shape. Area is the number of pixel set in this * @return The area. */ public int getArea() { int area = 0;
shape.
for(boolean [] row: canvas) for(boolean pixel: row) if(pixel) ++area; } return area;
/* (non-Javadoc) * @see java.lang.Object#toString() */ public String toString() { String drawing = ""; for(boolean [] row: canvas) { if(drawing.length() > 0) //...
Words: 704 - Pages: 3
...1. The diagram shows a trapezium. The lengths of three of the sides of the trapezium are x – 5, x + 2 and x + 6. All measurements are given in centimeters. The area of the trapezium is 36 cm2. a. Show that x2 – x – 56 = 0 Trapezium Area = ½ (Sum of parallel sides) high 36 = ½ (x+2+x+6) (x-5) 36 = ½ (2x+8) (x-5) …………….. Multiply by 2 72= (2x+8) (x-5) ………………... Expand 72= 2x2-10x+8x-40 2x2-2x-112= 0……………..……... Divide by 2 x2-x-56= 0 b. Find the length of the shortest side of the trapezium. x2-x-56=0 ………………..……... factorize (x-8) (x+7) = 0 Either x-8 = 0 OR x+7 = 0 x = 8 accept x = -7 Reject x-5 is the shortest side and it equals to (8-5=3 cm) 2. The diagram shows a 6-sided shape. All the corners are right angles. All the measurements are given in centimeters. The area of the shape is 85 cm2. Hence, work out the length of the shortest side of the 6-sided shape. Area of rectangular 1= 3x (2x-7) = 6x2-21x Area of rectangular 1= x (3x+4) = 3x2+4x Area of shape = area of rectangular 1 + area of rectangular 2 85 = 6x2-21x + 3x2+4x 9x2-17x-85 = 0 ………………….. Solve using the formula x= 4.159 accept x= -2.27 reject 3. We are going to fence in a rectangular field and we know that for some reason we want the field to have an enclosed area of 75 ft2. We also know that we want the width of the field to be 3...
Words: 640 - Pages: 3
...Project Objectives! Our aim is to design and develop a simple site design with a modern layout that's conducive to CMS systems like WordPress. We won't be applying any wild and crazy style effects in our design (the point here is to keep it simple), but we are going to approach the entire process, from start to finish, as a study in layout and a proper use of margins and padding. We'll be using the 960 grid system from start to finish, so if you've ever wondered what it's like to use the system, now's a great time to learn! We'll be making a few deviations from the norm, but for the most part we'll be using 960gs in the design and coding phases. Once you guys/gals are done, you're welcome to customize the design all you want with your own fonts, colors, styles and textures! Remember, this is just a starting out point - you're welcome to go as nuts as you want when it comes to the personality of your own version of the design. A Brief Course Outline. We might break this up differently once we hit the coding phase, but this should give you a good idea of where we're heading with this series: • The Design Phase • Session 1: Laying The Groundwork and Designing the Homepage • Session 2: Designing the Support Pages (Available Next Week) • The Coding Phase • Session 3: Slicing and XTHML Coding (Available Soon) • Session 4: Convert To a Wordpress Theme (Available Soon) Resources Used For This Project You can use your own resources if you'd like, but here's the full list of...
Words: 2814 - Pages: 12
...Multiple Choice 1 through 10 starting on page 267 1) B 2) D 3) A 4) C 5) B 6) B 7) C 8) B 9) A 10) A Algorithm Workbench 1 through 3 problems on page 269 1) Declare integer rand set rand = random (1, 100) Display rand End function 2) Display “Enter a number” Input number Set number = number /2 Display “The half of”, number, “is” Display “Press Enter to continue” ...
Words: 256 - Pages: 2
... Example: What is the area of this triangle? Height = h = 12 Base = b = 20 Area = ½ × b × h = ½ × 20 × 12 = 120 Volume of Rectangular Figures The volume of a rectangular prism is the length on the side times the width times the height. Example: What is the volume of the rectangular prism with the dimension shown below? Use the formula for the volume of a cylinder as shown below. Volume= (2) (5) (3) = 30 Area of Irregular Figures Without symmetry, even shape, formal arrangement It may seem easy to find the area of a rectangle, but what if the figure has more than 4 sides? . The area of the first rectangle is 72 square centimeters and the area of the second rectangle is 50 square centimeters. Together there are 72 + 50 = 122 square centimeters. Therefore, the area of the entire figure is 122 square centimeters. Surface Area of Rectangular Figures Surface area is the sum of the areas of all the surfaces of a 3 – Dimensional figure. 7 m 7 m 1 m 1 m 12m 12m S.A. = 2(1 x 7 + 12 x 7 + 12 x 1) S.A. = 2 (7 + 84 + 12) S.A. = 2 (103) S.A. = 206 Determining if two ratios are proportion If the product of the means equals the product of the extremes, then the two ratios form a true proportion. In less methyl way, cross multiply and if you get the same number both times, it is a true proportion. The top number of one ratio times the bottom number of the other. Example 5 x 18 = 90 10 x 8 = 80 not proportion. For 8/24...
Words: 876 - Pages: 4
... | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. (a) Diagram 1.1 shows points P and Q drawn on a Cartesian plane. Transformation T is the translation . Transformation R is a clockwise rotation of about the centre Q. State the coordinates of the image of point P under each of the following transformations: (i) T2 (ii) TR [4 marks] (b) Diagram 1.2 shows two hexagons, EFGHJK and PQREST drawn on square grids. | | | | | | | | | | | P Q R S T E F G H J K Diagram 1.2 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (i) PQREST is the image of EFGHJK under the combined transformation WV. Describe in full, the transformation: (a) V (b) W (ii) It is given that EFGHJK represents a region of area 36 cm2 . Calculate the area, in cm2, of the region represented by the shaded region. [8 marks] Answers 1 (a) (i) (3,5) (1,8) (ii) (0.1) ( (b)(i) (a) Reflection in the...
Words: 582 - Pages: 3