No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
4 Posted Topics
[ICODE]* Slot Machine Program by Harde*/ #include <iostream> #include <ctime> #include <cstdlib> using namespace std; int main() { int x,a, b, c, token=4; srand(time(0)); cout<<"\t********************************************************\n" <<"\t* Welcome to slot machine. *\n" <<"\t* Would you like to play? (1 to play, 2 not to play) *\n" <<"\t********************************************************\n\n"; cin>>x; while(token!=0) {cout<<"You have … | |
The program should calculate the average of the values stored in the [B]rates[/B] array. It then should display the average rate on the screen. Display the average with two decimal places. Complete the program using the [B]for [/B]statement. Save and then run the program. Complete the program and also have … | |
Hi guys, So I write this program so far.. 1 //exercise15.cpp - displays a pattern of asterisks 2 //Created/revised by <harde> 3 4 #include <iostream> 5 using namespace std; 6 7 int main() 8 { 9 for (int outer = 2; outer < 11; outer += 2) 10 { 11 … | |
Slot Machine I got all this so far !!! Nex is .. First build in support for writing output to an output file. 2 Make a copy of your existing program and modify the new program to be array based or to use functions or both. It does not have … |
The End.