Make a C++ program that will print this output:
1
16
49
100
169
Make a C++ program using while loop to find the factorial of a positive integer entered by user. (Factorial of n = 1*2*3....*n).
defining a function that checks for duplicates in the array. It is simply a function that checks if the new item you are trying to add is already in the list or not. If it is in the list, the function will return any non-zero value (e.g. 1) to indicate TRUE or 0 for FALSE. This function can be called before adding the item to the array. A sample function call would be like
if (!(inthelist(newItem, array)))
add(newItem, array)
You may also create functions that accepts valid input only and another function displaying the contents of the array.
Construct a pseudo code and flowchart which reads in two integer values. Then display all the numbers that is located between two numbers. If the first number entered is smaller than the second number entered, print all numbers in ascending order. On the other hand, if the first number entered is greater than the second number entered, print all numbers in descending order. Example: Input : 3 7 Output : 3 4 5 6 7 Input : 7 3 Output : 7 6 5 4 3
Write a program that will get the average of all integers from 1 to 20 using do-while loop.
Write a source-code that counts the number of vowel, consonant letters and the total number of letters on
a text. Use this text: “This is the sample text!”.
Using the array below, write a source-code that read, display in horizontal setup, sum up the element
value and display the highest value.
Hint: var[?] > highest then highest = var[?]
Array: 2, 4, 5, 7, 8, 10
is there any stop by step solution that displays most of the formulas
You want to know your grade in Computer Science, so write a program that continuously takes grades between 0 and 100 to standard input until you input "stop", at which point it should print your average to standard output.
If you assign the result of calling a void function to a variable in Python, you get: