Professional Documents
Culture Documents
Name Registration No Marks Class Code/Subject Assessment Lecturer
Name Registration No Marks Class Code/Subject Assessment Lecturer
REGISTRATION NO MARKS
/30
CLASS
CODE/SUBJECT DFC20113 – PROGRAMMING
FUNDAMENTAL
ASSESSMENT LAB TASK 1
LECTURER
DURATION: 2 HOURS
INSTRUCTION: ANSWER ALL THE QUESTIONS
QUESTION 1
#include<iostream>
int main(){
_____ hours;
_____ payment;
_____ price1 = 2;
/30
CLASS
CODE/SUBJECT DFC20113 – PROGRAMMING
FUNDAMENTAL
ASSESSMENT LAB TASK 1
LECTURER
QUESTION 2
#include <iostream>
#include <______>
int ______(){
string name;
______ address;
string matrixNumber;
string ______;
cout<<"Address : ";
getline (cin, address);
cout<<"Department: ";
getline (cin, department);
cout<<endl;
cout<<"PMJ Student Data"<<endl;
cout<<"------------------------------"<<endl;
cout<<"Name : "<<name<<endl;
cout<<"Address : "<<______<<endl;
cout<<"Matrix Number : "<<matrixNumber<<endl;
cout<<"______ "<<department<<endl;
return 0;
}
Figure 2