Help with C++ Program ?

 Dont Buy Textbooks. Rent 'EM Save 60-80%



Program takes celsius degree

// and converts it to fahrenhite

// in increments of 5

#include <iostream>

using std::cout; // program uses cout

using std::cin; // program uses cin

using std::endl; // program uses endl

#include <iomanip>

using std::setw;

int main()

{

int c, f, even, odd; // declares variables

cout << "Input data in intervals of 5" << endl;

cout << "Start from 0" << endl;

for (f = 0; f < 100; f++)

// Counter to loop a hundred times

{

f = f*5;

c = (.5555556)*(f-32);

if( c & 0x00000001 )

{

c = even;

}

else

c = odd;

cout<< setw( 5 ) << "Odd"<< setw( 5 ) << "Even" << endl;

cout<< setw( 5 ) << odd << setw( 5 ) << even << endl;

// conversion Formula set to c

cout << "The Celsius equivalent is: " << c;

// printout statement

if(c < 35)

// Checks to see

Help with C++ Program ?c++ string



..yikes, what are you trying to do!?

is it a program that takes C, converts it to F, and THEN adds 5 , or is it a program that displays the C temperature in F, in intervals of 5?


FirstPrevious12NextEnd

More Related Questions and Answers ...
  • What exactly is wrong with this C++ code.?
  • Convert C++ to C - Hanoi Tower?
  • C++ Help... I cant figure this one out.. Plea..
  • C++ HELP, I can get the program running, but ..
  • My c++ program is a basic one but i get this ..
  • Need some C++ help?
  • C++, finding mode. It works - but is there an..
  • What is wrong with this c++ code?
  • This prog is suppsed to read an input file co..
  • Can any one here to tell .how i can add star ..
  • Compilation error in DEV C++?
  • Write a c++ program to print "hello"..
  • I live out in the country & have dial up ..
  • C++ Programming?
  • Given the variable initializations " C++..
  • Please people help me with this c++ codes?
  • Choose the C++ statement which is equivalent ..
  • Intro c++ question?
  • How can I make letters instead of numbers app..

  • The information post by website user , we not guarantee correctness.

    

    Dental Treatment Skin Whitening Skin Problems Skin Rashes Shoes