THE UNIVERSITY OF TRINIDAD & TOBAGO



Similar documents
THE UNIVERSITY OF TRINIDAD & TOBAGO FINAL ASSESSMENT/EXAMINATIONS DECEMBER 2012

THE UNIVERSITY OF TRINIDAD & TOBAGO

THE UNIVERSITY OF TRINIDAD & TOBAGO

THE UNIVERSITY OF TRINIDAD & TOBAGO

FINAL ASSESSMENT/EXAMINATION JULY 2015 PLEASE READ ALL INSTRUCTIONS CAREFULLY BEFORE YOU BEGIN THIS EXAMINATION

Analysis One Code Desc. Transaction Amount. Fiscal Period

Note: Non JCQ awarding bodies have their own reporting forms and these would be used where appropriate.

How Can Fleets Control Mounting Fuel Costs? Effective fuel management requires purchase controls and driver behavior modification.

The Changing Relationship Between the Price of Crude Oil and the Price At the Pump

ALGORITHMS AND FLOWCHARTS. By Miss Reham Tufail

York County Department of Emergency Services Communications Division

Management Information Systems 260 Web Programming Fall 2006 (CRN: 42459)

SYLLABUS: MKT , Monday evening 4:00-6:30pm; BU124 Spring Semester, 2012

ACCT W Advanced Managerial Accounting Spring Office Hours: Mon - 1 PM to 6 PM (BA 122 or UCD, every other week, appointment recommended)

C A R I B B E A N E X A M I N A T I O N S REPORT ON CANDIDATES S WORK IN THE CARIBBEAN SECONDARY EDUCATION CERTIFICATE EXAMINATION MAY/JUNE 2012

Programme title Minimum entry requirements Additional information

AT&T Global Network Client for Windows Product Support Matrix January 29, 2015

Why SWN Choose Natural Gas Vehicles? Natural Gas Summit Austin, TX. October 23 rd 2014 Eddie Murray. Texas Railroad Commission

Malpractice Policy BMAT

BADM 260 C Course Outline Introduction to Finance. Winter Randy Nicholls, CA MC Randy.nicholls@rdc.ab.ca

Boston Traffic Management Center Activity Report for FY 2013 Real-time Traffic Signal Adjustments

Proposal to Reduce Opening Hours at the Revenues & Benefits Coventry Call Centre

Instructor Özgür ZEYDAN (PhD) CIV 112 Computer Programming

********** An short and simple explanation of how oil is converted into gasoline and then brought to you, the consumer.

MBA Teaching Note Net Present Value Analysis of the Purchase of a Hybrid Automobile 1

FACULTY OF MANAGEMENT COST ACCOUNTING MGT 3130 Y SPRING 2016

Getting Started A guide for exams officers. Cambridge for. exams officers

Welcome to Introduction to programming in Python

ENVIRONMENTAL SCIENCE LAB (FOR MAJORS) ESCI ) Teach practical skills for use in the lab and field.

UPCOMING PROGRAMMES/COURSES APRIL, 2014 MARCH, 2015 (MIND KINGSTON & MANDEVILLE CAMPUSES)

Notes on Algorithms, Pseudocode, and Flowcharts

Algorithm & Flowchart & Pseudo code. Staff Incharge: S.Sasirekha

Course Guide BTEC Award in Children s Play, Learning & Development

ESCI 386 IDL Programming for Advanced Earth Science Applications Lesson 6 Program Control

3 LEGS OF THE MOTOR FUEL INDUSTRY

PETROLEUM WATCH September 16, 2011 Fossil Fuels Office Fuels and Transportation Division California Energy Commission

COMPARISON OF FIXED & VARIABLE RATES (25 YEARS) CHARTERED BANK ADMINISTERED INTEREST RATES - PRIME BUSINESS*

COMPARISON OF FIXED & VARIABLE RATES (25 YEARS) CHARTERED BANK ADMINISTERED INTEREST RATES - PRIME BUSINESS*

Chapter 2: Algorithm Discovery and Design. Invitation to Computer Science, C++ Version, Third Edition

Organize your project in a way that identifies the research questions and methodology you will use.

BTEC STUDENT HANDBOOK

FIN 301 SYLLABUS Corporate Finance Spring 2012

ALGORITHMS AND FLOWCHARTS

PROG0101 Fundamentals of Programming PROG0101 FUNDAMENTALS OF PROGRAMMING. Chapter 3 Algorithms

COURSE INFORMATION. Biology 224 Anatomy & Physiology Spring, 2015

NEW YORK CITY COLLEGE OF TECHNOLOGY/CUNY Computer Systems Technology Department. COURSE: CST2403 C++ Programming Part 1 ( 4 hours, 3 credits )

Executive Briefing: LNG Supply for Marine Vessels

ETA-FEP 001. Fleet Test And Evaluation Procedure

PSYC 3140 (N) Abnormal Psychology Faculty of Health Department of Psychology York University, Winter 2012

Fuel Tanker Online Content Monitoring. Petroleum Products Real Time! Solution for Modern Businesses

Accredited Specimen Mark Scheme

Management 2030 Section B: Introduction to Organizational Behavior Spring 2015

MAN 607 Human Resource Planning and Staffing January 8 - March 12

ENGR 102: Engineering Problem Solving II

Certificate in Insurance (Cert CII)

Business Expense Log. Year of

Flowcharting, pseudocoding, and process design

The Fuel and Vehicle Trends Report January 31, 2014

Create Stoplight charts using Milestones Professional

WHY NOW? GAS? The Design. Nopetro

A Feasibility Study. Steven C. Agee, Ph.D. Shouro Dasgupta, B.S.B. Alexis Caron, B.S.B.

The per-mile Costs of Operating Compressed Natural Gas Trucks. Experience from 16 Million Miles with the Cummins ISX 12G

TESL/TESOL DIPLOMA PROGRAMS VIA TESL/TESOL Diploma Programs are recognized by TESL CANADA

Malpractice Policy. 1 Overview of Policy

Human Resources Management System Pay Entry Calendar

The Journal of Science Policy & Governance

COURSE INFORMATION. Biology 224 Anatomy & Physiology Spring, 2014

WHITE MOUNTAINS COMMUNITY COLLEGE 2020 Riverside Drive, Berlin, NH COURSE SYLLABUS. Introduction to Psychology.

BUS 394 (001): Entrepreneurial Finance Winter Session 2016 Course Outline

SOC 101 Introduction to Sociology Social & Behavioral Sciences Department

Residential Heating Oil Prices: What Consumers Should know

Overview of the Heavy-Duty National Program. Need to Reduce Fuel Consumption and Greenhouse Gases from Vehicles

Exam day checklist 1. Before the exam starts and

Scots College. Assessment handbook -Short version- (NCEA and IB Diploma) Students and Parents

Special GREYSTONE COLLEGE Prices for Turkish Students

New Fuel Economy and Environment Labels for a New Generation of Vehicles

Specimen 2015 am/pm Time allowed: 1hr 30mins

Third Quarter 2015 Marketing Overview. Alan H. Shaw Executive Vice President and Chief Marketing Officer

PSYCHOLOGY 2322 W01 Social Psychology

What does the Dow Jones-UBS Commodity Index track?

Merchandising Operations

Academic Calendars. Term I (20081) Term II (20082) Term III (20083) Weekend College. International Student Admission Deadlines

Required Text Schacter, Daniel L. Introducing Psychology with Updates on DSM-5 (2nd ed.). Worth Publishers. (2014).

How To Fuel A Natural Gas Vehicle

Case 2:08-cv ABC-E Document 1-4 Filed 04/15/2008 Page 1 of 138. Exhibit 8

Translating to Java. Translation. Input. Many Level Translations. read, get, input, ask, request. Requirements Design Algorithm Java Machine Language

STRATEGIC BUSINESS PLAN QUARTERLY KPI REPORT FOR: FISCAL YEAR 2015, QUARTER 2 (JULY THROUGH DECEMBER 2014)

Special Report. B&O Tax Pyramiding in. Briefly

Ed2go Online Courses FAQs and Staff Manual

MPM. Customer Service Representative Training. Class C Fuel Spill Handling

PHIL 2244: Engineering Ethics (3 credits)

Transcription:

THE UNIVERSITY OF TRINIDAD & TOBAGO FINAL ASSESSMENT/EXAMINATIONS DECEMBER 2013 Course Code and Title: Reasoning and Logic for Computing Programme: Diploma in Software Engineering Date and Time: 12 December 2013 (9:00 am 12:00 pm) Duration: 3HRS PLEASE READ ALL INSTRUCTIONS CAREFULLY BEFORE YOU BEGIN THIS EXAMINATION Instructions to Candidates 1. This paper has 5 pages and 9 questions. 2. You are required to answer ALL questions in each Section 3. The use of white off agents is PROHIBITED 4. The paper is graded out of 100 Please return question paper with the Answer script Key Examination Protocol 1. Students please note that academic dishonesty (or cheating) includes but is not limited to plagiarism, collusion, falsification, replication, taking unauthorised notes or devices into an examination, obtaining an unauthorised copy of the examination paper, communicating or trying to communicate with another candidate during the examination, and being a party to impersonation in relation to an examination. 2. The above mentioned and any other actions which compromise the integrity of the academic evaluation process will be fully investigated and addressed in accordance with UTT s academic regulations. 3. Please be reminded that speaking without the Invigilator s permission is NOT allowed. The University of Trinidad & Tobago Page 1 of 5

Section 1 Reasoning and Logic (25 marks) 1. Given that A = TRUE B = TRUE C = FALSE What will the following expressions evaluate to? a.!(a && B) C b. (B C) && (C && A) c. A && (C (!B && B) d. (!A!C) (C &&!B) e. A && (!C && (B!B)) f. A && (B C) (6 marks) 2. For each group of statements, give the final value of y if the initial value of x is 1. a) b) while (x is less than 5) if (x is odd) y = x + y + 12 else if (x is even) endif x= x + 1 endwhile y = y x 3 while (x is less than 10) if (x is less than 6) else endif x = x + 2 endwhile y = x * 3 if (x is greater than or equal to 6) y = y + x + 25 (6 marks) The University of Trinidad & Tobago Page 2 of 5

3. a) List the steps of the Program Development Life Cycle. (2 marks) b) What is the difference between an algorithm and pseudocode? (2 marks) c) What is the difference between decision control statement and (2 marks) a repetition control statement? 4. An insurance company is considering rules to assist in determining whether or not to insure a vehicle. The possible criteria to be used include checks to determine if the vehicle was involved in more than 5 accidents, if the type of vehicle is a taxi or maxi taxi, and if the vehicle is 10 years or older. The possible actions considered include refusing to insure the vehicle, insuring the vehicle with a standard rate plus a discount and / or insuring the vehicle with a special rate with no discounts. Using the above information prepare a decision table to guide insurance agents when insuring vehicles for customers. Justify the rules derived in the decision table. (7 Marks) The University of Trinidad & Tobago Page 3 of 5

Section 2 Algorithms and Pseudocode (20 marks) 5. Write an algorithm to report the contents of a compressed-gas cylinder based on the first letter of the cylinder s color. The algorithm reads a character representing the observed color of the cylinder B or b for brown or G or g for green or O or o for orange or Y or y for yellow, and outputs the type of gas stored in the cylinder. Cylinder colors and associated contents are represented in a table as follows. Cylinder Color brown green orange yellow Type of Gas carbon monoxide oxygen ammonia hydrogen (8 marks) 6. The production supervisor at the Super Oil Company refinery is responsible for monitoring the gasoline supply in a storage tank. The supervisor must be alerted when the supply of gasoline in the tank falls below 10% of the tank s 80,000-barrel storage capacity. Although the supervisor records the contents of the tank in terms of a number of barrels, the pump that is used to fill tanker trucks gives its measure in gallons. In the petroleum industry 1 barrel = 42 U.S. gallons. Write pseudocode logic that will alert the supervisor when the supply of gasoline in the tank falls below 10% of the tank s 80,000-barrel storage capacity. State any assumptions you make. (12 marks) The University of Trinidad & Tobago Page 4 of 5

Section 3 Programming (55 marks) 7. This question is based on the problem presented in question six (6) above. Convert the pseudocode developed in question six (6) above to a C++ program. Be sure to include all syntax elements and comments where necessary. (20 marks) 8. Write a C++ program, with full syntax, to determine the sum and product of the first five (5) terms of the geometric progression 6 18 54... (15 marks) 9. The array gross_sales, shown below, contains sales revenue for the period January June 2013. Write a C++ program, with full syntax, to: a) prompt the user to populate the array with the data as shown below b) compute Value Added Tax (VAT = 15%) and net sales for each period in the array. c) Output the VAT and net sales to the screen Jan Feb Mar Apr May Jun gross_sales 15,275.00 32,300.00 9,550.25 4,234.10 8,980.00 17,657.50 0 1 2 3 4 5 (20 marks) END OF EXAM The University of Trinidad & Tobago Page 5 of 5