Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1:-1 4G Orange Ii. vclass.ammanu.edu.jo 1. Write a C++ program that prompts the

ID: 3708767 • Letter: 1

Question

1:-1 4G Orange Ii. vclass.ammanu.edu.jo 1. Write a C++ program that prompts the user to input three integer values and find the greatest value of the three values. 2. Write a C++ program to display integer from 1 to 10 except 6 and 9. 3. Write a C++ program that raise x to the y power. (x using while loop. 4. Write a C++ program that calculates the area of a square. s C++ Program to print integer entered by user only if that number is positive. C++ Program to find factorial of a number (Note: Factorial of positive integer n = 1*2*3* loop and using For loop. "n) using while 7. C++ program to add numbers entered by user until user enters 0. s. C++ program to build simple calculator using switch Statement

Explanation / Answer

As per Chegg guidelines, if a question of the user contains more than one question then the expert need to answer the first question. But for you, I am answering the first few question. Hope you read the guidelines and understand. :)

Program 1

#include <iostream>

using namespace std;

int main() {

int num1, num2, num3;

cout << "Enter the three numbers: ";

cin >> num1 >> num2 >> num3;

if (num1 > num2)

{

if (num1 > num3)

cout << "num1 is the greatest among three ";

else

cout << "num3 is the greatest among three ";

}

else if (num2 > num3)

cout << "num2 is the greatest among three ";

else

cout << "num3 is the greatest among three ";

}

Program 2

#include <iostream>
using namespace std;
int main() {
for(int i = 1; i <= 10; i++)
if(i != 6 && i != 9)
cout << i << endl;
}

Program 3

#include <iostream>
#include <math.h>
using namespace std;
int main() {
int x = 5, y = 2;
cout << pow(x, y);
}

Program 4

#include <iostream>
#include <math.h>
using namespace std;
int main() {
int side = 5;
cout << "Area of square is " << side * side;
}

Program 5:

#include <iostream>
#include <math.h>
using namespace std;
int main() {
int number;
cout << "Enter number: ";
cin >> number;
if(number > 0)
cout << "Positive number " << number;
}

**Comment for any further queries.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote