This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cmath> | |
#include <ctime> | |
#include <cstdlib> | |
using namespace std; | |
void displayGameRules() { | |
cout << "Welcome to Pass the Pigs! Here are the rules. " << endl; | |
cout << "The player tosses two pigs, each can land in six positions: " << endl; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cmath> | |
#include <ctime> | |
#include <cstdlib> | |
using namespace std; | |
void displayGameRules() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main () | |
{ | |
int taxrate; | |
double costmeal, tiprate; | |
int totalcost; | |
cout<<"what is the cost of your meal"; | |
cin>> costmeal; | |
cout<<" what is the tax rate"; |