Question: C++ programming fundamentals Q1: write codes of the following programmes 1- Ask user input of 100 values, store them in the file. Read all the

C++ programming fundamentals Q1: write codes of the following programmes 1- Ask user input of 100 values, store them in the file. Read all the values from file. Use each value (in place of x) in this formula. Find the value and display it. X = x^2+7-2*x/10*(1+2) 2- Write a Function to determine if a number is a special number or not. Special number is a number that is same whether you read it from left to right, or from right to left. You have to work only on 4-digit numbers. For example, 1221, 9229 and 7777 are all special numbers. While 1223, 1234,9574 are not special numbers. 3- Read an integer array from 0 to 10 index, calculate their sum, add 50 to that sum, and find average. Display it. Then read the same array from 10 to 0 index. Calculate their product, add -1000 to that product, and find average. Display it. Then add the above calculated sum and product, find its combined average, and display it. 4- Find and display all the prime numbers in the range of 2 to 1000.
C++ programming fundamentals Q1: write the code of the following 1- Ask user input of 100 values, store them in the file. Read all the values from file. Use each value (in place of x) in this formula. Find the value and display it. X = x^2+7-2*x/10*(1+2) 2- Write a Function to determine if a number is a special number or not. Special number is a number that is same whether you read it from left to right, or from right to left. You have to work only on 4-digit numbers. For example, 1221, 9229 and 7777 are all special numbers. While 1223, 1234,9574 are not special numbers. 3- Read an integer array from 0 to 10 index, calculate their sum, add 50 to that sum, and find average. Display it. Then read the same array from 10 to 0 index. Calculate their product, add "-1000" to that product, and find average. Display it. Then add the above calculated sum and product, find its combined average, and display it. 4- Find and display all the prime numbers in the range of 2 to 1000
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
