0
What are the best websites or apps to solve c++ question ?
I want to know some of the best websites or apps for android which gives practice for language
7 odpowiedzi
+ 11
if u are not a beginner and u know a lot of things about Programming then try codechef
and yes stackoverflow also
+ 1
StackOverflow
+ 1
try programming hub.
0
}
General Instructions: 1) Be in a group of 3 members
2) The assignment is handwritten
1. Calculate Big-Oh notation/ characterization, in terms of n, and the running time of each of the following methods.
a
b. public void ExA(int n)
public void ExD(int n) {
int a; for (int i = 0 i<n; i+=2) a = i;
e.
int a; for (int i = 0 i<nn; i++) for (int j = 0 j<i;j++) a = i;
}
public void ExB(int n)
}
General Instructions: 1) Be in a group of 3 members
2) The assignment is handwritten
1. Calculate Big-Oh notation/ characterization, in terms of n, and the running time of each of the following methods.
a
b. public void ExA(int n)
public void ExD(int n) {
int a; for (int i = 0 i<n; i+=2) a = i;
e.
int a; for (int i = 0 i<nn; i++) for (int j = 0 j<i;j++) a = i;
}
public void ExB(int n)
public void ExE(int n)
int a; for (int i = 0 i < n* n; i++) a = i; }
int a; for (int i = 0 i < n; i++) for (int j = 0 j<n-i; j++) a = i; }
d. public void ExC(int n) {
public void ExF(int n)
int a;
{ int a; for (int i = 1; i < n i *= 2) a=i:
for (int i = 0 i < n; i++) for (int j = 0 <= i; j++) a = i;
public void ExE(int n)
int a; for (int i = 0 i < n* n; i++) a = i; }
0
}
General Instructions: 1) Be in a group of 3 members
2) The assignment is handwritten
1. Calculate Big-Oh notation/ characterization, in terms of n, and the running time of each of the following methods.
a
b. public void ExA(int n)
public void ExD(int n) {
int a; for (int i = 0 i<n; i+=2) a = i;
e.
int a; for (int i = 0 i<nn; i++) for (int j = 0 j<i;j++) a = i;
}
public void ExB(int n)
public void ExE(int n)
int a; for (int i = 0 i < n* n; i++) a = i; }
int a; for (int i = 0 i < n; i++) for (int j = 0 j<n-i; j++) a = i; }
d. public void ExC(int n) {
public void ExF(int n)
int a;
{ int a; for (int i = 1; i < n i *= 2) a=i:
for (int i = 0 i < n; i++) for (int j = 0 <= i; j++) a = i;
2. Write about the basic types and operation of linked list (3-5 pages),
f.
g
0
1. Write a program which asks for a number input from the keyboard. Add 40 to the number and then divide it by 5. Now, take modulus of that number with 2 and then multiply the resultant value by 10. Display the result.
2. Write a program which takes temperature in Celsius as input and then display the values after converting it to Kelvin and Fahrenheit.
3. Write a program to find all roots of a quadratic equation using if else. Take co-efficient of the quadratic equation as user input. Check for negative, positive or zero discriminant and calculate roots accordingly.
4. Write a program which asks user to input percentage and then it should display the grade using
following criteria. Use switch statement.
Percentage >= 95%
Grade A+
Percentage >= 90%
Grade A
Percentage >= 85%
Grade B+
Percentage >= 80%
Grade B
Percentage >= 70%
Percentage >= 60%
Grade C+
Percentage >= 40%
Grade C
Grade D
Percentage < 40%
Grade F
5. Write a program which takes two integer values as user inputs and prints their LCM and HCF
6. Write a program which takes integer value as user input and converts it to binary and octal system and then display the answers.
7. Write a program which takes an integer value as user input and prints its reverse.
8. Write a program which checks whether an input integer is prime number or not.
9. Write a program which asks for length and width of a rectangle and calculates the area and perimeter.
10. Write a program which takes length in meters as input and convert it to feet and inches and display it as output.
0
1. Write a program which asks for a number input from the keyboard. Add 40 to the number and then divide it by 5. Now, take modulus of that number with 2 and then multiply the resultant value by 10. Display the result.
2. Write a program which takes temperature in Celsius as input and then display the values after converting it to Kelvin and Fahrenheit.
3. Write a program to find all roots of a quadratic equation using if else. Take co-efficient of the quadratic equation as user input. Check for negative, positive or zero discriminant and calculate roots accordingly.
4. Write a program which asks user to input percentage and then it should display the grade using
following criteria. Use switch statement.
Percentage >= 95%
Grade A+
Percentage >= 90%
Grade A
Percentage >= 85%
Grade B+
Percentage >= 80%
Grade B
Percentage >= 70%
Percentage >= 60%
Grade C+
Percentage >= 40%
Grade C
Grade D
Percentage < 40%
Grade F
5. Write a program which takes two integer values as user inputs and prints their LCM and HCF
6. Write a program which takes integer value as user input and converts it to binary and octal system and then display the answers.
7. Write a program which takes an integer value as user input and prints its reverse.
8. Write a program which checks whether an input integer is prime number or not.
9. Write a program which asks for length and width of a rectangle and calculates the area and perimeter.
10. Write a program which takes length in meters as input and convert it to feet and inches and display it as output.