==============
C programming problem. Please read carefully and full answers, thank you.
ANSWER:-
#include <stdio.h>
int main() {
int n,i,sum=0;
printf("enter the number of terms : ");
scanf("%d",&n);
for(i=1;i<=n;i++)
{
sum=sum+i*i;
}
printf("output is = %d",sum);
return 0;
}
// OUTPUT

============== C programming problem. Please read carefully and full answers, thank you. Write a simple c...
Please carefully read the question and write down the answer in
full sentence. Find z
Find z EC such that (a) z=i(2-1) (b) 22.=2 (c) 2 +31 = 32
Write neat please. Show step by step please. Read instructions
carefully. Box in answer please. Thank you
Problem 4 (20 points) A right-angled steel bracket is fixed to a vertical wall as shown. A force of 1000 N acts on the free end of the bracket at an angle of 30° from the horizontal Determine the moment of the force about the point B. COON - 200 mm
Read each question carefully before you answer. For full credit trace and show that value of all the isted variables and walkthrough your code where indicated. Use the function names provided to complete the question and read the associated descriptions to understand how the function works. Your program must use functions, and unless otherwise indicated assume file input. 2-Create a struct to hold a fractio Suct to hold a fraction. The struct should have an integer numerator and ger denominator...
please use c++ programming and single dimensional
arrays to solve this problem
thank you
Problem 02: Large Integer (20 points) In CH, the largest int value is 2147483647. So, an integer larger than this cannot be stored and processed as an integer. Similarly, if the sum or product of two positive integers is greater than 2147483647, the result will be incorrect. One way to store and manipulate large integers is to store each individual digit of the number in an...
C++ programming please Write a program that will display random numbers in order from low to high. 1. Declare an integer array of size 100. Ask the user how many numbers to work with (n). It can be less than 100. 2. Generate random numbers from 10 to 50. 3. Write the random numbers to an output file named random.dat. Close the file. 4. Open random.dat for input and read the data values into your array. Pass your array to...
In C Programming Language, write a simple program to read one text file and print to screen all its text. Make use of the stderr and exit program statements should there not be only one text file identified on the command line. If successful then before fclose of the text file, use the fputs program statement to write a line "72 degrees Sunny light wind. Nice!\n". print the return code of fputs (should be zero). close and exit. Test program...
READ CAREFULLY AND CODE IN C++
Dynamic Programming: Matrix Chain Multiplication Description In
this assignment you are asked to implement a dynamic programming
algorithm: matrix chain multiplication (chapter 15.2), where the
goal is to find the most computationally efficient matrix order
when multiplying an arbitrary number of matrices in a row. You can
assume that the entire input will be given as integers that can be
stored using the standard C++ int type and that matrix sizes will
be at...
IN C++
Write a program using for loops to produce the following output. Please read carefully the entire specification! Your program must work for any odd number entered by the user, not just 13. (NOTE that there is no space after the colon on the Hill, Triangle, and Diamond labels.) Enter an odd number width: 13 Hill: Triangle no spaces Diamond
Write neat please. Show step by step please. Read instructions
carefully. double check your work. Box in answer please. Thank
you
11. [5pts. Each] Let V = (1,-1,1), 12 =(2,1,3) and is =(-1,-1,2) be eigenvectors of the matrix A corresponding eigenvalue 4 = 2, =-2 and 1=3, respectively, and let v = (5.0,3) a. Express 1 as a linear combination of . 1, and is. b. Find Av.
Read each problem carefully and show all work to receive full credit. Place final answers in the boxes provided to receive full credit. Problem I (10 points) Given: Figure shown below Find: Determine the y-centroid of the composite shape 300 mm 300 mm 300 mm 0 mm 360 mm 100 mm