E N D
PF LAB ASSIGNMENT ASSIGNMENT NO 3: Name: ANFAL TAHIR Roll no: 21 Department: KUST Program: BSCS University: UNIVERSITY OF MANAGEMENT AND TECHNOLOGY. Subject: PROGRAMMING FUNDAMENTALS LAB Submitted to: MISS JAWERIA JALIL 1
PF LAB ASSIGNMENT Q NO 1: PROGRAM CODE: 2
PF LAB ASSIGNMENT OUTPUT: 3
PF LAB ASSIGNMENT Q no 2: PROGRAM CODE: 4
PF LAB ASSIGNMENT OUTPUT: 5
PF LAB ASSIGNMENT Q NO 3: MAKE A TABLE: FUNCTION NAME HEADER/LIBRARY FILE <iostream> DESCRIPTION cout Standard output stream for printing to the console. Standard input stream for printing to the console. Returns the length (number of characters of a string). Adds an element to the end of a vector. Sorts element in a range in ascending order. Returns the larger of two values. Returns the smaller of two values. Converts a string into an integer. cin <iostream> string:: length <string> vector:: push_back<vector> sort <algorithm> max <algorithm> min <algorithm> stoi <string> 6
PF LAB ASSIGNMENT to_string <string> Converts a numeric value into a string. Generates a pseudo-random number. rand <cstdlib> 7