It isn't passing the majority of the tests in the exam file - I know the problems are stemming from my attach and remove_current functions - I have just kind of hit brick wall.
Type: Posts; User: xMEGANx
It isn't passing the majority of the tests in the exam file - I know the problems are stemming from my attach and remove_current functions - I have just kind of hit brick wall.
It is pretty obvious that I have put a lot of effort into writing this program - I am not asking anyone to do my assignment for me - I'm looking for a solution about why my program is not working...
I have a program due in a few hours - and I just can't get this right!
Here is my implementation file:
#include <iostream>
#include <cassert> // Provides assert function
#include...
basically my three operators are the issues - help?
and I'm also having troubles compiling it. When I brought this EXACT program to my professor he was able to compile it with 0 errors now I'm...
OK so here is what I'm working with:
Header file:
// Provided by: Megan Kalscheuer
// Email Address: [email protected]
// FILE: stats.h
// CLASS PROVIDED: statistician
My code is supposed to output:
Enter account balance:
Enter account interest rate:
Enter the number of months until maturity
(must be 12 or fewer months):
When your CD matures in _ months,
it...
I'll have to google that one :-p
Do you mean like declare length = to a specific number?
So for an assignment I'm supposed to have my insertion sort program take numbers from a file (in this case infile.txt) and sort them using insertion sort then output the array.
This is what I...
Quick question, so I need to get the min and max of a file. The numbers in the file are:
3
5
8
4
and this is my code:
and i just added the using namespace std; in my time function
So here is my problem... I need to turn 24 hour notation into 12 hour notation, for example 14 34 into 2 34, but when my function runs I am just getting out exactly what I put in...
Here is my...
With that, now I'm just getting 0.990 for every year...
Yeah... I don't know, the equasion that my professor gave us was:
P_2 = k*p_1 - k*(p_1)^2
Where p_1= the initial population (.45)
and p_2= teh following population
Sooo I don't know
UPDATE:
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
OK so now I got it to compile and run, but it is just crazily adding up the years and giving me a value of 0.000 for the population...
My code looks like this...
#include <iostream>...
I'm writing a program for my intro to comp science class, here is the problem:
Write a program that the initial population =.45 (in thousands) k = 4 and you calculate the population over 10,000...
Here is a copy of my program:
#include <iostream>
using namespace std;
int main()
{
I'm sorry! I guess I should have posted what I have finished. Here is what I have done so far:
#include <iostream>
using namespace std;
int main()
{
In my intro to computer science course I have to write the following programs:
Problem #1:
You have secured a mortgage for a house that costs $240,000. The down payment is $40,000.
1)...
I did it! Thank you so much everyone for your help!
Basically, what I want to know is, how do I get it to just keep asking the above question?
so how would I get it to terminate?
how to I access it in the while loop condition?
(i apologize again and thank you all so much for your help)
OK now I'm at this:
#include <iostream>
using namespace std;
int main( )
{
const double PAY_INCREASE = 7.6;
double original_salary, new_salary, pay_raise;