...Unit 1 Assignment 1 Exploring Programming Languages PT1420 Introduction to Programming Pong Sintaisong ITT-Tech Tempe Campus Instructor: Ms. Kate Eskesen 9/23/2015 5 Programming Languages 1970s-2000 1970s Pascal: Niklaus Wirth was is the invertor and was invented in 1971 Motivation: To provide features that were lacking in other languages at the time. Forth: Forth was created in 1970 by Charles H. Moore Motivation: He wanted to create a language that would allow direct user and machine interactions. C: In 1971-73 Dennis M. Ritchie turned the B language into the C language. Motivation: Lack of features from B language so made C language. Prolog: Alain Colmerauer in 1973. Motivation: Unknown ML: In 1973 ML was invented as part of the University of Edinburgh's LCF project Motivation: Research in constructing automated theorem provers. Eventually saw that the "Meta Language" they used for proving theorems was more generally useful as a programming language. 1980s C++: Bjarne Stroustrup was the inventor. 1979 Motivation: He needed the use of a programming language that was concise and that produced compact and speedy programs. MATLAB: First Fortran MATLAB was portable and could be compiled to run on many of the computers that were available in the late 1970s and early 1980s. Cleve Moler is the inventor. Motivation: This document for engineers developing models and generating code for embedded systems using Model-Based Design with MathWorks products. ADA:...
Words: 715 - Pages: 3
...Associate Program Material Appendix F Application-Level Requirements Application-Level Requirements List 1. The program will prompt the user for data input of type and amount of currency to be converted. 2. The program will prompt the user to input the type of the destination currency. 3. The program will locate and display the current currency rates for types listed by the user. 4. The program will perform calculations to convert value from one type of currency to another type of currency indicated by the user. 5. The program will display the calculated total amount of the currency desired using the total of the original currency. 6. The program will prompt the user to indicate if another conversion is desired. Input-Process-Output Chart Complete the following input-process-output chart for the application using a structured programming approach. |Input |Process |Output | |Origin currency |Get user input. |Origin currency | |Origin currency amount | |Origin currency amount | |Destination currency |Get user input. |Destination currency | |Value of Destination...
Words: 262 - Pages: 2
...1. Suppose that some application requires using two stacks whose elements are of the same type. A natural storage structure of such a two-stack data type would consist of two arrays and two top pointers. Explain why this may not be a space wise efficient implementation. A stack is a last in first out (LIFO) data type. A stack can be implemented using arrays where the data is stored in continuous memory locations. We have two operations in a stack push and pop. Since it has continuous memory allocated, if we try inserting data it gets saved in that free space present in either of the stacks. This is not a space wise efficient implementation because data is stored statically. In this case one stack can be full while the other is empty. 2. Using the basic queue and stack operations, write an algorithm to reverse the elements in a queue. Create an empty stack While the queue is not empty Remove a value from the queue and push it onto the stack While the stack is not empty Pop a value from the stack and add it to the queue. 3. Assume that 'Stack' is the class described in this section with 'StackType' set to into and STACK_CAPACITY or myCapacity set to 5. Give the value of 'myTop' and the contents of the array referred to by 'myArray' in the Stack s afer the code segment is executed, or indicate why an error occurs. Stack s; s.push(1); s.push(2); s.push(3); s.pop(); s.push(4); s.push(5); s.pop(); s.pop(); In a stack it is last...
Words: 351 - Pages: 2
...Unit 1 Research 1 PT1420 In the 1970s the programming language that was most popular was Pascal. Pascal was designed in 1968-69 but published in 1970. Niklaus Wirth created the Pascal language to “1) make available a language suitable for teaching programming as a systematic discipline based on fundamental concepts clearly by the language, and 2) to define a language whose implementations could be both reliable and efficient on then-available computers. In 1972 the C programming language was developed by Dennis Ritchie. C was created to work with the system Unix. “Unix gives C such advanced features as dynamic variables, multitasking, interrupt handling, forking, and strong, low-level, input-output. Because of this, C is very commonly used to program operating systems such as Unix, Windows, the MacOS, and Linux.” In the 1980s the popular programming language was C++. C++ was developed at Bell Laboratories. C++ is a general purpose multi-paradigm spanning compiled language that has both high-level and low-level languages’ features. It was started as an enhancement to the C programming language, Bjarne Stroustrup in 1979. In the 1990s Java was the popular programming language. It was created in 1991 developed by James Gosling at Sun Microsystems and release in 1995. In the 2000s Visual Basic (VB) was popular in the programming world. VB was developed from BASIC which was originally developed in 1964 by John Kemeny and Thomas Kurts. VB is a Microsoft programing language and software...
Words: 261 - Pages: 2
...1. A vacuum gauge indicates that the pressure of air in a rigid vessel is 0.2 bar (vacuum). The pressure of the atmosphere is equivalent to 750 mm column of mercury. Given: Density of mercury is 13.59 g/cm3. i. Sketch the system with appropriate labels. ii. Determine the atmospheric air pressure, in bar. iii. Calculate the absolute pressure of the air in the vessel, in kPa. (Ans: 1 bar; 80 kPa) 2. A gas is contained in a vertical, frictionless piston-cylinder device, as shown in Figure 1.1. The piston has a mass of 4 kg and cross sectional area of 35 cm2. A compressed spring above the piston exerts a force of 60 N on the piston. If the atmospheric pressure is 95 kPa, determine the absolute pressure inside the cylinder. (Ans: 123.35 kPa) Figure 1.1 3. The gage pressure of the air in the tank shown in Figure 1.2 is measured to be 65 kPa. Determine the differential height h2 of the mercury column. (0.47 m) Figure 1.2 4. The absolute pressure inside a tank is 0.4 bar and the surrounding atmospheric pressure is 98 kN/m2. What would the reading be on a gauge pressure attached to the tank, in kPa. [-58 kPa] 5. A barometer reading indicates that the atmospheric pressure is 730mm Hg. Determine the pressure in bar. (Density of mercury is 13600 kg/m3 and earth’s gravity is 9.81 m/s2). [0.974 bar] 6. A gas...
Words: 352 - Pages: 2
...Master Diver Diving Equipment Open circuit demand scuba is the most commonly used by recreational divers, but closed circuit and semi-closed rebreathers are now available. Test Pressure: the pressure to which the cylinder is subjected to during hydrostatic testing. For a 200 bar cylinder it is 300 bars, for a 232 bar cylinder it is 348 bars. If internal inspection reveals corrosion, it may have to be cleaned by tumbling. The tumbling process involves filling the cylinder approximately half full of an abrasive material such as carbide chips, or aluminum oxide chips, and rotating it for a number of hours. A dual valve for a single cylinder, known as a Y-valve, or an H-valve, allows a diver to mount 2 regulator systems on a single cylinder. The first stage reduces cylinder pressure to an intermediate pressure (or low pressure) of approximately 90-150 psi (6 to 10 bar). The second stage reduces the intermediate (low) pressure to ambient pressure. Because of their tendency to fail in a closed position, upstream valves are rare in modern scuba regulators. In a Balanced Valve regulator the operation of the regulator is independent of the cylinder or applied pressure. (Breathes the same at low tank pressure) The internal valves of scuba regulator first stages are available in 2 basic types, diaphragm and piston. The main valve of a Pilot Valve regulator is opened and closed with air pressure, rather than mechanical leverage. Some regulators may...
Words: 3497 - Pages: 14
...Tides and the Moon Name AST/101 Date Teacher Tides and the Moon I was recently tasked with examining the relationship between the Earth’s moon and the Earth’s tides. I took that to mean literally: how are the tide levels of Earth’s bodies of water affected by the Moon? When approaching this question I want to do so with the scientific method in mind. The scientific method refers to a body of techniques for investigating phenomena, acquiring new knowledge, or correcting and integrating previous knowledge (Goldhaber & Nieto, 2010). The scientific method is a way to ask and answer scientific questions by making observations and doing experiments. It is also a good tool when we are searching for cause and effect relationships in nature. We already know the primary question being asked: How are the bodies of water on Earth affected by the Moon? To begin to answer our primary question we next ask: what causes tides? There are several kinds of tides. The ones that break upon a beach every 10 seconds to a minute are caused by sea level disturbances out in the ocean produced by such things as storms. Also the various circulation currents of sea water can have velocity components directed toward the land which will bring water up onto the beach. As this water travels toward the beach from deep water to shallow water, its amplitude will increase until it finally “breaks” as a full-fledged breaker, suitable for surfing, etc. Underlying this minute to minute activity is a slower...
Words: 1732 - Pages: 7
...The Birds “… The vast quantity of birds flocking above towns, villages, and outlying districts, causing obstruction and damage and even attacking individuals”(du Maurier 68). The above statement is the plot which is presented in both the story and the film. The main plot is the same in both the story and the film. In the story and the film the birds attack with the tides. They rest on low tide and attack on high tide. Abnormal flocking patterns are also a common detail. This means that birds of prey are flocking with the birds that they are hunted by. In both the idea that women cannot handle stressful situations is presented. In the story Mrs.Hockens said to her husband “You’re no to go, you’re not to go and leave me with the children. I cant stand it” (du Maurier 85). “Her voice rose hysterically. He hushed her, calmed her“ (du Maurier85). In both the main characters go into their house to protect themselves but before they do that they board their houses for extra protection. Unfortunately in both the story and the film they did not do a good enough job boarding up their houses because the birds get into an upstairs room. The main character takes precautions like boarding up his house while many other characters don’t take the attacks seriously. “She’s another… Se doesn’t care” (du Maurier 75). While the story and the film have similarities there are more differences that present them self. One of the main differences would be that there is a completely different cast....
Words: 847 - Pages: 4
...BACKGROUND Both mangroves and salt marshes occur in the intertidal zone: the area between terrestrial land and open salt water. Areas above high water level are increasingly restrictive on growth, and although some mangroves persist they commonly diminish in size and are soon replaced by saltmarsh communities more tolerant of hypersalinity. PART 1: ABOITIC FACTORS The main abiotic factors that will determine the structure of the salt marsh community are the salinity of the soil, the water content in the soil and the substrate type. The impact these abiotic factors have on the structure is ultimately determined by the topography of the land. The unusual topography of the land determined the salinity concentrations in the soil: the land forms a shallow basin in the center and is surrounded by a slightly higher landform. When the salt marsh is rarely inundated, the water is drawn to the center of the ecosystem due to the abnormal topography of the land. During the process of evaporation, a majority of the water content is removed from the soil and transformed into water vapour, leaving behind highly concentrated salt sediment. Another key abiotic factor is the substrate type. According to the data collected, sites B and D have fairly low water content in the soil, while the remaining sites recorded a much high reading. The soil at sites B and D appeared dry, especially on the surface, and replicated fine grain sand – this particular substrate cannot retain a high water moisture...
Words: 1307 - Pages: 6
...to physical causes. A depression can produce low pressure conditions which pull water particles up, giving to a rise in sea level. Similarly strong winds can occur due to change in meteorological conditions which can also rise the sea level. At this point the sea level is much higher than a normal spring tide, and this is called a storm surge. However many human causes, particularly the lack of preparation and costal defences, can lead to lead to any storm surge having a much larger impact on local communities near the coastline. The North Sea storm surge occurred in 1953 and had a huge impact on many communities in places including Britain and the Netherlands. In the Netherlands 1,835 people were killed and 47,000 buildings damaged. While in Britain 307 people died but over 30,000 people had to be evacuated from their homes. This initial storm surge was inevitable. A deep Atlantic depression moved across Scotland, meaning the central pressure had dropped to 970 mb by the coast of Denmark. This reduction is pressure is responsible for the rise in the surface of the sea level by 0.5m. Strong winds also drove the waves ahead of the storm. This was combined with high spring tides when the Sun and Earth and Moon are all in line. So the result was 6m waves approaching both Britain and the Netherlands. Additionally Canvey (one of the areas most affected in Britain) is 1 metre below sea level. Whilst 50% of the land in the Netherlands is no higher than 1m above sea level. So physical...
Words: 741 - Pages: 3
...COASTAL SEDIMENTARY ENVIRONMENTS, GEOMORPHOLOGICAL PROCESSES AND LANDFORMS, THEIR EVOLUTION AND THE ECONOMEIC ASPECTS INTRODUCTION: The coastal zone contains the near-shore area together with the entire continental shelf and the resources of the overlying waters as delimited by existing international agreements. Both play a vital role in the coastal environment – offshore and onshore. Coastal zone is the transition area between the land and the ocean and is an area of complex, dynamic and delicate environment. External factors influencing the coastal zone are the sediment supply by the rivers and the coastal processes. Shoreline is one of the most rapidly changing landforms of the coastal zones, geomorphic processes such as erosion, deposition, sedimentation, periodic storms, flooding and also sea level changes are continuously modifying the shoreline. The accurate mapping of the shoreline is therefore very important for planning conservation measures such as protection of human life, property, and natural environments. The coastal zone is receiving an increasing attention because of the pressures of increasing population and industrial developments. Also erosion is caused by shifting of river mouths and spits. Protection of natural resources, the loss of habitats, severe coastal erosion, sedimentation in ports and harbours, and municipal and industrial pollution are major concerns of the coastal zone managers. Conservation and management of the coastal features requires...
Words: 3814 - Pages: 16
...This archive file includes SCI 209 Week 1 NOAA Activity Part One Ocean Exploration Geography - General Geography SCI 209 Week 4 SCI 209 Week 4 Individual Assignment Natural Ocean Disasters Paper Prepare a 700- to 1,050-word paper in which you explain the relationship between the ocean and the shoreline. Select and describe a naturally occurring ocean disaster that results from the relationship between weather and climate. Include the following in your paper: A minimum of one reference is required. What caused the natural event? Would the effects of this event be any different if it occurred at a high or low tide? If so how? How does this event change the wave action of the ocean? Which ocean currents (deep and surface) pass near or through the disaster impact area? Is the disaster affected by surface or deep ocean currents? If so, how? SCI 209 Week 4 Learning Team Assignment Outline Begin working on the final Week Five assignment, NOAA Activity Final Section: Marine Adaptations. Create an outline of your presentation topics. This may be completed in Microsoft Word or in the Outline view inside of PowerPoint. Waves which are mainly caused by wind travel in little circles or orbs. Waves decrease in velocity as they enter the shore. The top of the wave is called a crest and the bottom is called a trough. The wave crest which will break as it enters the shore. You will view that in this week's animation. Surface waves should...
Words: 383 - Pages: 2
...EJEMPLO DE JUSTIFICACIÓN TÉCNICA DE LA SUSTITUCIÓN DE UN DREN GRANULAR POR UN GEOCOMPUESTO DE DRENAJE EN EL TRASDÓS DE UNA ESTRUCTURA 1. Descripción del dren granular para el drenaje de la estructura El dren granular a sustituir tendrá un espesor de 0,5 m y estará trabajando a una profundidad máxima de 9,5 m. Sobre las tierras habrá una sobrecarga por tránsito. El dren natural estará formado por una grava que quedará separada de las tierras mediante un geotextil que actuará como filtro y separación. También se dispondrá de un geotextil entre la impermeabilización del muro de hormigón y las gravas, que actuará como protector de la estructura y de la impermeabilización. La permeabilidad máxima del conjunto geotextil-grava-geotextil es de k = 1 • 10-3 m/s. 2. Cálculo de la capacidad drenante del dren granular El caudal desaguado por el dren granular se estima mediante la ecuación típica de Darcy: Q GRAVAS = K • A • i (m3/s) ; q GRAVAS = K • e • i (m3/s•m) Dónde: • K = Permeabilidad máxima del material granular = 1 • 10-3 m/s • A = Sección del dren granular (m2) • e = espesor del dren granular = 0,5 m • i = gradiente hidráulico = 1 (en el interior del dren el flujo de agua será vertical). q GRAVAS = K • e • i = 1 • 10-3 • 0,5 • 1 = 0,5 • 10-3 m2/s = 0,5 l/s•m El geocompuesto deberá de tener una capacidad drenante superior a 0,5 l/m•s. 3. Cálculo de la capacidad drenante del geocompuesto de drenaje La capacidad drenante del geocompuesto se obtiene mediante...
Words: 512 - Pages: 3
...Week 3 Text Exercises, Part II Exercise 82 in Ch. 10 * List the following elements in order of increasing electronegativity: Ba, N, F, Si, Cs * Answer : Cs (Cesium), Ba (Barium), Si (Silicon), N (Nitrogen), F (Fluorine). * Exercise 132 in Ch. 11 * Aerosol cans carry clear warnings against incineration because of the high pressures that can develop upon heating. Suppose a can contains a residual amount of gas at a pressure of 755 mm Hg and a temperature of 25 °C. What would the pressure be if the can were heated to 1155 °C? * Answer: Residual pressure: 755 mm Hg = 0.993 atm * Final pressure = ? * Start temperature = 25 °C = 298 K * Final temperature = 1155 °C = 1428 K * * Since the volume in the can then: * P1/T1 = P2/T2 * P2=(P1*T2)/T1= (0.993*1428)/298=4.76 atm = 3617.6 mm Hg * Exercise 50 in Ch. 12 * At the top of Mount. Everest, water boils at 70 °C. Explain why. * Answer: Water’s normal boiling point is considered at a pressure of 1 atmosphere—is 100 °C. A decrease in atmospheric pressure lowers the boiling point. At the top of Mount Everest the air pressure is about a third of the pressure at sea level. * Exercise 104 in Ch. 12 * Water does not easily remove grease from dirty hands because grease is nonpolar and water is polar; therefore they are immiscible. The addition of soap, however...
Words: 313 - Pages: 2
...1. 1970s * Pascal: Created by Niklaus Wirth in 1970. Pascal, named in honor of the French mathematician and philosopher Blaise Pascal, was developed by Niklaus Wirth. Its main purpose was to teach people how to the basics of structured programming. * C: C was originally developed by Dennis Ritchie between 1969 and 1973 at AT&T Bell Labs, and used to implement the Unix operating system. He created the C language there was the B language, which was created by Ken Thompson in 1969-70. Although the B language improved the systems it lacked use of structure and didn’t know data types. So in 1971-73 Dennis Richie wrote the C language in which he kept the B syntax but added data types and other changes that needed to be made. 2. 1980s * Python: Python was conceived in the late 1980s and its implementation was started in December 1989 by Guido van Rossum at CWI in the Netherlands as a successor to the ABC programming language capable of exception handling and interfacing with the Amoeba operating system. Python teaches the user how to work with other languages, indentation, and modularity. It supports object – oriented, procedural, and functional program styles. C++ was also created and used many different types of computers. 3. 1990s: * VB 1.0 was introduced in 1991. The drag and drop design for creating the user interface is derived from a prototype form generator developed by Alan Cooper and his company called Tripod. Microsoft decided...
Words: 326 - Pages: 2