Title | Experiment NO 5 - no.................................................. |
---|---|
Author | Haris Islam |
Course | Programming Fundamentals |
Institution | Riphah International University |
Pages | 5 |
File Size | 314.2 KB |
File Type | |
Total Downloads | 52 |
Total Views | 170 |
no.....................................................
EXPERIMENT NO 5 Title Functions in C++ .
Objectives Learn to implement functions in C++ program to solve real word problem .
Introduction In this lab we have learned about functions in C++ programming . we have learned how to implement functions in C++ programming . In this lab we have learned how to deal for a functions with every program in C++ .
Procedure
Understand the purpose of the function. Define the data that comes into the function from the caller (in the form of parameters) Define what data variables are needed inside the function to accomplish its goal. Decide on the set of steps that the program will use to accomplish this goal.
In the above program we use function to find a cube volume .
2nd Program
The above program was also based on function programming. We use this program for an account of harry and sally. In this program we have fenality of 10 mean if greater amount is eneterd then actual amount so (-10) will be fenality for wrong entered.
3rd program
Conclusion In this lab we have learned about the implementation of function in C++ Programming. We can use function for different sout of programms . We have learned how to implement a function for programming. We have learned how to call a function in programming ....