Using a LOOPING technique write a program that calculates 1+5+10+…+45.
Using a LOOPING technique write a program that calculates 1+5+10+…+45.
Write a program using loop and array that asks users to input 10 numbers, then calculates the average of those numbers. (In C++)
Write a C++ program using a function called sum that calculates the following summation: p=2+5 F = i2 + 5 i=1 Where n is provided by the user in the main function. The function calculates the sum and return it to the main function to display it.
Need to be solved in c# Write the program using the method that calculates the cube of numbers from 1 to 9 that comes as a parameter to it as a series.
Write a Python program using a for loop that calculates exponentials without using a Math module. Your program should ask the user for a base “base” and an exponent “exp”, and calculate baseexp.
Using the AddTwo program from Section 3.2 as a reference, write a program that calculates the following expression, using registers: A = (A + B) + (C + D). Assign integer values to the EAX, EBX, ECX, and EDX registers. AddTwo program: ; AddTwo.asm - adds two 32-bit integers ; Chapter 3 example .386 .model flat,stdcall .stack 4096 ExitProcess PROTO, dwExitCode:DWORD .code main PROC mov eax,5 ; move 5 to the eax register add eax,6 ; add 6 to the...
2. Write a C program that using arrays A and B calculates the given formula. The program should save the results in the Carray and then print it. int A[7] = {215, 431, 25, 64, 18, 99, 105); int B[7] = {50, 78, 31, 477, 22, 258, 312); (100 Points) C[i] (A[i]+B[i])x2 median (A)+median(B) Enter your answer 2. Write a program that using arrays A and calculates the given tornog Save the results in the Carray and then print int...
Write a Python program that calculates the product of all odd numbers between 1 and 20 (1x3x5x7x9x11x13x15x17x19), using the for loop and the range function.
Question 2 (10 pts) Write a Lisp program that calculates the length of a three-dimensional vector V: (x y z) based on the following formula. vector - length (V)- Vx2 + y2+z2 Implement your program in two different ways: 1- Using anonymous function (lambda) 2- Without applying the anonymous function Which method is more efficient in terms of memory allocation?
a. write a program that calculates the sum of two numbers x and y and then the program should call the function by address and prints the sum b. write a program that stores 10 integers provided at run time in an array. the program should prompt the user for a random integer exit in the array, the value must be replaced by a-1
C Programming: Write a C program that processes an array of 10 numbers, calculates the average of their square roots, and prints it out.