Solutions: Program 1: Program 2: //To calculate the Gross salary of an Employee

Size: px
Start display at page:

Download "Solutions: Program 1: Program 2: //To calculate the Gross salary of an Employee"

Transcription

1 Lab 2: Introduction to Computer Programming (ICP) (3:00pm to 4:30pm Computer Lab 3) Rab Nawaz Jadoon (Assistant Professor) Department of Computer Science CIIT, Abbottabad. Dated: ************************************************************************************* Tasks! Write C Programs for the followings! ************************************************************************************* Program 1: Ramsha s basic salary is input through the keyboard. His medical allowance is 40% of basic salary, and house rent allowance is 20% of basic salary. Write a program to calculate his gross salary? Program 2: The distance between two cities (in km.) is input through the keyboard. Write a program to convert and print this distance in meters, feet, inches and centimeters? Program 3: If the marks obtained by a student in five different subjects are input through the keyboard, find out the aggregate marks and percentage marks obtained by the student. Assume that the maximum marks that can be obtained by a student in each subject is 100? Program 4: Temperature of a city in Fahrenheit degrees is input through the keyboard. Write a program to convert this temperature into Centigrade degrees? Program 5: The length & breadth of a rectangle and radius of a circle are input through the keyboard. Write a program to calculate the area & perimeter of the rectangle, and the area & circumference of the circle? Program 6: Two numbers are input through the keyboard into two locations C and D. Write a program to interchange the contents of C and D?

2 Solutions: Program 1: //To calculate the Gross salary of an Employee float bp, ma, hra, grpay; printf( Enter the basic pay of the ramsha ); scanf( %f, &bp); ma=0.4*bp; hra=0.2*bp; grpay=bp+ma+hra; // sum of basic and all allowences printf( \nbasic pay is =%f, bp); printf( \nmedical Allowance is =%f, ma); printf( \ngross Salary is =%f, grpay);? Program 2: //Conversion of Distance float km, m, cm, ft, inch; printf( Enter the distance in Kilometer ); scanf( %f, &km); m= km *1000; cm = m * 100;

3 inch = cm * 2.54; ft = inch / 12; printf( \n Distance in meter = %f, m); printf( \n Distance in centimeter = %f, cm); printf( \n Distance in inches = %f, inch); printf( \n Distance in feet = %f, ft); Program 3: //Calculation of Aggregate and Percentage Marks int m1, m2, m3, m4, m5, aggr; float per; printf( Enter marks in five subjects ); scanf( %d %d %d %d %d, &m1, &m2, &m3, &m4, &m5 ); aggr = m1+m2+m3+m4+m5; per = aggr / 5; printf( \n Aggregate marks =%d, aggr); printf( \n Percentage marks =%f, per);

4 Program 4: //Conversion of Temperature from Fahrenheit to Centigrade. float fr, cent; printf( Enter temperature in (F): ); scanf( %f, &fr); cent = 5.0 / 9.0 * (fr 32); printf( \n temperature in centigrade is = %f, cent); Program 5: // Calculation of Perimeter and Area of Rectangle and Circle. Int length, breadth, radius, area1, perimeter; float area2, circum; printf( Enter Length and breadth of rectangle ); scanf( %d %d, &length, &breadth); area1 = length * breadth; perimeter = 2 * length + 2 * breadth; printf( \n Area of rectangle is = %d, area1); printf( \n Perimeter of rectangle is = %d, perimeter); printf( \nenter radius of the circle ); scanf( %d, &radius);

5 area2 = 3.14b* radius * radius; //area of circle circum = 2 * 3.14 * radius; //circumference of a circle printf( \n Area of Circle is = %f, area2); printf( \n Circumference of circle is = %f, circum); Program 6: //Interchange of contents of two Variables c and d. Int c,d,temp; printf( \nenter the number at C ); scanf( %d, &c); printf( \nenter the number at D ); scanf( %d, &d); temp = c; c = d; d = temp; printf( \n new number at location C= %d, c); printf( \n new number at location D= %d, d);

6 Home assignment! 1. Run all the above programs and practice other programs of the same by own. 2. Lot of practice is required. --- Hope for the best, ready for the worst ---

Arrays in C. Rab Nawaz Jadoon DCS. Assistant Professor. Department of Computer Science. COMSATS IIT, Abbottabad Pakistan

Arrays in C. Rab Nawaz Jadoon DCS. Assistant Professor. Department of Computer Science. COMSATS IIT, Abbottabad Pakistan Arrays in C DCS COMSATS Institute of Information Technology Rab Nawaz Jadoon Assistant Professor COMSATS IIT, Abbottabad Pakistan Introduction to Computer Programming (ICP) Array C language provides a

More information

PROGRAMMING IN C AND C++:

PROGRAMMING IN C AND C++: PROGRAMMING IN C AND C++: Week 1 1. Introductions 2. Using Dos commands, make a directory: C:\users\YearOfJoining\Sectionx\USERNAME\CS101 3. Getting started with Visual C++. 4. Write a program to print

More information

Perimeter, Area, Surface Area, & Volume

Perimeter, Area, Surface Area, & Volume Additional Options: Hide Multiple Choice Answers (Written Response) Open in Microsoft Word (add page breaks and/or edit questions) Generation Date: 11/25/2009 Generated By: Margaret Buell Copyright 2009

More information

LAB 2.1 INTRODUCTION TO C PROGRAMMING

LAB 2.1 INTRODUCTION TO C PROGRAMMING LAB 2.1 INTRODUCTION TO C PROGRAMMING School of Computer and Communication Engineering Universiti Malaysia Perlis 1 1. OBJECTIVES: 1.1 To be able to apply basic rules and structures of C in writing a simple

More information

Volume of Cylinders. Volume of Cones. Example Find the volume of the cylinder. Round to the nearest tenth.

Volume of Cylinders. Volume of Cones. Example Find the volume of the cylinder. Round to the nearest tenth. Volume of Cylinders As with prisms, the area of the base of a cylinder tells the number of cubic units in one layer. The height tells how many layers there are in the cylinder. The volume V of a cylinder

More information

The Next Step. Mathematics Applications for Adults. Book Measurement

The Next Step. Mathematics Applications for Adults. Book Measurement The Next Step Mathematics Applications for Adults Book 14019 Measurement OUTLINE Mathematics - Book 14019 Measurement The Metric System use correct metric units to measure length, volume, capacity, mass,

More information

Decision Control Structure. Rab Nawaz Jadoon DCS. Assistant Professor. Department of Computer Science. COMSATS IIT, Abbottabad Pakistan

Decision Control Structure. Rab Nawaz Jadoon DCS. Assistant Professor. Department of Computer Science. COMSATS IIT, Abbottabad Pakistan Decision Control Structure DCS COMSATS Institute of Information Technology Rab Nawaz Jadoon Assistant Professor COMSATS IIT, Abbottabad Pakistan Introduction to Computer Programming (ICP) Decision control

More information

B. V. Patel Institute of Business Management, Computer & Information Technology, UTU 2013

B. V. Patel Institute of Business Management, Computer & Information Technology, UTU 2013 Information Technology, UTU 203 030000 Fundamentals of Programming Problems to be solved in laboratory Note: Journal should contain followings for all problems given below:. Problem Statement 2. Algorithm

More information

For the test, be sure to show all work! PROBLEMS: ANSWERS: For problems 1 9, simplify the expression ( ) Evaluate if x = -2 and y = 1 8.

For the test, be sure to show all work! PROBLEMS: ANSWERS: For problems 1 9, simplify the expression ( ) Evaluate if x = -2 and y = 1 8. Pre-algebra For the test, be sure to show all work! PROBLEMS: For problems 9, simplify the expression.. 9 ( 7) Ch / Review.. 56 74... 4. 4 7 4. 5. ( 87) + ( ) 5. 6. 6. 7. ( ) + 4 6 5 + 7. Evaluate if x

More information

Lesson 6 Reteach. Perimeter of the base = 14. S. A. = area of the 2 bases + lateral area = = 52 m^.

Lesson 6 Reteach. Perimeter of the base = 14. S. A. = area of the 2 bases + lateral area = = 52 m^. Lesson 6 Reteach Surface Area of Prisms The sum of the areas of all the surfaces, or faces, of a three-dimensional shape is the surface area. Find the surface area of the rectangular prism. The area of

More information

1. Expand and simplify: 9. Determine the area of the triangle. a. 5 b. 2. Simplify: a. ( 3) c. ( 2) d. 4 ( 2) 3. e ( 3) ( 5)

1. Expand and simplify: 9. Determine the area of the triangle. a. 5 b. 2. Simplify: a. ( 3) c. ( 2) d. 4 ( 2) 3. e ( 3) ( 5) Math 08 Final Exam Review. Expand and simplify: (Section.6). Simplify: ( ) ( ) 00 d. ( ) (Section.,.6,.) (Section.,.,.) 6 ( ) ( ) e. 6 6 8 (Section.,.6,.) (Section.,.) ( 6 ) (Section.,.,.). Translate into

More information

REVIEW FOR BASIC MATH SKILLS FINAL EXAM (December 2008) (Basic 4-Function, 10-Key Calculator Allowed No Scientific or Graphing Calculators)

REVIEW FOR BASIC MATH SKILLS FINAL EXAM (December 2008) (Basic 4-Function, 10-Key Calculator Allowed No Scientific or Graphing Calculators) REVIEW FOR BASIC MATH SKILLS FINAL EXAM (December 008) (Basic 4-Function, 0-Key Calculator Allowed No Scientific or Graphing Calculators) In order to be prepared for the final exam, students should be

More information

Structures in C. Rab Nawaz Jadoon DCS. Assistant Professor. Department of Computer Science. COMSATS IIT, Abbottabad Pakistan

Structures in C. Rab Nawaz Jadoon DCS. Assistant Professor. Department of Computer Science. COMSATS IIT, Abbottabad Pakistan Structures in C DCS COMSATS Institute of Information Technology Rab Nawaz Jadoon Assistant Professor COMSATS IIT, Abbottabad Pakistan Introduction to Computer Programming (ICP) Structures in C Which mechanic

More information

12-3 Surface Areas of Pyramids and Cones

12-3 Surface Areas of Pyramids and Cones 18. MOUNTAINS A conical mountain has a radius of 1.6 kilometers and a height of 0.5 kilometer. What is the lateral area of the mountain? The radius of the conical mountain is 1.6 kilometers and the height

More information

2008/11/05: Lecture 15 CMSC 104, Section 0101 John Y. Park

2008/11/05: Lecture 15 CMSC 104, Section 0101 John Y. Park 2008/11/05: Lecture 15 CMSC 104, Section 0101 John Y. Park 1 Topics Review 0f C program Functions - Overview Using Predefined Functions Programmer-Defined Functions Using Input Parameters Function Header

More information

17) 21) xy z ) xy. 23) x - z for x = -3 and z = 5. 24) x - z for x = -5 and z = 2. 25) x - z for x = -3 and z = 5

17) 21) xy z ) xy. 23) x - z for x = -3 and z = 5. 24) x - z for x = -5 and z = 2. 25) x - z for x = -3 and z = 5 Math 081 Worksheet Section 11.1 v01 Spring 2011 Dressler Name Evaluate the expression for the given replacement values. 1) 3 + 4x for x = 4 2) 7 + 3x for x = 7 3) -x - z for x = -4 and z = 7 4) -y - z

More information

Kansas City Area Teachers of Mathematics 2010 KCATM Math Competition

Kansas City Area Teachers of Mathematics 2010 KCATM Math Competition Kansas ity rea Teachers of Mathematics 2010 KTM Math ompetition GEOMETRY N MESUREMENT TEST GRE 5 INSTRUTIONS o not open this booklet until instructed to do so. Time limit: 15 minutes You may use calculators

More information

Lab Session # 1 Introduction to C Language. ALQUDS University Department of Computer Engineering

Lab Session # 1 Introduction to C Language. ALQUDS University Department of Computer Engineering 2013/2014 Programming Fundamentals for Engineers Lab Lab Session # 1 Introduction to C Language ALQUDS University Department of Computer Engineering Objective: Our objective for today s lab session is

More information

Final Exam Review (Revised 3/16) Math MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

Final Exam Review (Revised 3/16) Math MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. Final Exam Review (Revised 3/16) Math 0001 Name MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. Evaluate. 1) 1 14 1) A) 1 B) 114 C) 14 D) undefined

More information

Calculate the area of each figure. Each square on the grid represents a square that is one meter long and one meter wide.

Calculate the area of each figure. Each square on the grid represents a square that is one meter long and one meter wide. CH 3 Test Review Boundary Lines: Area of Parallelograms and Triangles Calculate the area of each figure Each square on the grid represents a square that is one meter long and one meter wide 1 You are making

More information

UNDERSTANDING PROBLEMS AND HOW TO SOLVE THEM BY USING COMPUTERS

UNDERSTANDING PROBLEMS AND HOW TO SOLVE THEM BY USING COMPUTERS UNDERSTANDING PROBLEMS AND HOW TO SOLVE THEM BY USING COMPUTERS INTRODUCTION TO PROBLEM SOLVING Introduction to Problem Solving Understanding problems Data processing Writing an algorithm CONTINUE.. Tool

More information

Area of Polygons And Circles

Area of Polygons And Circles Name: Date: Geometry 2011-2012 Area of Polygons And Circles Name: Teacher: Pd: Table of Contents DAY 1: SWBAT: Calculate the area and perimeter of Parallelograms and Triangles Pgs: 1-5 HW: Pgs: 6-7 DAY

More information

Chapter 5: Programming in Java

Chapter 5: Programming in Java Chapter 5: Programming in Java Practice Questions ----------------------------->Objective-Type Questions

More information

Laboratory 2: Programming Basics and Variables. Lecture notes: 1. A quick review of hello_comment.c 2. Some useful information

Laboratory 2: Programming Basics and Variables. Lecture notes: 1. A quick review of hello_comment.c 2. Some useful information Laboratory 2: Programming Basics and Variables Lecture notes: 1. A quick review of hello_comment.c 2. Some useful information 3. Comment: a. name your program with extension.c b. use o option to specify

More information

Unit 9 Study Guide. Multiple Choice (2 points) Identify the choice that best completes the statement or answers the question.

Unit 9 Study Guide. Multiple Choice (2 points) Identify the choice that best completes the statement or answers the question. Unit 9 Study Guide Multiple hoice (2 points) Identify the choice that best completes the statement or answers the question. Find the perimeter of each rectangle. 1. 38 m 18 m a. 684 m c. 56 m b. 94 m d.

More information

Object Oriented Programming 2012

Object Oriented Programming 2012 1. Write a program to display the following output using single cout statement. Maths = 90 Physics =77 Chemestry =69 2. Write a program to read two numbers from the keyboard and display the larger value

More information

Volume. 4. A box in the shape of a cube has a volume of 64 cubic inches. What is the length of a side of the box? A in B. 16 in. C. 8 in D.

Volume. 4. A box in the shape of a cube has a volume of 64 cubic inches. What is the length of a side of the box? A in B. 16 in. C. 8 in D. Name: ate: 1. In the accompanying diagram, a rectangular container with the dimensions 10 inches by 15 inches by 20 inches is to be filled with water, using a cylindrical cup whose radius is 2 inches and

More information

Answer Section. Honors Geometry Final Study Guide 2013 Solutions and Section References 1. ANS: 900

Answer Section. Honors Geometry Final Study Guide 2013 Solutions and Section References 1. ANS: 900 Honors Geometry Final Study Guide 2013 Solutions and Section References Answer Section 1. ANS: 900 2. ANS: 6300 3. ANS: B 4. ANS: x = 111, y = 64 5. ANS: 45 6. ANS: 110 7. ANS: REF: 6-2 Properties of Parallelograms

More information

Object Oriented Programming Using C ++ Page No. : 1. ASSIGNMENT SHEET WITHOUT USING OBJECT AND CLASSES

Object Oriented Programming Using C ++ Page No. : 1. ASSIGNMENT SHEET WITHOUT USING OBJECT AND CLASSES Object Oriented Programming Using C ++ Page No. : 1. ASSIGNMENT SHEET WITHOUT USING OBJECT AND CLASSES 1. Write a program to calculate the sum of two numbers using function. 2. Write a program to calculate

More information

Measurement and Geometry MEASUREMENT AND GEOMETRY

Measurement and Geometry MEASUREMENT AND GEOMETRY MEASUREMENT AND GEOMETRY The following ten California mathematics academic content standards from the strand are assessed on the CAHSEE b 17 test questions and are represented in this booklet b 5 released

More information

BCA-105 C Language What is C? History of C

BCA-105 C Language What is C? History of C C Language What is C? C is a programming language developed at AT & T s Bell Laboratories of USA in 1972. It was designed and written by a man named Dennis Ritchie. C seems so popular is because it is

More information

Woodland Community College: Math practice Test

Woodland Community College: Math practice Test Woodland Community College: Math practice Test Pre algebra Math test The following problems are recommended practice problems for the pre-algebra section of the placement test. Some of the problems may

More information

PDS Lab Section 16 Autumn Tutorial 1. Unix Commands pwd The pwd command displays the full pathname of the current directory.

PDS Lab Section 16 Autumn Tutorial 1. Unix Commands pwd The pwd command displays the full pathname of the current directory. PDS Lab Section 16 Autumn-2018 Tutorial 1 Unix Commands pwd The pwd command displays the full pathname of the current directory. pwd mkdir The mkdir command creates a single directory or multiple directories.

More information

Geometry. Geometry is the study of shapes and sizes. The next few pages will review some basic geometry facts. Enjoy the short lesson on geometry.

Geometry. Geometry is the study of shapes and sizes. The next few pages will review some basic geometry facts. Enjoy the short lesson on geometry. Geometry Introduction: We live in a world of shapes and figures. Objects around us have length, width and height. They also occupy space. On the job, many times people make decision about what they know

More information

Subject: Computer Science

Subject: Computer Science Subject: Computer Science Topic: Data Types, Variables & Operators 1 Write a program to print HELLO WORLD on screen. 2 Write a program to display output using a single cout statement. 3 Write a program

More information

Chapter Test Form A. 173 Holt Geometry. Name Date Class. 1. Find the area of the triangle.

Chapter Test Form A. 173 Holt Geometry. Name Date Class. 1. Find the area of the triangle. Form A 1. Find the area of the triangle. 6. A square has a perimeter of 8 inches. Find the area of the square. cm 7. Find the circumference of C in terms of.. Find the area of the parallelogram. 11 cm

More information

Intro to Computer Programming (ICP) Rab Nawaz Jadoon

Intro to Computer Programming (ICP) Rab Nawaz Jadoon Intro to Computer Programming (ICP) Rab Nawaz Jadoon DCS COMSATS Institute of Information Technology Assistant Professor COMSATS IIT, Abbottabad Pakistan Introduction to Computer Programming (ICP) What

More information

1. Look carefully at the program shown below and answer the questions that follow.

1. Look carefully at the program shown below and answer the questions that follow. 1. Look carefully at the program shown below and answer the questions that follow. a. What is the name of the class of this program? BillClass b. Identify one variable that holds a String. item c. What

More information

Additional Practice. Name Date Class

Additional Practice. Name Date Class Additional Practice Investigation 1 1. The four nets below will fold into rectangular boxes. Net iii folds into an open box. The other nets fold into closed boxes. Answer the following questions for each

More information

Test Booklet. Subject: MA, Grade: 10 TAKS Grade 10 Math Student name:

Test Booklet. Subject: MA, Grade: 10 TAKS Grade 10 Math Student name: Test Booklet Subject: MA, Grade: 10 TAKS Grade 10 Math 2009 Student name: Author: Texas District: Texas Released Tests Printed: Saturday July 14, 2012 1 The grid below shows the top view of a 3-dimensional

More information

TEST REVIEW: UNIT 8 Surface Area 2018

TEST REVIEW: UNIT 8 Surface Area 2018 Class: Date: TEST REVIEW: UNIT 8 Surface Area 2018 Find the area. The figure is not drawn to scale. 1. 5. Find the area. All lengths are in centimeters. Round answer to the nearest tenth. 2. 6. A can of

More information

The Hyderabad Public School, Begumpet, Hyderabad, A.P

The Hyderabad Public School, Begumpet, Hyderabad, A.P The Hyderabad Public School, Begumpet, Hyderabad, A.P. 500 016 2012-13 Department of Computer Science Class 8 Worksheet 3 1) How many times will the following statement execute? ( ) int a=5; while(a>6)

More information

11.4 CIRCUMFERENCE AND ARC LENGTH 11.5 AREA OF A CIRCLE & SECTORS

11.4 CIRCUMFERENCE AND ARC LENGTH 11.5 AREA OF A CIRCLE & SECTORS 11.4 CIRCUMFERENCE AND ARC LENGTH 11.5 AREA OF A CIRCLE & SECTORS Section 4.1, Figure 4.2, Standard Position of an Angle, pg. 248 Measuring Angles The measure of an angle is determined by the amount of

More information

PRACTICAL LIST FOR ODD SEMESTERS Session (PGDCA/MCA/MSC (CS))

PRACTICAL LIST FOR ODD SEMESTERS Session (PGDCA/MCA/MSC (CS)) GURU JAMBHESHWAR UNIVERSITY OF SCIENCE & TECHNOLOGY, HISAR DIRECTORATE OF DISTANCE EDUCATION PRACTICAL LIST FOR ODD SEMESTERS Session 2015-16 (PGDCA/MCA/MSC (CS)) SEMSTER 1 st Programme: PGDCA/MCA/MSC

More information

CCBC Math 081 Geometry Section 2.2

CCBC Math 081 Geometry Section 2.2 2.2 Geometry Geometry is the study of shapes and their mathematical properties. In this section, we will learn to calculate the perimeter, area, and volume of a few basic geometric shapes. Perimeter We

More information

SPRINGBOARD UNIT 5 GEOMETRY

SPRINGBOARD UNIT 5 GEOMETRY SPRINGBOARD UNIT 5 GEOMETRY 5.1 Area and Perimeter Perimeter the distance around an object. To find perimeter, add all sides. Area the amount of space inside a 2 dimensional object. Measurements for area

More information

MATH STUDENT BOOK. 7th Grade Unit 9

MATH STUDENT BOOK. 7th Grade Unit 9 MATH STUDENT BOOK 7th Grade Unit 9 Unit 9 Measurement and Area Math 709 Measurement and Area Introduction 3 1. Perimeter 5 Perimeter 5 Circumference 11 Composite Figures 16 Self Test 1: Perimeter 24 2.

More information

Relational operators (1)

Relational operators (1) Review-2 Control of flow: ifs & loops How to set them up Where to break to When to use which kind 85-132 Introduction to C-Programming 10-1 Relational operators (1) Relational Operators

More information

CC112 Structured Programming

CC112 Structured Programming Arab Academy for Science and Technology and Maritime Transport College of Engineering and Technology Computer Engineering Department CC112 Structured Programming Lecture 3 1 LECTURE 3 Input / output operations

More information

Advanced Algebra I Simplifying Expressions

Advanced Algebra I Simplifying Expressions Page - 1 - Name: Advanced Algebra I Simplifying Expressions Objectives The students will be able to solve problems using order of operations. The students will identify expressions and write variable expressions.

More information

Lesson 7.3 Understanding the Pythagorean Theorem and Solids

Lesson 7.3 Understanding the Pythagorean Theorem and Solids Lesson 7.3 Understanding the Pythagorean Theorem and Solids For this practice, you may use a calculator. Use 3.14 as an approimation for π. Round your answer to the nearest tenth where necessary. For each

More information

9/9/2017. If ( condition ) { statements ; ;

9/9/2017. If ( condition ) { statements ; ; C has three major decision making instruction, the if statement, the if- statement, & the switch statement. A fourth somewhat less important structure is the one which uses conditional operators In the

More information

NAME DATE PERIOD. Angle and Line Relationships. Classify the pairs of angles shown. Then find the value of x in each figure

NAME DATE PERIOD. Angle and Line Relationships. Classify the pairs of angles shown. Then find the value of x in each figure 11-1 Skills Practice Angle and Line Relationships In the figure at the right, c d and p is a transversal. If m 5 = 110, find the measure of each angle. 1. 6 2. 8 3. 2 4. 4 c 1 2 5 6 d 3 4 7 8 p In the

More information

SUMMER WORK. Skills Review for Students Entering Geometry or Geometry with Trig

SUMMER WORK. Skills Review for Students Entering Geometry or Geometry with Trig SUMMER WORK Name: Skills Review for Students Entering Geometry or Geometry with Trig The following is a review of math skills that you will be expected to apply in your Geometry course next year. Complete

More information

Summer Review for Students entering Algebra

Summer Review for Students entering Algebra Class: Date: Summer Review for Students entering Algebra 08 Multiple Choice Identify the choice that best completes the statement or answers the question. SHOW ALL WORK ON THIS PAPER OR ON ADDITIONAL PAPER..

More information

Case Control Structure. Rab Nawaz Jadoon DCS. Assistant Professor. Department of Computer Science. COMSATS IIT, Abbottabad Pakistan

Case Control Structure. Rab Nawaz Jadoon DCS. Assistant Professor. Department of Computer Science. COMSATS IIT, Abbottabad Pakistan Case Control Structure DCS COMSATS Institute of Information Technology Rab Nawaz Jadoon Assistant Professor COMSATS IIT, Abbottabad Pakistan Introduction to Computer Programming (ICP) Decision control

More information

POLYGONS

POLYGONS POLYGONS 8.1.1 8.1.5 After studying triangles and quadrilaterals, the students now extend their knowledge to all polygons. A polygon is a closed, two-dimensional figure made of three or more non-intersecting

More information

Course 2 Unit 4 Practice

Course 2 Unit 4 Practice Course 2 Unit 4 Practice Lesson 13-1 1. Model with mathematics. Two angles are supplementary. One measures (3x)8 and the other measures 518. a. Draw a pair of adjacent, supplementary angles and label them

More information

Grade 7 Mensuration - Perimeter, Area, Volume

Grade 7 Mensuration - Perimeter, Area, Volume ID : ae-7-mensuration-perimeter-area-volume [1] Grade 7 Mensuration - Perimeter, Area, Volume For more such worksheets visit www.edugain.com Answer the questions (1) A teacher gave a rectangular colouring

More information

12 m. 30 m. The Volume of a sphere is 36 cubic units. Find the length of the radius.

12 m. 30 m. The Volume of a sphere is 36 cubic units. Find the length of the radius. NAME DATE PER. REVIEW #18: SPHERES, COMPOSITE FIGURES, & CHANGING DIMENSIONS PART 1: SURFACE AREA & VOLUME OF SPHERES Find the measure(s) indicated. Answers to even numbered problems should be rounded

More information

Understand the concept of volume M.TE Build solids with unit cubes and state their volumes.

Understand the concept of volume M.TE Build solids with unit cubes and state their volumes. Strand II: Geometry and Measurement Standard 1: Shape and Shape Relationships - Students develop spatial sense, use shape as an analytic and descriptive tool, identify characteristics and define shapes,

More information

Lesson 1 - Area Review Shape Words Formula

Lesson 1 - Area Review Shape Words Formula Lesson 1 - Area Review Shape Words Formula Rectangle The area A of a rectangle is the product of the length and the width w. A = w Parallelogram The area A of a parallelogram is the product of any base

More information

Formatted Output / User IO

Formatted Output / User IO / User IO 1 / 22 / User IO COMP SCI / SFWR ENG 2S03 Natalie Perna Dylan Aspden Department of Computing and Software McMaster University Week 4: Sept 29 - Oct 3 Natalie Perna, Dylan Aspden / User IO 1 /

More information

At the end of this module, the student should be able to:

At the end of this module, the student should be able to: INTRODUCTION One feature of the C language which can t be found in some other languages is the ability to manipulate pointers. Simply stated, pointers are variables that store memory addresses. This is

More information

Skills Practice Skills Practice for Lesson 6.1

Skills Practice Skills Practice for Lesson 6.1 Skills Practice Skills Practice for Lesson.1 Name Date As the Crow Flies Properties of Spheres Vocabulary Define each term in your own words. 1. sphere 2. diameter of a sphere 3. radius of a sphere 4.

More information

Mathematics Placement Assessment

Mathematics Placement Assessment Mathematics Placement Assessment Courage, Humility, and Largeness of Heart Oldfields School Thank you for taking the time to complete this form accurately prior to returning this mathematics placement

More information

SENIOR HIGH MATH LEAGUE April 24, GROUP III Emphasis on GEOMETRY SECTION I: ONE POINT EACH

SENIOR HIGH MATH LEAGUE April 24, GROUP III Emphasis on GEOMETRY SECTION I: ONE POINT EACH SENIOR HIGH MATH LEAGUE TEST A Unless otherwise stated give exact answers. 1 Find the exact area in square inches of an equilateral triangle whose base is of length 10 inches. 2. Give the smallest possible

More information

Basic Skills Review Packet

Basic Skills Review Packet Basic Skills Review Packet A . ADD: + 7 4 4. SUBTRACT: 6 = 7 9. ADD: 6 + 9 =. SUBTRACT: 6 7 = 4 0 8 9. SUBTRACT: 7-9 8 6 6. ADD: 46 7 + 87 94 806 76 674 7. ADD: $ 4.7 47. + 68.60 $ 40.0 $ 40.0 $ 9.0 $

More information

MENSURATION-I (Area & Perimeter) In this chapter, we shall be dealing with plane figures of various shapes finding their sides, perimeters and

MENSURATION-I (Area & Perimeter) In this chapter, we shall be dealing with plane figures of various shapes finding their sides, perimeters and INTRODUCTION In this chapter, we shall be dealing with plane figures of various shapes finding their sides, perimeters and areas. AREA The area of any figure is the amount of surface enclosed within its

More information

UNIT 3 - MEASUREMENT & PROPORTIONAL REASONING TEST

UNIT 3 - MEASUREMENT & PROPORTIONAL REASONING TEST Class: Date: UNIT 3 - MEASUREMENT & PROPORTIONAL REASONING TEST Multiple Choice Identify the choice that best completes the statement or answers the question. 1. When designing a building, you must be

More information

Chapter-9 INPUT AND OUTPUT OPERATORS

Chapter-9 INPUT AND OUTPUT OPERATORS Chapter-9 INPUT AND OUTPUT OPERATORS Introduction The input output operations are done using library functions cin and cout objects of the class iostream. Using the standard input and output library, we

More information

Common grade: ASTM A36..min. 36,000 yield / min. 58,000 tensile. Size Weight (lbs.) Weight (lbs.)

Common grade: ASTM A36..min. 36,000 yield / min. 58,000 tensile. Size Weight (lbs.) Weight (lbs.) Bar Size Angle Common grade: ASTM A36..min. 36,000 yield / min. 58,000 tensile Size Weight (lbs.) Weight (lbs.) A B C per Foot per 20' 1/2 x 1/2 x 1/8 0.38 7.6 5/8 x 5/8 x 1/8 0.48 9.6 3/4 x 3/4 x 1/8

More information

MA 511: Computer Programming Lecture 2: Partha Sarathi Mandal

MA 511: Computer Programming Lecture 2: Partha Sarathi Mandal MA 511: Computer Programming Lecture 2: http://www.iitg.ernet.in/psm/indexing_ma511/y10/index.html Partha Sarathi Mandal psm@iitg.ernet.ac.in Dept. of Mathematics, IIT Guwahati Semester 1, 2010-11 Largest

More information

Babaria Institute of Technology Computer Science and Engineering Department Practical List of Object Oriented Programming with C

Babaria Institute of Technology Computer Science and Engineering Department Practical List of Object Oriented Programming with C Practical -1 Babaria Institute of Technology LEARN CONCEPTS OF OOP 1. Explain Object Oriented Paradigm with figure. 2. Explain basic Concepts of OOP with example a. Class b. Object c. Data Encapsulation

More information

SHARDA UNIVERSITY SCHOOL OF ENGINEERING & TECHNOLOGY Mid Term Examination, (Odd Term, ) SOLUTION

SHARDA UNIVERSITY SCHOOL OF ENGINEERING & TECHNOLOGY Mid Term Examination, (Odd Term, ) SOLUTION SHARDA UNIVERSITY SCHOOL OF ENGINEERING & TECHNOLOGY Mid Term Examination, (Odd Term, 2016-17) SOLUTION Program: B. Tech. Branch: All Term:I Subject: Logic Building and Problem Solving Using C Paper Code:

More information

Unit 5, Lesson 1: Inputs and Outputs

Unit 5, Lesson 1: Inputs and Outputs Unit 5, Lesson 1: Inputs and Outputs 1. Given the rule: Complete the table for the function rule for the following input values: input 0 2 4 6 8 10 output 2. Here is an input-output rule: Complete the

More information

VARIABLE, OPERATOR AND EXPRESSION [SET 1]

VARIABLE, OPERATOR AND EXPRESSION [SET 1] VARIABLE, OPERATOR AND EXPRESSION Question 1 Write a program to print HELLO WORLD on screen. Write a program to display the following output using a single cout statement. Subject Marks Mathematics 90

More information

Lesson 10T ~ Three-Dimensional Figures

Lesson 10T ~ Three-Dimensional Figures Lesson 10T ~ Three-Dimensional Figures Name Period Date Use the table of names at the right to name each solid. 1. 2. Names of Solids 3. 4. 4 cm 4 cm Cone Cylinder Hexagonal prism Pentagonal pyramid Rectangular

More information

Geometry - Additional Questions: Sheet 1

Geometry - Additional Questions: Sheet 1 Geometry - Additional Questions: Sheet 1 Parallel Lines Eercises (G3E) e g f h L1 L1 L2 1.) How many angles do you need to know in order to replace the letters in the diagram to the left? b c a d L2 2.)

More information

3 The L oop Control Structure

3 The L oop Control Structure 3 The L oop Control Structure Loops The while Loop Tips and Traps More Operators The for Loop Nesting of Loops Multiple Initialisations in the for Loop The Odd Loop The break Statement The continue Statement

More information

Math 6 Unit 9 Notes: Measurement and Geometry, Area/Volume

Math 6 Unit 9 Notes: Measurement and Geometry, Area/Volume Math 6 Unit 9 Notes: Measurement and Geometry, rea/volume erimeter Objectives: (5.5) The student will model formulas to find the perimeter, circumference and area of plane figures. (5.6) The student will

More information

11.6 Start Thinking Warm Up Cumulative Review Warm Up

11.6 Start Thinking Warm Up Cumulative Review Warm Up 11.6 Start Thinking The diagrams show a cube and a pyramid. Each has a square base with an area of 25 square inches and a height of 5 inches. How do the volumes of the two figures compare? Eplain your

More information

Free Response. Test A. 1. What is the estimated area of the figure?

Free Response. Test A. 1. What is the estimated area of the figure? Test A 1. What is the estimated area of the 6. An 8.5 in. by 11 in. sheet of paper is enlarged to make a poster by doubling its length and width. What is the new perimeter? 7. How does the area of a square

More information

TAKS Mathematics Practice Tests Grade 6, Test B

TAKS Mathematics Practice Tests Grade 6, Test B Question TAKS Objectives TEKS Student Expectations 1 Obj. 4 The student will demonstrate an uses of measurement. (6.8) (A) estimate measurements and evaluate reasonableness of results. 2 Obj. 3 The student

More information

Geometry Review Chapter 10: Volume PA Anchors: A3; B2; C1. 1. Name the geometric solid suggested by a frozen juice can.

Geometry Review Chapter 10: Volume PA Anchors: A3; B2; C1. 1. Name the geometric solid suggested by a frozen juice can. Geometry Review Chapter 10: Volume PA Anchors: A; B2; C1 1. Name the geometric solid suggested by a frozen juice can. 2. Name the geometric solid suggested by a beach ball.. Name the geometric solid suggested

More information

Name Date Class. 1. What is the volume of a cube whose side length measures 21 cm? Show your thinking.

Name Date Class. 1. What is the volume of a cube whose side length measures 21 cm? Show your thinking. Name Date Class 1. What is the volume of a cube whose side length measures 21 cm? Show your thinking. 2. The volume of a cube is 13,824 mm 3. What is the side length of the cube? Show your thinking. 3.

More information

SENIOR HIGH MATH LEAGUE April 24, GROUP IV Emphasis on TRIGONOMETRY

SENIOR HIGH MATH LEAGUE April 24, GROUP IV Emphasis on TRIGONOMETRY SENIOR HIGH MATH LEAGUE TEST A Write all radical expressions in simplified form and unless otherwise stated give exact answers. 1. Give the exact value for each of the following where the angle is given

More information

4*4*4 2. What is the output of the following flowchart for the values given below: (25 p)

4*4*4 2. What is the output of the following flowchart for the values given below: (25 p) Samples 1. Design a pseudocode that computes x n. Prompt the user to enter the value of x and n from keyboard. (25 p) Ex: Sample input for 4 and 3 your design should calculate 4 3 4*4*4 2. What is the

More information

Mini-Lecture 4.1 Introduction to Decimals

Mini-Lecture 4.1 Introduction to Decimals Mini-Lecture 4.1 Introduction to Decimals 1. Identify place value for a decimal number. 2. Write decimals in words.. Write decimals in standard form. 4. Write decimals as fractions. 5. Write a fraction

More information

Read, write, order and compare numbers up to and determine the value of each digit. Round any whole number to a required degree of accuracy

Read, write, order and compare numbers up to and determine the value of each digit. Round any whole number to a required degree of accuracy Autumn Term Area Year 6 Year 5 Number and place value Addition Multiplication and division up to 10 000 000 and determine the value of each digit Round any whole number to a required degree of accuracy

More information

Brunswick School Department: Grade 5

Brunswick School Department: Grade 5 Understandings Questions Mathematics Lines are the fundamental building blocks of polygons. Different tools are used to measure different things. Standard units provide common language for communicating

More information

PESIT Bangalore South Campus Hosur Road (1km before Electronic City), Bengaluru Department of Basic Science and Humanities

PESIT Bangalore South Campus Hosur Road (1km before Electronic City), Bengaluru Department of Basic Science and Humanities SOLUTION OF CONTINUOUS INTERNAL EVALUATION TEST -1 Date : 27-02 2018 Marks:60 Subject & Code : Programming in C and Data Structures- 17PCD23 Name of faculty : Dr. J Surya Prasad/Mr. Naushad Basha Saudagar

More information

Excel Math Glossary Fourth Grade

Excel Math Glossary Fourth Grade Excel Math Glossary Fourth Grade Mathematical Term [Lesson #] TE Page # A acute angle Acute Angle an angle that measures less than 90º [Lesson 78] 187 Addend any number being added [Lesson 1] 003 AM (ante

More information

Math Mealy Mountain Collegiate. Sample Midterm Exam. Name:

Math Mealy Mountain Collegiate. Sample Midterm Exam. Name: Math 2202 Mealy Mountain Collegiate Sample Midterm Exam Name: Formulas Square Rectangle A = s 2 A = l x w P 2l 2 w Triangle C 2 r A b h 2 Circle A r 2 C d or Cube Rectangle Prism SA = 6s 2 SA =2(l x w)+2(lxh)+2(wxh)

More information

Name: Date: Class: Honors Geometry Advancement Practice (Part 2)

Name: Date: Class: Honors Geometry Advancement Practice (Part 2) Name: Date: lass: Honors Geometry Advancement Practice (Part 2) Part 1 Multiple hoice: Identify the choice that best completes the statement or answers the question. Place your answer on the Scantron sheet

More information

GRADE 5. Mathematics. Administered April 2018 RELEASED

GRADE 5. Mathematics. Administered April 2018 RELEASED STAAR State of Texas Assessments of Academic Readiness GRADE 5 Administered April 2018 RELEASED Copyright 2018, Texas Education Agency. All rights reserved. Reproduction of all or portions of this work

More information

Essentials. Week by. Week. Mathmania. Algebraically Speaking. Investigate Data. Solve It!

Essentials. Week by. Week. Mathmania. Algebraically Speaking. Investigate Data. Solve It! Week by Week MATHEMATICS Essentials The surface asea, SA, of a sphere is found using the formula SA πr, where r is the radius of the sphere. Find the surface area of a glass ball with a radius of. inches.

More information

Rising Geometry Students! Answer Key

Rising Geometry Students! Answer Key Rising Geometry Students! Answer Key As a 7 th grader entering in to Geometry next year, it is very important that you have mastered the topics listed below. The majority of the topics were taught in Algebra

More information

CHAPTER 12. Extending Surface Area and Volume

CHAPTER 12. Extending Surface Area and Volume CHAPTER 12 Extending Surface Area and Volume 0 Learning Targets Students will be able to draw isometric views of three-dimensional figures. Students will be able to investigate cross-sections of three-dimensional

More information

INDEX. Sl. No. Programs Page No. Procedure 2. 1 To check whether person is eligible for vote or not. 2 To find the given number is even or odd 6-8

INDEX. Sl. No. Programs Page No. Procedure 2. 1 To check whether person is eligible for vote or not. 2 To find the given number is even or odd 6-8 INDEX Sl. No. Programs Page No. Procedure 2 1 To check whether person is eligible for vote or not 3-5 2 To find the given number is even or odd 6-8 3 To find the given year is leap year or not 9-11 4 To

More information