Final Term Exam Programming Fundamentals Section E

Total Marks= 50                  Date: 2/26/2021           Deadline: 1:00 Pm till 4:35 Pm



Q1: Write a program to implement Character Converter application which takes String from the user and convert the string characters from Upper to Lower case. You are instructed to write your code in C++.                                                                (5 Marks)                

Example input:

Hello Pakistan

Example Output:

hello pakistan

                                                                                                                                                                                                                                                                       

Q2: Write a program in C++ to implement a staff Management System in which your system will ask staff’s details, for example, it will take staff name, number, email, the designation, department, etc. your program should have implemented these functions:

·         Search_record                                                                                (10 marks)

·         Update_record

·         Print_All_Records

You can use functions for the implementation of these functionalities.

                                                                                                        (10 marks)

Q3: Write a program that inputs the height of the triangle and displays a triangle of characters. For example, if the user enters 5 it displays the following:

Enter the height of the triangle:

A

B C

D E F

G H I J

K L M N O

P Q R S

T U V

W X

Y

                                                                                                      (10 marks)

Q4: Write a program to print the following triangle patterns on the console.


 

                                                                                                                                                                                                                                                        (5 marks)

Q5: Write a program to create your own data the type which could take information from the user for example if you created a user define datatype named Person then it can have Person's name, ID, Email, address etc. you must take all information by creating your defined datatype variable or object and print all information on the console.

                                                                                                                                                                                                                                                                                                                                                                                                               (5 marks)

Q6: Write a program in C++ to change a value in an integer variable using pointers your program should access the address of integer variable and change it by changing in the pointer variable?

                                                                                                                                                                                                                                                                                                                                                                                                           (5 marks)

Q7: Write a simple function name ComplexEquaitonSolver() which can take one or more parameters from the main function and your function should be able to compute the given below Equation and return the value to the main function which further prints the returned value on the console.

                                            Gx^3+Bx^4+Cx^3+D+A+B*C+5+x^4=0

 

 Click for Submission:

                          

 

 

 

 


Post a Comment

Previous Post Next Post