# Math Formula

Page 1 of 1

## 2 Replies - 3097 Views - Last Post: 15 June 2008 - 04:45 PMRate Topic: //<![CDATA[ rating = new ipb.rating( 'topic_rate_', { url: 'http://www.dreamincode.net/forums/index.php?app=forums&module=ajax&section=topics&do=rateTopic&t=54873&amp;s=19e4ea88686d39fbf7bb78ea5a13f85d&md5check=' + ipb.vars['secure_hash'], cur_rating: 0, rated: 0, allow_rate: 0, multi_rate: 1, show_rate_text: true } ); //]]>

### #1 swilson23

Reputation: 0
• Posts: 29
• Joined: 15-June 08

# Math Formula

Posted 15 June 2008 - 04:14 PM

```/*Program One*/

#include <iostream>
using namespace std;

}

if ( average<=100 && average > 90)
return 'A';

else if ( average >80)
return 'B';
else if ( average > 70)
return 'C';

else if ( average >60)
return 'D';

else if ( average >= 0)
return 'F';//put in the average grade and it returns the char corresponding

}

int main()
{

cout <<"class program #"<< endl
<< "name email address" << endl << endl;

//display initial program identification

double sum=0;

for(int i = 1; i<=8; i++)

}
```

This post has been edited by NickDMax: 15 June 2008 - 04:16 PM

Is This A Good Question/Topic? 0

## Replies To: Math Formula

### #2 NickDMax

Reputation: 2254
• Posts: 9,245
• Joined: 18-February 07

## Re: Math Formula

Posted 15 June 2008 - 04:17 PM

(BTW, the title and description section of a post are limited in length -- so you need to put information inside you post).

### #3 swilson23

Reputation: 0
• Posts: 29
• Joined: 15-June 08

## Re: Math Formula

Posted 15 June 2008 - 04:45 PM

NickDMax, on 15 Jun, 2008 - 04:17 PM, said: