Free Essay

# Pt1420 Unit 3

In:

Submitted By freak0127
Words 254
Pages 2
5. The variable’s name and the variable’s data type must be specified in a variable declaration.
6. The value of an uninitialized variable is either 0 or the value that happens to be stored in its memory location.

Algorithm Workbench:
3. a. Set b = 2 + a b. Set a = b * 4 c. Set b = a / 3.14 d. Set a = b – 8
4. a. 12 b. 4 c. 2 d. 6
5. Declare Real cost
6. Declare Int total = 0
7. Set count = 27
8. Set total = 10 + 14
9. Set due = downPayment – total
10. Set totalFee = subtotal * .015

Programming Exercise:
6. Declare Real purchaseAmt Constant Real STATE_TAX = 0.04 Constant Real COUNTY_TAX = 0.02 Declare Real totalTax
Declare Real totalSale

Display “Enter the amount of purchase” Input purchaseAmt Set stateTax = purchaseAmt * stateTax
Set countyTax = purchaseAmt * countyTax Set totalTax = stateTax + countyTax Set totalSale = purchaseAmt * totalTax Display “The amount of your purchase is \$”, purchaseAmt,
Display “The state tax is \$”, stateTax
Display “The county tax is \$”, countyTax
Display “total tax is \$”, totalTax
Display “The total of the sale is \$” totalSale

8. Declare Real mealAmt Constant Real TIP = 0.15 Constant Real SALES_TAX = 0.07 Display Real taxTotal Declare Real totalSale

Display “Enter the price of the meal” Input mealAmt Set salesTax = mealAmt * salesTax Set tip = mealAmt * tip Set totalTax = salesTax + tip Set totalSale = mealAmt * totalTax Display “The price of your meal is \$”, mealAmt
Display “The tip is \$”, tip
Display “The sales tax is \$”, salesTax
Display “The total of price of your meal is \$”, totalSale

### Similar Documents

#### Pt1420 Unit 3 Assignment

Words: 655 - Pages: 3

#### Pt1420 Unit 3 Assignment

...general and workplace math literacy. 2. a. Tell the function of the specific unit. The teacher would say, “Yards tell how long something is. We use yards to measure objects that are about three or more feet long.” b. Illustrates the unit. The teacher would draw a yard length line on the board to show the students how long a yard actually is. c. The teacher would demonstrate how to use the measuring tools (for this lesson a yard stick would be a measuring tool). d. Presents application exercises in which students determining the appropriate tool to use when measuring an object....

Words: 1343 - Pages: 6

#### Pt1420 Unit 3 Assignment

...and non-linear functions of the input variables. In this there are three integer input variables(A,B and C) and four paths through the procedure under test. The nodes of the control flow tree represent a linear code sequence of statements between each selection. The leaf nodes 2,4,6 and 7 finish with an end if and will eventually exit the procedure. These nodes represent the different alternatives which the roots can have(ex. Real, complex, etc.). If the conditions are true the next left child node will be executed, if not then the right node. Nodes 1, 3 and 5 are the branch nodes and they determine the next branch to be executed depending on its condition and input data. Points to note about the procedure under test are: 1. One of the input variables , A, is involved directly in an equality condition(A=0); 2. D is a non-linear function of the input variables, and is involved in two conditions controlling a total of three paths; 3. D is involved in an equality(D=0); 6.4) Triangle classification problem The triangle program involves both linear and non-linear functions of the input variables. It uses equality and inequality relational operators. The complete triangle program has three integer input variables A, B and C, one output variable TRI_KIND,27 nodes,14 paths and the longest path has 13 nodes through the software. It is a bigger and more complex procedure than the quadratic equation solver. The output variable returns the type of triangle corresponding to the three input...

Words: 728 - Pages: 3

#### Pt1420 Unit 3 Assignment

...BIM, which are the acronyms for Building Information Modelling can be described as a concept that makes up database that allows all building design to be present in one database. Due to this concept we are able to understand that the entire building cycle. BIM is the methodology that handles the facilitation of data that is integrated from numerous layouts; there is a combination of the data which forms the common operating picture for the entire lifecycle, financial and environmental assessment allows for the cost of a building project to be assessed. The job to provide a general view of the data is BIM, this also allows for the integration of processes, in addition, a GIS implementation is also a common framework at an enterprise level. Data will be stored in a central storage, data can be related to each other through common geography, it does not matter at what scale the project will be assessed, it can be assessed through individual assets as well as to an entire country. All the above mentioned elements are ensured by an enterprise GIS system. The most important and most significant point is that GIS has the strength to work at any scale necessary. GIS is fast gaining popularity in the BIM space, GIS has the ability to reach any scale, no matter how big or how small, this in turn allows facilities managers, as well as building contractors to have a high level of detail from the common operating images. Data can be viewed at both levels, this is the result of being able to...

Words: 821 - Pages: 4

#### Pt1420 Unit 3 Assignment

Words: 511 - Pages: 3

#### Pt1420 Unit 3 Assignment

...associated the problems with real-life scenarios showing his strong mathematical reasoning and problem solving skills. For example, Andrew showed to better understand when he compared the amounts with cookies. In addition, Andrew commented that the number line was also helpful when solving for problem number 3, which shows he might not be completely comfortable with the concept of amounts yet. Even though this assessment was made for second graders and Andrew is a third grader, since Andrew’s least favorite subject is math and he is not performing well in the subject area, I thought it would be good to go over the assessment...

Words: 1056 - Pages: 5

#### Pt1420 Unit 3 Assignment

...assignment for this week. The assignment for this week was not that hard and all I had to do was read the directions and do what they told me to do. 2. I was excited to see that the assignment for this week was going to have me use python to program and compute the area of a triangle. 3. Python made me realize that I was typing print in the wrong way because I was typing it in as Print and not print and this made Python think that it was an error since variable names are case sensitive. 4. I was mostly excited to work on this assignment and the learning guide helped me to prevent myself from getting confused and...

Words: 510 - Pages: 3

#### Pt1420 Unit 3 Assignment

...Assignment – 3 Problem 1 Primary Data: The data obtained directly by the means of observing the data. Example: Ambulance Siren By listening to the siren of the ambulance, the basic information is to give the way to the ambulance because of the emergency. Secondary Data: The data obtained from the presence of the primary data. By the presence of the primary data where secondary data is absent. Example: Absence of Light from the Laptop When the Laptop is on the light appears from the keyboard. But, even though the laptop is on the light does not appear from the keyboard which means the laptop is not functioning properly. Meta Data: The data which give the brief information about the source of other data. Example: App Information in the Mobile App information in a mobile can be determined like when the application is downloaded (by date, time and day). It also shows the how much size of MB it is occupying in the mobile. Operational Data: Operational Data defines about the position of a system. Example: Automobile Wheels The running wheel of the vehicle indicates the automobile is in moving state. Derivative Data: The data which is generated from the original...

Words: 484 - Pages: 2

#### Pt1420 Unit 3 Assignment

...The unit I have in mind would connect geography, history, writing and language arts. The Big idea of the unit would give students an understanding of the cultures within and around their neighborhood within a 20 mile radius of their school. The students will learn how to gather census data on the surrounding communities to include theirs. The students will determine the ethnic groups that are dominate within each community. The unit would require students to discover one important historical or place of importance within each community and write of its’ significance. The students will learn how to use geo-caching software or equipment to go to those locations and document the site with photographs and write-ups of what they observe around...

Words: 297 - Pages: 2

#### Pt1420 Unit 3 Assignment

...Jake has made reasonable progress this semester in Digital Technologies. He is capable of passing when he applies himself. His current programming assessment is going well. He also has the opportunity of gaining more credits with the external report. This will require a bit of homework on his part. The external report is due in the last term after the holidays. Overall a reasonable result this year for Samuel in Digital Technologies. I highly encourage him to practice more programming to build his confidence and ability on this topic. Concentration on his written work and planning skills would also help with gaining higher marks in future studies. He did have the opportunity to resubmit for a higher grade but declined the offer. His current assessment is on programming in the Python language, this is the last internal assessment for this subject. Thomas worked steadily all year in Digital Technologies. He passed most of the standards that were on offer. Although he found aspects of the course difficult he did manage to handle it. Further programming practice will give him more confidence if he intends on taking this subject next year. He has an externally marked report due next term after the holidays. This will require a bit of homework to complete by the due date. Hayden has made some progress in Digital Technologies. He has found the course very challenging but to his credit, he has not given up. The algorithm he designed was not up to the standard required at level one...

Words: 470 - Pages: 2

#### Pt1420 Unit 3 Assignment 1

...Paolo Mutia Sociology – Gordon 3 November 2015 Assignment 3 Social status is the position that someone occupies in society or in a social group, while roles are the behaviors, obligations, and privileges attached to a status. For example, a woman may have the status of mother in her family. Because of this status of a mother, she is expected to perform a role for her children. This role may be defined through actions such as nurturing, education, protecting, and guiding the children. Social structure, is the arrangement of institutions where human beings in a society interact and live together. The group collectively decides the set of statuses and roles. By creating a set of expectations of actions and behavior, people know what to expect...

Words: 1606 - Pages: 7

#### Pt1420 Unit 3 Problem Analysis

...descending order, and fill in any missing terms with a zero. Lastly list the coefficient 2. Bring the first coefficient down. 3. Multiply the dividing number by the number brought down and put the product in the next column. 1. Set up the problem by making the denominator equal zero and find the number for the division box. Then make sure that the numerator is in descending order, and fill in any missing terms with a zero. Lastly list the coefficient 2. Bring the first coefficient down. 3. Multiply the dividing number by the number brought down and put the product in the next column. 1. Set up the problem by making the...

Words: 660 - Pages: 3

#### Pt1420 Unit 3 Lab Report

...Then we counted the number of 3x3 unit squares, we found 4. We found each of there by starting from each corner of the Figure 1. One 3x3 unit square can be found shaded in Figure 1d. Figure 1d (3 x 3) Lastly, we counted Figure 1 as one whole 4x4 unit square, shaded in Figure 1e. When figuring out how many squares were in Figure 2, we first noticed that the first four rows represent Figure 1; therefore, we did not recount since we previously figured out there were forty squares in Figure 1. We then counted the squares formed by adding two additional rows using the same process as we did for Figure 1. We counted four squares measuring ½ x ½ units, nine squares measuring 1x1 units, six squares measuring 2x2 units, four squares measuring 3x3 units, and four...

Words: 506 - Pages: 3

#### Pt1420 Unit 3 Data Analysis

...1. In range of data, data in the cells are not structured, they can be specified by the block of cells. Also the name of the table is manually done and not automatically set. In the structured range data, data is organized in columns and fields. The names of the table can be automatically set, and table headers can also be automatically set with drop down boxes. 2. A field is represented by the columns and a records are represented by rows. A field is single unit of data that is unique within each entry or row whereas a record is a row that contains distinctive data in each of the fields. 3. Freeze Panes buttons are used to freeze rows and columns in the excel sheet. It is helpful when working with a large sheet so that you keep the headers visible as...

Words: 824 - Pages: 4