No it does not compile, but everyone on this forum is so quick to jump to the conclusion that everyone wants them to do their homework for them. I don't want that I would prefer to know how to do it....
Type: Posts; User: dmeyers81
No it does not compile, but everyone on this forum is so quick to jump to the conclusion that everyone wants them to do their homework for them. I don't want that I would prefer to know how to do it....
This is the input file I must use names.txt-
Franklin Delano Roosevelt
Abraham Lincoln
William Henry Harrison
John Fitzgerald Kennedy
Rutherford Birchard Hayes
Thomas Jefferson...
Its a question of how do i write it in c++
i found the average already but i need to figure the standard deviation of the array.
I have this function in a separate file to be called in the main program. I know that i have to have a for statement under the first one where i already figured the sum. Please help.
...
i figured it out!! i appreciate it though thanks
it tells me on the cout for standard deviation that it is a conversion from an int to a float?
. Your program must include a main program that opens an input file, a function that reads the content of the file into a partially filled array, and a function that computes and returns the standard...
I fixed the if else statements. I'm getting an error that says it cannot convert parameter 5 from char to char &? It's under the keep statistics comment. Also in the get input function it says char...
it doesnt compile it says that theres a few of my if statements wrong?
//-----------------------------------------------------------------------
// File-----------rock paper scissors
// This program plays a game of Rock-Paper-Scissors and displays some
// statistics...
Alright guys this is it. I almost got it but i can't get it to compile. It says there is an illegal if-else statement, and term does not evaluate to a function taking 3 arguments.
#include...
OK now i have absolutely no idea what to do. I feel like I'm really close, but there is a lot of little things that aren't right. This project was due today, but if I turn it in tomorrow working, ill...
I'm pulling my hair out over this and I feel like it shouldn't be that hard.
ok so i fixed all of that, but i still do not have the function right....is the function calculating the right thing? and where do i call for it?
1>------ Rebuild All started: Project:...
error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
1>C:\Users\Dillon\Documents\Visual Studio 2005\Projects\project5\Debug\project5.exe : fatal error LNK1120: 1...
I've been looking at this for hours and my brain hurts i can not figure this out..i have officially decided that programming isnt for me haha...any more suggestions?
#include <iostream>
using...
So what would i set the variables inside of the function equal to?
I'm not exactly sure where to put the call for the function inside the program. The mod operator is to be used somewhere, and I'm not really sure where that goes either.
//----------------------------------------------------------------------------
//File--------project5.cpp
//Programmer--
//Course------CSC115
//Project-----Project #5
//Due---------November 4,...
I learned about functions for the first time today and they were confusing to me.
All other programming projects we have had have only used if-statements, while-statements, do-while statements,...
I do know basic c++ but i feel like i took a class that is at a higher level than i should have
I don't even know what variables to declare or exactly how to write my own functions, i took notes...
Well you dont have to do it for me but if you would help me i would be very appreciative
How do you do it?....please lol
Background
Zeller’s Congruence is a formula that calculates the day of the week on which any date falls, given the month, day, and year. Zeller’s Congruence is:
(D + floor((M+1)*26/10) + Y +...