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....


This is a c++ question task do it carefully and do that in simple words and don't copy from the internet or do any plagarism.


There are actually 4 simple mathematical problems. solve all these problems.


Write the CPP code here in text and do these 4 tasks (don't do it together)


For ex - p1.cpp , p2.cpp , p3.cpp , p4.cpp by this .


Paste the code here ( Don't plagiarise)


C++ Basics:<br>The lab instructor will familiarize the students about the C++ environment and coding style. The instructor should<br>demonstrate cout, cin and other basic commands to students.<br>Tasks:<br>1. Take 2 integer inputs from keyboard and print their sum.<br>2. Take an integer from keyboard and find its factorial.<br>3. Take 2 integer inputs from keyboard and also ask the user for which operation to perform: +' or *-'or *.<br>Perform the appropriate operation and show the result. (Hint: you can use switch/case)<br>4. Write a function isPrime(int n) which checks if 'n' is prime or not. Use this function to print all the prime<br>numbers between 300 to 500.<br>

Extracted text: 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.

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here