No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I believe all of my logic is sound, but syntax is off a bit... -ask for total numbers -for loop to input total numbers -1)input first number -2)throw exception "must be positive" -3)if negative > back to 1 -4)if no exception > calculate average This is my first program using … |
|
Creating a program with a circle class that has 3 private variables and 3 public functions and then have accessor & mutator functions. I know this isn't right, but I've gone through the book and my notes and I feel like I've mixed up a few ways of doing it … |
|
Can't get the right output.. Trying to calculate mean, standard deviation, & variance through data structures. [B]Output:[/B][CODE]Mean: -9.25596e+061 Standard Deviation: 2.2836e+046 Variance: 5.21481e+092[/CODE] [B]Code:[/B][code] #include <iostream> #include <stdio.h> #include <math.h> using namespace std; struct StatData { double Data[10]; double mean; double stdDev; double variance; }; int main() { const int … |