PROBLEMS
1. Write a C++ code that prints out your name.
2. Write a C++ code that calculates and prints out the
following sum (where i is in radians)
(1) |
3. Write a C++ code that finds the integral of a function
f(x) over the interval (a,b) using the simplest
equally spaced Trapezoid rule. As an example use
(2) |
How to compile and run a C++ code in 1240 BPS
To compile:
g++ -o file.exe file.c
To execute:
./file.exe