Assessment Brief

  • Uploaded by: Zia ur Rehman
  • 0
  • 0
  • May 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Assessment Brief as PDF for free.

More details

  • Words: 736
  • Pages: 4
Assessment Brief 1.

Unit and assessment details

Course Title: Unit Name: Assessor: Internal Verifier:

HND Computing Object Oriented Programming Mr. Saadat Ali Asad Mr. Adil Raza

Assessment Title: Use basic object oriented programming concepts Assessment Method: Report + Implementation Assessing in: Group of 2 Number of words: Maximum 35 pages Outcome covered: 1 Issue Date: Due Date:

April 23, 2009 May 10, 2009

College No

Learner Name

Learner Signature

Learner’s Declaration: I confirm that the work submitted for this assignment is my own. Date: 2.

Outcome Covered Outcome

1

Description Use basic object oriented programming concepts

Note: Attach this page as first page of your report.

Purpose and Aim

3.

The aim of this assignment is to provide a learner an opportunity to apply the knowledge and skills gained in class to analyze and design a real world object oriented solution to the problems.

Scenarios

4.

Apply Object Oriented concepts and solve all the given problems.

4.1

Problem No.1

Imagine a tollbooth at a motorway. Cars, trucks, coasters, wagons, containers and oil tankers are passed from this booth. When cars, wagons and coasters are passed they pay Rs100/- and when trucks, containers and oil tankers are passed they pay Rs 200/-. Keep the record that how many cars, wagons, coasters, containers, trucks and oil tankers are passed and how much total money is collected for one day. Model this tollbooth with a class. Design the data members that hold the total no of cars, wagons, coasters, trucks, containers and oil tankers are passed and a data member that hold the total amount of money. Finally design the member functions that will perform the function of counting and totaling of money. Cars, coasters, wagons =100 Containers, trucks, oil tankers =200 in one day total number of cars …………………………... coasters …………………………… wagons …………………………… containers …………………………… trucks …………………………… oil tankers Total amount of cars ……………..coasters ……………..wagons ……………..containers …………….. trucks ………………oil tankers

4.2

Problem No.2

Design a class that holds the data member to record the input in the form of 7/9 from the user and output is also in the same form. Design the member functions that will add the two fractions and also subtract the two fractions. Write a main program that allows the use to input the two fractions repeatedly and then display their sum and difference. Hints: For Addition:

a / b + c / d = (a*d + b*c) / (b*d) a / b - c / d = (a*d – b*c) / (b*d) Calculate the fowling 7/9 + 6/5 = 3/5 + 7/2 = Objects 1st object as function 2nd object as argument 3rd object as result Or 2 object as argument And one for storage of result

4.3

Problem No.3

class employee { private: char name[30]; long num; public: void get() { cout<<”\n Enter your name: “; cin>>name; cout<<”\n Enter employee number:”; cin>>num; } void show() { cout<<”\n Name is: “<
5.

Tasks • • •

Create a class for each of the given problem. Identify the data members and member function clearly. In problem no.3 apply the inheritance.

6. Grading Criteria P Identify the various elements M Use UML # in object based program for # identification 1 any two problems 1 various elements.

P Develop # program 2 oriented concepts

for of

the client side M Use standard coding by using object # notations programming 2

General Instructions: • • • • • •

The copy of this assignment brief should attach with report as annexure. The group meetings minutes should attach with this report. The call of meeting and agenda of meeting should be attached with report. Books, online resources and lecture material can be used for writing the report. Proper reference should be given in the Harvard Style. The college has strict penalty for plagiarism and the assignment will be cancelled if the assignment is observed for this.

Internal Verifier

Assessor

Related Documents

Assessment Brief
May 2020 10
Assessment
April 2020 31
Assessment
April 2020 23
Assessment
May 2020 30
Assessment
October 2019 54
Assessment
December 2019 54

More Documents from ""