User Profile

Collapse

Profile Sidebar

Collapse
DaRok28
DaRok28
Last Activity: Apr 17 '07, 02:41 AM
Joined: Feb 18 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • DaRok28
    started a topic Suggestions for Double Declining Depreciation?
    in C

    Suggestions for Double Declining Depreciation?

    Code:
     #include <iostream> 
    using namespace std;
     
    int main()
    {
    int i, iYears;
    float fInitialVal, fSalvageVal;
    char cAgain;
     
    do
    {
    	 cout << endl << "Please enter an initial value: ";
    	 cin >> fInitialVal;
    	 cout << endl << "Please enter a salvage value: ";
    	 cin >> fSalvageVal;
    	 cout << endl <<
    ...
    See more | Go to post
    Last edited by r035198x; Apr 16 '07, 03:20 PM. Reason: added code tags

  • DaRok28
    replied to I need some help, Please!
    in C
    It happens everytime the 0 is the second number....
    See more | Go to post

    Leave a comment:


  • DaRok28
    started a topic I need some help, Please!
    in C

    I need some help, Please!

    Code:
    #include <iostream>
    using namespace std;
    
    int GCD(int a, int b)
    {
       while(1)
       {
          a = a % b;
             if(a ==0)
                return b;
             b = b % a;
          if(b == 0)
             return a;
       }
    }
    
    int LCM(int x, int y)
    {
       int i;
       if (x > Y)
          for(i = y; i <= x * y; i++)
    ...
    See more | Go to post
    Last edited by Ganon11; Mar 19 '07, 10:45 PM. Reason: code tags added

  • DaRok28
    replied to Quadratic equations, need some help
    in C
    Thanks, I am not sure if what I did is correct, but i went off of what you told me and it worked, so thanks...
    See more | Go to post

    Leave a comment:


  • DaRok28
    started a topic Quadratic equations, need some help
    in C

    Quadratic equations, need some help

    // Program Description:
    // This program solves quadratic equations to find their roots. This
    // program takes values of a, b, and c as input and outputs the root(s).
    // The user can repeat the calculation for as many equations as they like.

    Code:
    #include <iostream>
    #include <cmath>
    #include <complex>
    using namespace std;
    
    int main()
    {
       char
    ...
    See more | Go to post
    Last edited by horace1; Mar 5 '07, 03:52 PM. Reason: added code tags

  • DaRok28
    started a topic lets try this one more time, I need some help please!
    in C

    lets try this one more time, I need some help please!

    Code:
    I also need some help 
    --------------------------------------------------------------------------------
    
    #include <iostream>
    #include <cmath>
    using namespace std;
    
    int main()
    {
       char cAgain;
       int iDataset = 1;
       double dRoot, dValuea, dValueb, dValuec;
    
       cout.setf(ios::fixed);
       cout.setf(ios::showpoint);
       cout.precision(4);
    ...
    See more | Go to post
    Last edited by Ganon11; Mar 4 '07, 11:40 PM. Reason: code tags added, indented

  • DaRok28
    replied to I need help!
    in C
    Code:
    #include <iostream>
    #include <cmath>
    using namespace std;
    
    int main()
    (
       char cAgain;
       double fWindchill, fTemperature, fWindspeed;
       
       do     
       (
           cout.setf(ios: :fixed);
           cout.setf(ios: :showpoint);   
           cout.precision(4);
           cout << endl << “Please enter temperature, in degrees Celcius”;
    ...
    See more | Go to post

    Leave a comment:


  • DaRok28
    started a topic I need help!
    in C

    I need help!

    I am writing a program that is calculating windchill but I have two errors that I need help with because I am a just learning how to program.

    Program1.cpp:22 : error: no match for ‘operator<<’ in ‘ (&std: :cin) ->std: :basic_istream< _CharT, _Traits>: :operator>> [with _CharT = char, _Traits = std: :char _traits<char>](((double&)(&dT emperature))) <<std: :endl’

    Program1.cpp:24 :...
    See more | Go to post
No activity results to display
Show More
Working...