introduction to computing web viewthe objective of this assignment is to enable students not only to...

38
Module Handbook CS & IT Superior University, Lahore Introduction to Computing

Upload: hoangtruc

Post on 18-Feb-2018

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Introduction to Computing Web viewThe objective of this assignment is to enable students not only to use Microsoft word and power point but to enable them to conduct research surveys,

Module Handbook

CS & IT Superior University, Lahore

Introduction to Computing

Page 2: Introduction to Computing Web viewThe objective of this assignment is to enable students not only to use Microsoft word and power point but to enable them to conduct research surveys,

Lesson Plan Guideline

Module Contents

Sr# Contents: Page#

1. Staff and course delivery arrangements 03

2. Course Introduction 04

3. Course objectives 05

4. Students gain 05

5. Teaching and learning methodology 06

6. Assessment details and policies 06

7. Lecture plan 10

8. Academic Disciplinary Policies 13

9. Assessment Grades & Percentages 14

10. Sample Midterm Paper 15

11. Sample Final Paper 19

2

Page 3: Introduction to Computing Web viewThe objective of this assignment is to enable students not only to use Microsoft word and power point but to enable them to conduct research surveys,

Lesson Plan Guideline

1. STAFF AND COURSE DELIVERY ARRANGEMENTS

1.1 Teaching Staff

Module Tutor

Name Syed Tanweer Shah Bukhari

Room and Building Faculty Office CSIT, University Campus

Phone Number 0423-5330361-336

Email [email protected]

Consultation Hours Any time other than class timings

1.2 Course Delivery Arrangements

Course Name and Code: Introduction to Computing

Credit Hours: 3

Lecture Duration: 3 hours per week for the 15 week semester

Lecture Day:

Time:

Venue: Superior University, Raiwind road, Lahore

3

Page 4: Introduction to Computing Web viewThe objective of this assignment is to enable students not only to use Microsoft word and power point but to enable them to conduct research surveys,

Lesson Plan Guideline

2. COURSE INTRODUCTION

Introduction to Computing provides a fundamental understanding of computers and information technology. This course is an introduction to computing environments, general application software, computing hardware, networks and an overview of the integrated software packages most often used in the workplace.

This course also provides an elementary grasp to understand relationships between computation, problem solving, and programming using high-level language.

Program: BCS/BTCSemester: 1 Session: 2013-2017Follow Up: Programming FundamentalsPre-requisites: NoneReference Books

Text Book:

Computer Science: A Structured Programming Approach using C++ by Behrouz A. Forouzan, Richard F. Gilberg

C++ How to Program , 4th Edition by by Deitel and Deitel

Discovering Computers 2010 - Shelly, Cashman and Vermaat

C++ Programming: Program Design Including Data Structures Problem solving in C++ by D.S. Malik

3. COURSE OBJECTIVE

The objective of this course is to introduce students to current common computer hardware and software and develop programming skills in students from problem analysis to program design.

4

Page 5: Introduction to Computing Web viewThe objective of this assignment is to enable students not only to use Microsoft word and power point but to enable them to conduct research surveys,

Lesson Plan Guideline

4. STUDENT GAIN

Classification Topics

Knowledge and Comprehension

The course will enable students to develop research survey reports using MS Word, create presentations using MS Power Point and conduct data analysis using MS Excel.

Understand fundamentals of programming such as variables, conditionals and loops.

Application and Skills

Introduce students to current common computer hardware and software and enable them to develop skills in the use of the basic productivity applications to support their study in all academic areas and in their professional lives after graduation.

To develop programming skills in students from problem analysis to program design.

Analysis and Synthesis

Able to relate different computer science concepts with the real world situations.

This course will develop and enhance the logic building capabilities of students and enable them to approach problems and write programs.

5. TEACHING AND LEARNING METHODOLOGY

5.1 Lectures:

1. Lectures seek to make accessible to students the module and program aims in addition to crucial background and factual knowledge.

2. Interactive Lectures will introduce the concepts, theories, and application of the subject using relevant examples.

3. The lectures will also be used to discuss the problems of programming in general and the relevant problem solving theories.

4. Students will be asked questions, often in the form of short activities and are expected to discuss material from previous weeks.

5. Students would be free to ask any question related to the subject matter during and after lectures.

5

Page 6: Introduction to Computing Web viewThe objective of this assignment is to enable students not only to use Microsoft word and power point but to enable them to conduct research surveys,

Lesson Plan Guideline

5.2 LabsProgramming labs will be conducted with focus on hands-on computer programming.

5.3 VideosShort videos related to different computer science concepts will be shown to students.

5.4 Assessments:5.4.1 Assignments

Weekly assignments will be given to the students related to topics discussed in class.

5.4.2 QuizzesShort quizzes of 10 to 15 mins duration will be conducted to evaluate the performance of students and to help them identify their problem areas.

5.4.3 ReportEach student will select an advance topic of computer science of his/her choice and prepare a research survey report.

5.4.4 PresentationEach student will prepare a 10 mins power point presentation on report developed in section 5.4.3. This will boast the confidence of students.

6. ASSESSMENT DETAILS AND POLICIES

Up to Mid Term: Quiz : 05% Mid Term Project (Report & Presentation) : 10%

Mid Term Paper : 15% 30%

After Mid Term:Assignments : 05%Quizzes : 10%Final Term Project (Project + Viva) : 15%Final Paper : 40%

70%

6

Page 7: Introduction to Computing Web viewThe objective of this assignment is to enable students not only to use Microsoft word and power point but to enable them to conduct research surveys,

Lesson Plan Guideline

Mid Term Project:

Project Description

Study any topic (after approval from course instructor) related to computer science not covered in class. Develop a research survey report of about 3,000 words and a power point presentation on the selected topic.

Objective:The objective of this assignment is to enable students not only to use Microsoft word and power point but to enable them to conduct research surveys, to do report writing and to present a new area in the field of computer science, in front of whole class.

Guidelines: It is an individual assignment that is to be submitted in form of soft copy by

email to course instructor. The date of assignment submission will be announced in the class.

The assignment will be submitted in three phases:

Phase I: Topic Selection

Student will select an area in computer science of his/her interest, gather the general idea about the area under study and get it approved from the course instructor by the second week.

Phase II: Report Writing (First Draft)

The Report should be paraphrased with proper referencing. The following sections should be included in the report:

o Abstract

An abstract is a 100-200 word summary of your report. It provides a brief overview of the report by stating the purpose, defining the topic, summarizing the main section of the report and stating the conclusion. An abstract is usually written when you have completed the report.

o Introduction

An introduction usually starts with the purpose of the report; that is, the reason for conducting the study and preparing the report. An introduction gives an overview on background information, a general introduction to the area under study and conclusion.

o Background/History

Background information on the topic such as a brief history, the context of the topic, or a description of the problem

o Topic/ Area under Study

This is the largest section of a report. It consists of detailed information on the

7

Page 8: Introduction to Computing Web viewThe objective of this assignment is to enable students not only to use Microsoft word and power point but to enable them to conduct research surveys,

Lesson Plan Guideline

topic or area under study. This information is presented under appropriate headings and subheadings.

o Comparison (Optional)

If the area under study involves multiple techniques, then your report should present comparison of different techniques.

o Conclusion

This section summarizes the main ideas that have been established in the report.

o References

A list of publication details of all source materials referred in report.

A sample research survey report on Scanners can be found at: http://www.monash.edu.au/lls/llonline/writing/information-technology/report/1.3.3.xml

Evaluation Criteria for Report:

Sr # Contents Marks1 Abstract 022 Introduction 033 Background/History 044 Topic/ Area under Study 045 Conclusion 026 References 05

Total Marks 20

Phase III: Report Writing (Second and Final Draft)

The final report should be submitted by following formatting guidelines: Report should include a cover page (Use the format attached in appendix A). Headings should be made using the Style option of MS Word. Images should be properly formatted. Header and footer should be added Table of Contents should be added using the Table of Contents option of MS

Word.

Phase IV: PresentationStudents will prepare a power point presentation on the report developed in phase II and III. Power point presentation should include:

o Imageso Animationso Audio and Videoo Proper References

8

Page 9: Introduction to Computing Web viewThe objective of this assignment is to enable students not only to use Microsoft word and power point but to enable them to conduct research surveys,

Lesson Plan Guideline

The presentation should be evaluated on the basis of :o Subject knowledgeo Confidenceo Presentation Styleo Power Point Presentation including (images, animations, audio and video and proper references)

Evaluation Criteria for Presentation:

Sr # Contents Marks1 Subject knowledge 072 Confidence 033 Presentation Style 034 Power Point Presentation including (images,

animations, audio and video and proper references)

02

Total Marks 15

Evaluation Criteria for Mid Term Assignment:

Sr # Contents Marks1 Phase I: Topic Selection 052 Phase II: Report Writing (First Draft) 203 Phase III: Report Writing (Second and Final

Draft)10

4 Phase IV: Presentation 15Total Marks 50

Mid Term Paper Evaluation Criteria

Content WeightageIntroduction to Computers 25%Components of System Unit 25%Data Representation 30%Word, Power Point & Excel 20%

9

Page 10: Introduction to Computing Web viewThe objective of this assignment is to enable students not only to use Microsoft word and power point but to enable them to conduct research surveys,

Lesson Plan Guideline

Final Term Project:

Project Description

TicTacToe is a popular pencil-paper game which involves 2 players who take turns to mark "X" or "O" in a 3 x 3 grid. The player who first manages to mark three consecutive "X"s or "0"s in a horizontal, vertical, or diagonal row wins the game.

Figure: Tic Tac Toe

Create a C++ console application that allows two players to participate in a tic-tac-toe game. The program will be responsible for deciding who wins the game and when the game results in a draw.

Objective:The objective of this assignment is to give students the opportunity to practice skills they have learned in class and to demonstrate and extend their understanding of programming concepts logic building, logical operators, selection statements and loop.This small project will also boast the confidence of students that they have developed a game and can do any similar programming project that will be assigned to them in future.

Guidelines: It is an individual assignment that is to be submitted in form of soft copy by

email to course instructor. You can discuss the programming concepts with your class fellows, but the

actual work should be your own. The program that you submit must compile. The date of assignment submission will be announced in the class.

The assignment will be submitted in three phases:

Phase I: Variable Initialization and Display Board

Declare nine variables and initialize them. Display the board using the variables declared above.

Phase II: Check Winning Move

Develop the code for winning move. The winning move is made by the player who first manages to mark three consecutive "X"s or "0"s in a horizontal, vertical, or diagonal row wins the game.

Phase III: Player and Cell selection

Write the code for player selection:o Choose which player will start the game, player 1 or player 2.o How players will change their turns i.e. if player 1 has taken the first

move, now it is the turn of player 2. Write the code for asking player 1 and player2 to make the choice of cell

10

Page 11: Introduction to Computing Web viewThe objective of this assignment is to enable students not only to use Microsoft word and power point but to enable them to conduct research surveys,

Lesson Plan Guideline

selection. Integrate the whole code and compile it.

Phase IV: Viva

The whole project will be evaluated on the basis of viva. The guidelines for viva are as follows:o Come prepared for the viva.o You need to know each and every part of your code.o You might be asked to rewrite some part of the code from the project or any other related program.o Any act of plagiarism in project will result in zero marks in project.

Evaluation Criteria for Final Term Assignment:

Sr # Contents Marks1 Phase I: Variable Initialization and Display

Board3

2 Phase II: Check Winning Move 33 Phase III: Player and Cell selection 44 Phase IV: Viva 20

Total Marks 30

Final Term Paper Evaluation Criteria

Content WeightageContents covered before mid term 20%Operators 25%Selection Statements 25%Loops 30%

11

Page 12: Introduction to Computing Web viewThe objective of this assignment is to enable students not only to use Microsoft word and power point but to enable them to conduct research surveys,

Lesson Plan Guideline

7. LECTURE PLAN

Lecture Details Learning Outcome

Week 1 Introduction to Computers Components of Computers Networks and the Internet Computer Applications in Society Categories of Computers Servers / Processor Classifications

Embedded Computers

Introduce students to the basic components of computers.Students will be able to differentiate between different categories of computers.

Activity: Video SessionAssignment: Phase I of Mid Term Project: Topic Selection

Due in week 2

Week 2 Components of System Unit Expansion Slots and Adapter

Cards Ports Buses Motherboard Processor Memory

Enable students to understand the working of different components of system unit.

Activity: Video SessionAssignment: Phase II of Mid Project: Report Writing (First Draft) Due in week 4

Week 3&4

Data Representation Data vs Information Number Systems Positional and Non-Positional

Number System How Computers Represent Data Conversions Size of Memory How Computers Represent Data Conversions Size of Memory

Students will be able to understand the importance of data representation and how data is represented in computer.

12

Page 13: Introduction to Computing Web viewThe objective of this assignment is to enable students not only to use Microsoft word and power point but to enable them to conduct research surveys,

Lesson Plan Guideline

Activity: Quiz on Introduction to Computers and Components of System UnitAssignment: Phase III of Mid Term Project: Report Writing (Second and Final Draft) Due in week 5

Week 5 Microsoft Word 2007 Introduction Exploring Word 2007 Features Exploring Home Tab Exploring Insert Tab Exploring Page Layout Tab Exploring References Tab Exploring View Tab Exploring Review Tab Common Short keys

Students will be able to use different features of MS Word and will be able to use them in future assignments.

Activity: Lab on MS WordAssignment: Phase IV of Mid Term Project: Presentation. Due in week 7

Week 6 Microsoft Power Point 2007 Introduction

Exploring Power Point 2007 Features

Exploring Home Tab Exploring Design Tab Exploring View Tab Exploring Insert Tab Exploring Animation Tab Inserting Media Files

(Audio/Video)

Students will be able to use different features of MS Power Point and will be able to use them in future power point presentations.

Activity: Lab on MS Power Point

Week 7 Microsoft Excel 2007 Introduction Exploring Excel 2007 Features Cell references and range Relative and Absolute

Referencing, Formulas Functions Basic Formatting (Cell &

Number / Currency) Linking worksheets Aligning Cell Contents Using Charts

Students will be able to use different features of MS Excel, they will learn how to use formulas, functions, linking worksheets and using charts.

13

Page 14: Introduction to Computing Web viewThe objective of this assignment is to enable students not only to use Microsoft word and power point but to enable them to conduct research surveys,

Lesson Plan Guideline

MID TERM

Activity: Lab on MS Excel Presentation by students on Mid Term Project

Week 8 Introduction to Problem Solving Introduction to Programming &

Problem Solving How to approach a problems and

write a program

Students will have the basic understanding of how to attack a problem and how to solve it.

Activity: Practice Session

Week 9 Introduction to C Language C Program Structure Input/ Output Libraries Memory concepts

Enable students to take input from user and present the output on screen.

Activity: Practice SessionAssignment: Convert the algorithms developed in class into a C++ code. Due in next week 10

Week 10

Variables Data Types Assignment Statement Arithmetic Operators and Operator

Precedence Logic Building and algorithmic

development

Students will be able to differentiate between different data types.Enable students to understand the importance of arithmetic operator and their precedence.

Activity: Practice Session in Lab of 1 hour.Assignment: Phase I of Final Term Project: Variable Initialization and Display Board Due date week 11

Week 11

Control Structures in C Relational Operators Logical Operators & Logical

Expressions Short Circuit Evaluation of

Logical Expressions Selection Statementso if, if-else

Enable students to understand the importance of relational and logical operators.Students will be able to use and evaluate selection statements.

14

Page 15: Introduction to Computing Web viewThe objective of this assignment is to enable students not only to use Microsoft word and power point but to enable them to conduct research surveys,

Lesson Plan Guideline

Activity: Practice Session in Lab of 1 hour.Assignment: Phase II of Final Term Project: Check Winning Move Due date week 12

Week 12

Nested if Statement Switch Statements

Students will be able to use nested selection statements and switch statement.

Activity: Practice Session in Lab of 1 hour.Assignment: Phase III of Final Term Project: Player and Cell selection. Due date week 14

Week 13

While Loop For Loop

Students will be able to appreciate the concept of loops and the use of loops to solve problems.

Activity: Practice Session in Lab of 1 hour.

Week 14

Do While Loop Break and Continue

Students will be able to use do while loop and break and continue statements.

Activity: Practice Session in Lab of 1 hour.

Week 15

Nested Loops Students will be able to use the concept of nested loops.

Activity: Practice Session in Lab of 1 hour.Activity: Phase IV of Final Term Project: Viva.

Due date week 14

8. ACADEMIC & DISCIPLINARY POLICIES

Late Submission: All assignments need to be submitted on the due date.

15

Page 16: Introduction to Computing Web viewThe objective of this assignment is to enable students not only to use Microsoft word and power point but to enable them to conduct research surveys,

Lesson Plan Guideline

Assignments submitted within next 24 hours after the due date will result 10% deduction.

No assignment will be accepted after this.

Absenteeism:

If a student fails to attend 6 classes of a course, the student will be issued a warning letter, warning the student of his or her unsatisfactory attendance. If a student fails to attend 12 classes of a course, the student will be issued a struck off letter which will result in cancellation of registration and restrain the right of a student to sit in the class.

Note: An absence here implies an excused and an unexcused both.

Plagiarism:

University policy prohibits students plagiarizing any material under any circumstances. A student plagiarizes if he or she presents the thoughts or works of another as one’s own. This definition may include:

Using another’s ideas without due acknowledgement; Working with others without permission and presenting the resulting work

as though it was completed independently. Aiding another student to plagiarize is also a violation of the plagiarism

Policy and may invoke a penalty. Plagiarism in any assignment will result zero marks.

Class Policies:

No makeup quizzes. The responsibility to recover any information/announcement made in any

of the lectures in which you fail to be in attendance lies solely with you.

16

Page 17: Introduction to Computing Web viewThe objective of this assignment is to enable students not only to use Microsoft word and power point but to enable them to conduct research surveys,

Lesson Plan Guideline

9. ASSESMENT GRADES & PERCENTAGES:

(80-100%)This is an outstanding standard indicating comprehensive knowledge and understanding of the relevant materials; demonstration of an outstanding level of academic ability; mastery of skills (as identified in the assessment task); and achievement of all assessment objectives.

(70-79%)This is an excellent standard indicating a very high level of knowledge and understanding of the relevant materials; demonstration of a very high level of academic ability; sound development of skills (as identified in the assessment task); and achievement of all assessment objectives.

(65-74%)This is a very good standard indicating a high level of knowledge and understanding of the relevant materials; demonstration of a high level of academic ability; reasonable development of skills (as identified in the assessment task); and achievement of all assessment objectives.

Pass (50-64%)This is a satisfactory standard indicating an adequate knowledge and understanding of the relevant materials; demonstration of an adequate level of academic ability; satisfactory development of skills (as identified in the assessment task); and achievement of most assessment objectives.

Fail (less than 50%) This is an unsatisfactory standard indicating an inadequate knowledge and understanding of the relevant materials; insufficient evidence of academic ability; failure to develop skills (as identified in the assessment task); and failure to achieve assessment objectives.

17

Page 18: Introduction to Computing Web viewThe objective of this assignment is to enable students not only to use Microsoft word and power point but to enable them to conduct research surveys,

Lesson Plan Guideline

10. SAMPLE MID TERM PAPER:

Name: ______________

Roll No: _____________

Date: _______________

Time Allowed: 15 mins.

Q1: Encircle the correct answer.

You install Microsoft Office from CD to your Computer. Which of the following are not used in the process:

Processor Keyboard Mouse Scanner RAM

Due to the wrong placement of Insertion pointer, the entire line is entered at a wrong position. What is the fastest and suggested way to correct its position?

Delete the line from current position and re-type Let the line as it is and retype at new position Select the line from existing place and drag it to desired place Copy the line from existing place and paste it to desired place

Introduction to ComputingMid Term Exam

Objective(BCS/BTC 1)

Department: CS&IT Total Marks: 10 Course Instructor: Syed Tanweer Shah Bukhari Obtained Marks: _______________ __________

Instructions: 1. Do not cut or overwrite the answer.

2. Encircle only one option for all MCQ questions.

3. Please encircle the correct option in True/False question

18

Page 19: Introduction to Computing Web viewThe objective of this assignment is to enable students not only to use Microsoft word and power point but to enable them to conduct research surveys,

Lesson Plan Guideline

Q2: Fill in the blanks.

System board is also called__________________________.

________________________performs comparison and logical operations.

Shortcut key of replace is _______________ .

77 values require_____________ bits.

Q 3: Circle T if the statement is true or F if the statement is false. T F Web pages do not have links to other documents or web pages.

T F The processor holds data waiting to be processed and instructions waiting to be executed.

T F Landscape is the default page setup orientation of slide in PowerPoint

T F MS Words is a kind of System Software.

19

Page 20: Introduction to Computing Web viewThe objective of this assignment is to enable students not only to use Microsoft word and power point but to enable them to conduct research surveys,

Lesson Plan Guideline

Name: ______________

Roll No: _____________

Date: _______________

Time Allowed: 45 mins.

Q1: Give short answers to the following questions.

1) Convert the following number from binary to decimal. (6)(1101101)2

2) What is a super computer (6)

3) What is a machine cycle? (6)

4) What is indentation in MS Word? (6)

5) Convert the following number from decimal to binary. (6)(139)10

Introduction to ComputingMid Term Exam

Subjective(BCS/BTC-1)

Department: CS&IT Total Marks: 30 Course Instructor: Syed Tanweer Shah Bukhari Obtained Marks: _______________ __________

Instructions: 4. Do not cut or overwrite the answer.

20

Page 21: Introduction to Computing Web viewThe objective of this assignment is to enable students not only to use Microsoft word and power point but to enable them to conduct research surveys,

Lesson Plan Guideline

11.SAMPLE FINAL PAPER:

12.SAMPLE FINAL PAPER:

Name: ______________

Roll No: _____________

Date: _______________

Time Allowed: 15 mins.

Q1: Encircle the correct answer. (2)

In C++, ________________are names of things. variables

identifier

keyword

integer

The stream objects cin and cout are included in which header file? istream.h

fstream.h

ostream.h

iostream.h

Introduction to ComputingFinal Term Exam

Objective(BCS & BTC-1)

Department: CS&IT Total Marks: 20 Course Instructor: Syed Tanweer Shah Bukhari Obtained Marks: _______________ __________

Instructions: 5. Do not cut or overwrite the answer.

6. Encircle only one option for all MCQ questions.

7. Please encircle the correct option in True/False question.

21

Page 22: Introduction to Computing Web viewThe objective of this assignment is to enable students not only to use Microsoft word and power point but to enable them to conduct research surveys,

Lesson Plan Guideline

Q2: Circle T if the statement is true or F if the statement is false. (3)

The addition operator (+) has more precedence than multiplication operator (*). T F

Double is a data type that deals with integers, or numbers without a decimal part.

T F

All variables must be declared before they can be used. T F

Q3) Suppose x , y ,and z are int variables and w and t are double variables.What value is assigned to each of these variables after the last statement executes? (6)x = 17;y = 15;x = x + y / 4 ;z = x % 3 + 4 ;w = 17 / 3 + 6. 5;t = x / 4.0 + 1 5 % 4 - 3.5;and find out the values of a, c ,x and y:

Q4) Suppose a , b , and c are int variables and a = 5 and b = 6 . What value isassigned to each variable after each statement executes. (9)

a = (b+ +) + 3

c = 2 * a + ( ++ b)

b = 2 * (++c) - ( a+ +)

22

Page 23: Introduction to Computing Web viewThe objective of this assignment is to enable students not only to use Microsoft word and power point but to enable them to conduct research surveys,

Lesson Plan Guideline

Name: ______________

Roll No: _____________

Date: _______________

Time Allowed: 90mins.

Q1) What is the output of the following code? (10)

#include <iostream>using namespace std ;int main(){int myNum = 10;int yourNum = 30;if (yourNum % myNum == 3){ yourNum = 3 ; myNum = 1 ;}else if ( yourNum % myNum == 2){ yourNum = 2 ; myNum = 2 ;}else{ yourNum = 1 ; myNum = 3 ;}cout << myNum << " " << yourNum << endl;return 0;}

Q2) Write a program that takes as input given lengths expressed in feet and inches. The

Introduction to ComputingFinal Term Exam

Subjective(BCS & BTC-1)

Department: CS&IT Total Marks: 80 Course Instructor: Syed Tanweer Shah Bukhari Obtained Marks: _______________ __________

Instructions: If you want to cut something cut it properly and rewrite again.

23

Page 24: Introduction to Computing Web viewThe objective of this assignment is to enable students not only to use Microsoft word and power point but to enable them to conduct research surveys,

Lesson Plan Guideline

program should then convert and output the lengths in centimeters. Assume that thegiven lengths in feet and inches are integers. (10)

Q3) Write a program that takes as input any change expressed in cents. It should thencompute the number of half-dollars, quarters, dimes, nickels, and pennies to bereturned, returning as many half-dollars as possible, then quarters, dimes, nickels,and pennies, in that order. (10)

Q4) This programming example demonstrates a program that calculates a customer’s bill for a local cable company. There are two types of customers: residential and business. There are two rates for calculating a cable bill: one for residential customers and one for business customers. (20)

For residential customers, the following rates apply:• Bill processing fee: $ 4.50• Basic service fee: $20.50• Premium channels: $7.50 per channel.

For business customers, the following rates apply:• Bill processing fee: $ 15.00• Basic service fee: $ 75.00 for first 10 connections, $ 5.00 for each additional connection• Premium channels: $50.00 per channel for any number of connections.

The program should ask the user for an account number (an integer) and a customercode. Assume that R or r stands for a residential customer, and B or b stands for abusiness customer.

Q5) Write a program that take 10 values from the user and add them. Also calculate the average of these 10 values. (20)

Q6)Convert the following number from hexadecimal to decimal. (10) (4DE)2

24

Page 25: Introduction to Computing Web viewThe objective of this assignment is to enable students not only to use Microsoft word and power point but to enable them to conduct research surveys,

Lesson Plan Guideline

Appendix A:

Sample Cover Page

25

Page 26: Introduction to Computing Web viewThe objective of this assignment is to enable students not only to use Microsoft word and power point but to enable them to conduct research surveys,

Lesson Plan Guideline

SCANNERS

Submitted by:

Ali Ahmad

Roll No: BCS 10112

Submitted to:

Syed Tanweer Shah Bukhari

Lecturer

Department Of Computer ScienceSuperior University

26