Page 1 of 1

CSE225L - Data Structures and Algorithms Lab Lab 0 Running C++ in CodeBlocks C++ Basics: The lab instructor will familia

Posted: Sat Feb 19, 2022 3:22 pm
by answerhappygod
Cse225l Data Structures And Algorithms Lab Lab 0 Running C In Codeblocks C Basics The Lab Instructor Will Familia 1
Cse225l Data Structures And Algorithms Lab Lab 0 Running C In Codeblocks C Basics The Lab Instructor Will Familia 1 (69.6 KiB) Viewed 36 times
C++ Please solve it within 30 minutes.Give me the screenshots
also
CSE225L - Data Structures and Algorithms Lab Lab 0 Running C++ in CodeBlocks C++ Basics: The lab instructor will familiarize the students about the C++ environment and coding style. The instructor should demonstrate cout, cin and other basic commands to students. Tasks: 1. Take 2 integer inputs from keyboard and print their sum. 2. Take an integer from keyboard and find its factorial. 3. Take 2 integer inputs from keyboard and also ask the user for which operation to perform: + or -'or *** Perform the appropriate operation and show the result. (Hint: you can use switch/case) 4. Write a function isPrime(int n) which checks if 'n' is prime or not. Use this function to print all the prime numbers between 300 to 500. OOP concepts: The lab instructor will show the class how to create classes and make objects. Especially the idea of.h files and.cpp files and including them. Tasks: 1. Create a class 'Box' that has height, width and depth. The class should have a method volume() which shows the volume of the box. 2. Now, create a driver file where you will create multiple Box objects with arbitrary dimensions and show their result.