subject
Engineering, 28.11.2019 03:31 minideeri

Take the program written last weekend that creates a deck of cards, shuffles them, and then lists them out. modify the program to 'deal' two hands of cards (two players). each player will be dealt 5 cards. deal one to the first player, then one to second player. repeat until both players have 5 cards in their hand. then compute the total points in each player's hand and determine the winner with the most points. if a player has an ace, then count that as 11 points. print out the winning player total points and then his cards. then print out the losing player total points and his cards. turn in both your code and a copy of the screen output

ansver
Answers: 2

Another question on Engineering

question
Engineering, 03.07.2019 14:10
Amass of m 1.5 kg of steam is contained in a closed rigid container. initially the pressure and temperature of the steam are: p 1.5 mpa and t 240°c (superheated state), respectively. then the temperature drops to t2= 100°c as the result of heat transfer to the surroundings. determine: a) quality of the steam at the end of the process, b) heat transfer with the surroundings. for: p1.5 mpa and t 240°c: enthalpy of superheated vapour is 2900 kj/kg, specific volume of superheated vapour is 0. 1483 m/kg, while for t 100°c: enthalpy of saturated liquid water is 419kj/kg, specific volume of saturated liquid water is 0.001043m/kg, enthalpy of saturated vapour is 2676 kj/kg, specific volume of saturated vapour is 1.672 m/kg and pressure is 0.1 mpa.
Answers: 3
question
Engineering, 04.07.2019 16:10
An electrical motor raises a 50kg load at a construct velencity .calculate the power of the motor, if it takes 40sec to raise the load through a height of 24m(take g =9.8n/g)
Answers: 2
question
Engineering, 04.07.2019 18:10
The temperature of air decreases as it is compressed by an adiabatic compressor. a)- true b)- false
Answers: 2
question
Engineering, 04.07.2019 18:10
Water at 70°f and streams enter the mixing chamber at the same mass flow rate, determine the temperature and the quality of the exiting stream. 0 psia is heated in a chamber by mixing it with saturated water vapor at 20 psia. if both streams enters the mixing chamber at the same mass flow rate, determine the temperature and the quality of the existing system.
Answers: 2
You know the right answer?
Take the program written last weekend that creates a deck of cards, shuffles them, and then lists th...
Questions
question
Mathematics, 23.03.2020 16:45
Questions on the website: 13722363