Consider the code snippet given below:-
[Assume the necessary header files and namespaces included]
int main()
{ int a[10];
cout<<”enter the elements of the array\n”;
for(int i=0;i<10;i++)
cin>>a[i];
return 0;
}
Complete the code such that the even and odd numbers from the array ‘a’ are stored into two different arrays. The size of these arrays should be same as that of the number of elements and their memory should be deallocated after displaying the odd and even numbers.
Construct a pseudocode and a flowchart that will count from 1 to 10 and print each number counted using repetition structure.
Construct a pseudocode and draw a flowchart that will input a grade of student and determine whether the grade is passed or failed(Passing grade is 60). Print the, grade and remark of student.
Create a pseudocode that will input values for A and B. Compare two values inputted and print which of the values is higher including the remark “Higher”.
Create a graphical user interface (GUI) program that will perform basic standard
calculator operations. The students will not be penalized for having extra arithmetic operations
in their program.
Given an integer
The first line of input is an integer
In the example, the given starting number is
10, and the number of rows in the pyramid is 5.So, the output should be
10
11 12
13 14 15
16 17 18 19
20 21 22 23