Write a C++ program to solve the following problems (Red colour texts are to indicate user inputs that can be changed)
Out Put
Enter your Account Number: 2000342200267
Enter your Name: Abebe Kebede
Enter the amount: 1000
How long to keep it (number of month): 10
Dear Abebe Kebede
Acc: 2000342200267
After 10 Months you will get a total of 700 Birr Interest
Your Balance will be = 1700 Birr
Suppose a book of 585 pages contains 43 types of graphical errors if these errors are randomly distributed throughout the book .what is the probability that 10 pages selected at random will be free from errors
If the hydrogen ion concentration of an unknown solution is 4.56E-7, what is its pH and will this form an acid or a base?
Show that if W consist of these vectors (a, b, c)€R³ for which a=2b then W is subspace of R³
Examine the incomplete program below. Write code that can be placed below the comment (// Write your code here) to complete the program. Use nested loops to calculate the sum and average of all scores stored in the 2-dimensional array: students so that when the program executes, the following output is displayed. Do not change any other part of the code.
OUTPUT:
Sum of all scores = 102
Average score = 17
CODE:
#include <iostream>
using namespace std;
int main()
{
const int NUM_OF_STUDENTS = 2;
const int NUM_OF_TESTS = 3;
int sum = 0, average = 0;
double students[NUM_OF_STUDENTS][NUM_OF_TESTS] =
{
{11, 12, 13},
{21, 22, 23}
};
// Write your code here:
cout << "Sum of all scores = " << sum << endl;
cout << "Average score = " << average << endl;
return 0;
}
calculate the energy stored in a magnetic field of solenoid of inductance 5 millinery when a maximum current 3 amp flows through it
Write a code that reads integers from the user until the user enters either 0 or 100. Then prints the sum of the numbers entered (excluding the 0 or 100).
Find the probability of z lying between z=0 and z=2.3.
How many bijections (bijective functions) are there from A to A with the
property that no element of A is mapped to itself? (A is a set with 5 elements)
determine both the mass and the charge of a block of material consisting of 3 x 10 ^27 protons,3 x10^37 neutrons, and 3.1 x 10^27 electrons