...Joe Metz Professor James Huskins CMIS 102 6385 February 22nd 2015 Program Description – This program will calculate the area and perimeter of a rectangle with the provided user input. Analysis – First the user needs to provide the values for both the length and the width of the rectangle they want to determine the area and perimeter from. From there calculations need to be made. For this example we will use a rectangle with the length of 3 and a width of 9. The formula for determining the perimeter of a rectangle is P=2(l+w) where l and w stand for length and width and P is perimeter. While the formula for determining the area of a rectangle is A=lw. Where A is area and l and w are length and width. By using the values stated previously we can plug in the numbers for that formula and get 2(3+9). Simplified that's 2x12=24. To determine the area we can plug the numbers in and get A=3x9 or A=27. By writing the formulas into a function and calling that function we can have the program use any variety of input by the user to determine what the area and perimeter of a rectangle is with any values. Test Case - Test Case # | Input | Expected Output | 1 | length(l) = 3, width(w) = 9 | Perimeter (P) =24 Area (A) =27 | 2 | l = 5, w = 10 | P =30 A= 50 | 3 | l = 9, w = 36 | P=90 A= 324 | Pseudocode - //Declare Variables L, W, P, A //Float Variables P, A Write “Please Enter the Length of the Rectangle” Input...
Words: 339 - Pages: 2
...AS 3600—2009 AS 3600—2009 Australian Standard® Concrete structures Accessed by NEWCREST MINING LIMITED on 14 Jul 2010 This Australian Standard® was prepared by Committee BD-002, Concrete Structures. It was approved on behalf of the Council of Standards Australia on 8 October 2009. This Standard was published on 23 December 2009. The following are represented on Committee BD-002: • • • • • • • • • • • • • • • • AUSTROADS Association of Consulting Engineers Australia Australian Building Codes Board Bureau of Steel Manufacturers of Australia Cement Concrete & Aggregates Australia—Cement Cement Concrete & Aggregates Australia—Concrete Concrete Institute of Australia Engineers Australia La Trobe University Master Builders Australia National Precast Concrete Association Australia Steel Reinforcement Institute of Australia University of Adelaide University of Melbourne University of New South Wales University of Western Sydney This Standard was issued in draft form for comment as DR 05252. Standards Australia wishes to acknowledge the participation of the expert individuals that contributed to the development of this Standard through their representation on the Committee and through the public comment period. Keeping Standards up-to-date Accessed by NEWCREST MINING LIMITED on 14 Jul 2010 Australian Standards® are living documents that reflect progress in science, technology and systems. To maintain their currency, all Standards are periodically reviewed, and...
Words: 70634 - Pages: 283
...Acknowledgments ix Acknowledgments This book owes a great deal to the mental energy of several generations of scholars. As an undergraduate at the University of Cape Town, Francis Wilson made me aware of the importance of migrant labour and Robin Hallett inspired me, and a generation of students, to study the African past. At the School of Oriental and African Studies in London I was fortunate enough to have David Birmingham as a thesis supervisor. I hope that some of his knowledge and understanding of Lusophone Africa has found its way into this book. I owe an equal debt to Shula Marks who, over the years, has provided me with criticism and inspiration. In the United States I learnt a great deal from ]eanne Penvenne, Marcia Wright and, especially, Leroy Vail. In Switzerland I benefitted from the friendship and assistance of Laurent Monier of the IUED in Geneva, Francois Iecquier of the University of Lausanne and Mariette Ouwerhand of the dépurtement évangélrlyue (the former Swiss Mission). In South Africa, Patricia Davison of the South African Museum introduced me to material culture and made me aware of the richness of difference; the late Monica Wilson taught me the fundamentals of anthropology and Andrew Spiegel and Robert Thornton struggled to keep me abreast of changes in the discipline; Sue Newton-King and Nigel Penn brought shafts of light from the eighteenthcentury to bear on early industrialism. Charles van Onselen laid a major part of the intellectual foundations on...
Words: 178350 - Pages: 714