Quotation marks are usually paired with a similar type, like a double quote (") paired with another double quote ("), and the same goes for single quotes ('). However, I'd like to try complicating things by putting together a pair of a double quote(") and a single quote(') in one statement!
Can you do this simple challenge?
Output
A line containing a string.
"'create a c++ program that will perform the four basic mathematical operation. design the program to choose which operation to use, then ask the user to enter two values which will be use in computation
Write a program to create an array in order to store 30 numbers. Then display the highest number and second highest number present in it using bubble sorting.
Write a program using for loop statement that will display a series of number in ascending and descending order and it will also display the odd and even numbers.
Note: Use scanner and for loop statement
Sample output:
Enter a number: 15
Number in ASCENDING orders
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Number in DESCENDING orders
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
EVEN Number
2
4
6
8
10
12
14
ODD Number
1
3
5
7
9
11
13
15
In a school students stand in assembly. But we are arrange them height wise.
So print the indexes of wrong positions.
Sample Input:
You are given an array A having N integers which represents the assembly line.Each integer represents the height of a student.print the indexes of all the students who stand at wrong position in the line.
input; 9--------denotes N
11 8 4 26 7 9 2 16 1 ------denotes array A
output:0 1 3 4 6 8
Manually show how bubble sort algorithm works on the following array:
a) {30,60,20,50,40,10}
b) {30,19,20,25,40,30}
c) {20,60,27,50,21,10}
Build an AVL Tree using these keys, draw the corresponding
tree after each key is inserted.
A L G O R I T H M C
Write a program using for loop statement that will display a series of number in ascending and descending order and it will also display the odd and even numbers.
Note: Use scanner and for loop statement
Sample output:
Enter a number: 15
Number in ASCENDING orders
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Number in DESCENDING orders
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
EVEN Number
2
4
6
8
10
12
14
ODD Number
1
3
5
7
9
11
13
15
create a program that will accept 1 input number then display the even numbers base from the inputted numberWrite a program to store 30 numbers in an array. Then display those numbers in descending order using bubble sorting with a condition that maximum 5 numbers will appear in one line.