I am trying to write a program that:
write a function called convert that accepts 4 arguments as follows:
1) integer seconds
2) reference int hours
3) reference int minutes
4) reference int...
Type: Posts; User: learnin2program
I am trying to write a program that:
write a function called convert that accepts 4 arguments as follows:
1) integer seconds
2) reference int hours
3) reference int minutes
4) reference int...
I tried the suggestion and modified the code a little to make it more readable... The code I tried was:
#include<iostream.h>
#include<math.h>
int main( )
{
int day = 0, input = 0, total = 0;
...
Hello... I am working on a For Loop Problem.. I have tried modifying it in many ways for it to work - but it still doesn't ... any help would be appreciated..
The problem: To make a For Loop that...
I am trying to create a program that allows a user to enter the input amount (ex. .01)
Day Input Total
1 .01 .01
2 .02 .03
3 .04 .07
The...
I am still trying to make a program that:
Enter first term: 1
Enter second term: 4
Output:
1 + 2 + 3+ 4 = answer
1*1*1 + 2*2*2 + 3*3*3 + 4*4*4 = answer
This is the code that I have:...
the help i have recieved was great...
i just have one question about the suggestion...
cout << "Enter input #" << i + 1 << " here:" << flush;
on this line what does flush mean or do...
...
I have been working on a problem to enter the first term then a second term.... then add all of the numbers
for example..
enter first term: 1
enter second term: 5
output
1+2+3+4+5 = 14
I...
I am trying to make a program using functions and arrays.....
It needs to recieve a character array buff of 6 characters. This would be entered by the user. Then the character array buff needs...
I tried the last suggestion unfortuantely I it was never ending... information with I believe six digits plus six digits just kept continuing... this is the code I used.
#include<iostream.h>...
I tried correcting the while loop... I am a step closer but not quite there....
The code I now am using is
#include<iostream.h>
#include<math.h>
main()
{
int firstnum, secondnum,...
I am trying to figure out how to make a program so that when I enter a starting number and an ending number all numbers between that are added up.
For Example
First Number: 1
Second Number: 5...