Summary
User selects their weapon - rock, paper, or scissors. Computer selects random weapon, winner is determined. Selected weapons, winner, and win-loss-tie record are displayed. User can continue to play for as long as he/she would like.
Preview
/* Title - Rock, Paper, Scissors
* File name - Lab19
* Programmer - 415 Erich Musick
* IPO - Input - User selects their weapon - rock, paper, or scissors
* Process - Computer selects random weapon, winner is determined
* Output - Selected weapons, winner, and win-loss-tie record are
* displayed. User can continue to play for as long as he/she
* would like.
*/
/*************************** H E A D E R F I L E S ***************************/
//#include "iostream.h"
#include "waittoclose.h" // Add to project waittoclose.cpp
//#include "apstring.h" // Add to project apstring.cpp
#include "randgen.h" // Add to project randgen
.
Summary
User inputs a max width and symbol. Diamond is displayed with proper spacing.
Preview
/* Title - Diamond
* File name - Lab20
* Programmer - 415 Erich Musick
* IPO - Input - User inputs a max width and symbol
* Process - None.
* Output - Diamond is displayed with proper spacing
*/
/*************************** H E A D E R F I L E S ***************************/
//#include "iostream.h"
#include "waittoclose.h" // Add to project waittoclose.cpp
//#include "apstring.h" // Add to project apstring.cpp
//#include "randgen.h" // Add to project randgen.cpp
#pragma hdrstop
//#include "apvector.h" // DO NOT ADD TO PROJECT apvector.cpp
//#include "apmatrix.h" // DO NOT ADD TO PROJECT apmatrix.cpp
/******************** F U
Summary
User inputs the first and last numbers in a range. Prime factorization for each number is calculated and displayed.
Preview
/* Title - Prime Factorization
* File name - Lab21
* Programmer - 415 Erich Musick
* IPO - Input - User inputs the first and last numbers in a range
* Process - Prime factorization for each number is calculated
* Output - After being calculated, each prime factorization is
* displayed
*/
/*************************** H E A D E R F I L E S ***************************/
//#include "iostream.h"
#include "waittoclose.h" // Add to project waittoclose.cpp
//#include "apstring.h" // Add to project apstring.cpp
//#include "randgen.h" // Add to project randgen.cpp
#pragma hdrstop
#include "apvector.h" // DO NOT ADD TO PROJECT apvector.cpp
#
Return to Resources