Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. clip123

    NEED HELP WITH REVIEW QUESTIONS

    1)Write a statement that will create an object capable of holding the address of a float object? 2) Write a statement that will create a structure capable of holding 20 names each with a maximum of 40 characters? 3) Write a series of statements that will display on the screen the string in the...
  2. clip123

    how do you write a code for displaying the number of numbers entered

    hey thanks CDudd the program works fine now.
  3. clip123

    help with statistical analysis assignment

    This is what i have so far and i know that the variance part is wrong. #include <iostream> #include <cmath> using namespace std; int main ( ) { int x[20]={0}; int count, n=0; float sum=0, mean=0; double variance=0, StandardDeviation; cout << &quot;I will give you...
  4. clip123

    help with statistical analysis assignment

    Write program to display sum,mean,variance, and std deviation of an unknown number of numbers that does not exceed 20. (The output should look like this:) I will give you the sum, mean, and std dev of any series of numbers. How many numbers will you enter (up to 20)? 7 Type each number...
  5. clip123

    how do you write a code for displaying the number of numbers entered

    the while line didn't work cause when i entered 11 the program still accepted it.
  6. clip123

    how do you write a code for displaying the number of numbers entered

    #include <iostream> using namespace std; void main() { int n, count; //declaration double sum=0, average; int x[10]; //declare array’s elements as type int cout << &quot;How many numbers do you want to enter not exceeding 10? &quot;; cin >> n; //accept integer for (count=0...
  7. clip123

    how do you write a code for displaying the number of numbers entered

    The program sort of works now but I found that there is still one more problem. The problem is that I would like to restrict them from entering more than 10 numbers. But when i executed the program and typed in 11 numbers to enter it accepted it. I was wondering is there a way to make it so...
  8. clip123

    how do you write a code for displaying the number of numbers entered

    #include <iostream> using namespace std; void main() { int n, count; double sum=0, average; int x[10]; cout << &quot;How many numbers do you want to enter not exceeding 10? &quot;; cin >> n; for (count=0; count<=n-1; count++) { cout << &quot;Number that you entered is: &quot; ...
  9. clip123

    how do you write a code for displaying the number of numbers entered

    When you talk about count variable are you talking about using a for loop?
  10. clip123

    how do you write a code for displaying the number of numbers entered

    program that will accept up to 10 integers depending on user: 1. display number of numbers entered 2. numbers entered

Part and Inventory Search

Back
Top