0% found this document useful (0 votes)
60 views2 pages

Assignment 1

This document provides instructions for Assignment 1 in Introduction to Computing. It states that students must submit separate .cpp files for each task by November 5th at 9am to the specified LMS folder. Files submitted late or to other locations will have marks deducted. Plagiarism will result in zero marks. The assignment consists of writing cout statements, performing calculations, and writing a program to output a sample result card.

Uploaded by

Siddique Rana
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
60 views2 pages

Assignment 1

This document provides instructions for Assignment 1 in Introduction to Computing. It states that students must submit separate .cpp files for each task by November 5th at 9am to the specified LMS folder. Files submitted late or to other locations will have marks deducted. Plagiarism will result in zero marks. The assignment consists of writing cout statements, performing calculations, and writing a program to output a sample result card.

Uploaded by

Siddique Rana
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Deadline: Nov 05, 2019 09:00 a.m.

Introduction to Computing
Assignment 1
Instructions
• Create separate file for each task. And name each file as task1.cpp, task2.cpp, task3.cpp ….
• Please follow the deadline. In case of late submission, marks will be deducted. On late submission of every
hour, 10% marks will be deducted.
• Submit assignment on LMS only in specified folder “Assignment 1 – Submission Folder”. No hard copy will be
accepted. Do not zip folder or submit folder. Only submit cpp and doc files
• If plagiarism found, zero marks will be awarded. Consider this instruction as last warning, don’t ask for second
warning!

Part A - COUT

Question 1
Write cout statements to perform the following tasks:
a) Print your name in single quote ‘Ali’
b) Print your name in double quotes “Ali”
c) Print your name enclosed in double backslash \Ali\
d) Print your name in the format mentioned “\A”\l”\i

Question 2

Perform the following statements on C++ program. Also show calculation on word document, step by step and verify your
answer with compiler.

Expression Result
a) 7 + 3 * 6 / 2 - 1;
b) 2 % 2 + 2 * 2- 2 / 2;
c) (3 * 9 * (3 + (9 * 3 / (3))));
d) 2 * 3 / 4 + 4 / 4 + 8 – 2 + 5 / 8;
e) 3 / 2 * 4 + 3 / 8 + 3;

Question 3

Write a C++ program that shows your result card along with your Name on console screen. You may use your matric or
intermediate marks

Please make sure the console screen shows exactly as it is given in the example below. You may change courses name or
add new subjects

1
Deadline: Nov 05, 2019 09:00 a.m. Introduction to Computing
Assignment 1
******************************
My Intermediate Result Card
******************************

Muhamamd Ali

Roll No. Math Physics Chemistry English Urdu Total


---------------------------------------------------------------------------------------------
2357 99 85 97 74 65 420
----------------------------------------------------------------------------------------------

You might also like