Throughout this course we examined development through the lens of the life-span. For this week we..

Throughout this course we examined development through the lens of the life-span. For this week we took a closer look at older adults. The perceptions about growing older into older adulthood often do not match the realities of being an older adult. For this assignment, explain some of the myths regarding older adults and some of the realities they often face. Put special emphasis on the social-economic and the physical factors that you have found in your readings and research on this topic. Based on your experiences how would you interpret these myths and realities of older adults? Make sure to justify your answers by citing relevant sources.

 

"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

I have this project for my cs class and it needs to coded in C. I have started it but am very stu…

I have this project for my cs class and it needs to coded in C. I have started it but am very stuck and need help completing it.

1. The basic rules of the game

A deck of poker cards are used. For simplicity, we have unlimited number of cards together, so we can generate a random card at a time without considering which cards have already dealt. The game here is to play as a player against the computer (the dealer). The aim of the game is to accumulate a higher points total than the dealer’s, but without going over 21. The cards 2 to 10 have their face values as points. J, Q, and K are10 points each, and the Ace is either 1 point or 11 points (player’s choice). To simplify the matter, we consider that the Ace is 11 points only, unless you like to implement the option anyway.

A) Betting and Winning

The player first place a bet. Let’s assume our minimum bet is $10 and maximum = is $1000.

B) Each hand will result in one of the following events for the player

Lose- the player’s bet is taken by the dealer

Win – the player wins as much as s/he bet. If s/he bet $= 10, s/he wins $10 from the dealer.

Blackjack (natural) – the player wins 1.5 times the bet. With a bet of $10, s/he wins $15 from the dealer.

Push – the hand is a draw. The player keeps his/her bet, neither winning nor losing money.

c) The start of the game

At the start, the player and the dealer receive two cards each. The player’s cards are normally dealt face up (displayed), while the dealer has one face down (called the hole card) and one face up. The best possible blackjack hand is an opening deal of an Ace with any ten-point card. This is called a “blackjack”, or a natural 21, and the player holding this automatically wins unless the dealer also has a blackjack. If a player and the dealer each have a blackjack, the result is a push.

d)   The player’s turn

The player can keep his hand as it is (stand) or take more cards from the deck (hit), one at a time, until either the player judges that the hand is strong enough to go up against the dealer’s hand and stands, or until it goes over 21, in which case the player immediately loses (busts).

e) The dealer’s turn

The dealer turns over his hidden hole card. If the dealer has a natural 21 (blackjack) with his two cards, he won’t take any more cards. If the dealer doesn’t have a natural, he hits (takes more cards) or stands depending on the value of the hand. The dealer must hit if the value of the hand is lower than 17, otherwise the dealer will stand. If the dealer goes bust, the player wins. Otherwise the player wins if s/he has a higher score, lose if s/he has a lower score, or push if s/he has the same score as the dealer. A blackjack hand beats any other hand, also those with a total value of 21 but with more cards.

f)  The program towards the end

If the player won or lost, s/he must decide whether to quit or to play another game unless the player runs out of money. Your program should give the player an initial betting amount of $1000.00.

2. Thea)  The main() program and its variables

You will need to decide on appropriate variables in which to store the player’s bank roll (in order to keep track of how much money the player has), the bet at a game, and other information. Let’s use an integer array gamerecord[] to store how many times the player won, lost, hit a blackjack, and got busted.

This bank roll, bet, and game record should be kept up to date on the player’s current status. (The program calls playing() to play a game, as discussed below. )

After each game, the program must report the result of the game, the amount of money won or lost, the current value of the bankroll, how many times the player won and lost, and how many times the player hit a blackjack and got busted. (You may want to record and report how many times the dealer got busted as well and report that.)

After each game (playing()), the program should allow the player to continue playing until s/he chooses to quit, or until the player runs out of money. This central program control may be done within main().

b) “Dealing” the card: the dealing() function

A separate dealing() function will be used to generate a card number. You will use a random number generator. The random number generator needs to be seeded with the current time at the beginning of the main program. The possible random values generated are 1 to 13, representing the cards’ face values. This function will return the number generated. The return value 1 represent the Ace’s face value, and the return value 11, 12, and 13 are J, Q, and K’s face value, respectively. Any other number is the card’s face value. A large random number n can be converted to a value between 1 to 13 by:  (1 + n %13).

A second function playing() will be used to play a single game until the player either wins or loses a bet, based upon the rules given above. This function should get a bet, modify the current amount of the player’s bank roll according to the game result, modify the gamerecord array values of the player won or lost, and the player hit the blackjack or got busted. These values are returned through function parameters (address passing).

The player can keep his hand as it is (stand) or take more cards from the deck (hit), one at a time, until either the player judges that the hand is strong enough to go up against the dealer’s hand and stands, or until it goes over= 21, in which case the player immediately loses the bet.

<p ‘=””>The dealer turns over his hidden hole card by displaying the hold card face value, and starts the game process automatically until the dealer wins or loses.

d) “Ending” and “Beginning” of the game

You need a separate function ending() to do the following: you should report the current value of the bank roll, how many times the player won, lost, hit a blackjack, and went busted. You need to save the above information into a text file as well.

You need a separate function beginning() to do the following at the beginning of your program in main(): the function will open the text file you used to save the game information for reading if it exists, so that your game can continue from previous played results. If the file does not exist or the bank roll has a balance below the minimum bet, you start the game from scratch as usual, and report “new game” or “continual game”.

3. Additional functions may be necessary and/or appropriate, depending upon the final overall design of your program.

It’s your choice to have minor variations.

 

"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

Write a 2 page paper . In your paper include: An explanation of your understanding of what loans rea

Write a 2 page paper.  In your paper include:

  • An explanation of your understanding of what loans really cost to consumers, and
  • How you feel about adjustable rate mortgages (ARMs) and borrowing practices
  • Please include information and topics to justify your explanation and reasoning

Include a title page and 3-5 references.  Only one reference may be from the internet (not Wikipedia).  The other references must be from the Grantham University online library.  Please adhere to the Publication Manual of the American Psychological Association (APA), (6th ed., 2nd printing when writing and submitting assisgments and papers.

    • Posted: 4 years ago
    • Due: 11/01/2016
    • Budget: $10
     

    "Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

    Hello everyone, I need help on a C++ assignment. (Each function except main should have a function h

    Hello everyone, I need help on a C++ assignment. (Each function except main should have a function header similarto this example:) /* ******************** getSize ******************** asks user for size size is saved in calling function via reference parameter */ Problem 2.1 Declare a structure with a type name: Car containing: Note: A destination is required if the car is loaded. If it isnot loaded the destination may be
    eithera destination or the word NONE. Create the following functions: main * Uses new to obtain space for the data structure * Calls the other two functions * Deletes the space obtained using new input * Read all the data from the user * After all the data has been read, put all this data into thestructure output * Print the data in a neat format Put the main function first. Use the function names and field names specified above. Arrange the functions in the order listed above. Test your program with the following data: —————————————————————————————————————————————— Problem 2.2 Repeat problem 2.1 with the following changes: Use class rather than struct with the typename: Car Make the data in the class Car public. Revise the input sothe input function will only read the data from the user,and then it will call an additional function named setUpCar whichwill put the data into the object. (IMPORTANT!) Test with the same data. . . .

     

    "Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

    Identify and evaluate valid statistical techniques in a given scenario to solve business problems… 1 answer below »

    Purpose:

    This assignment aims at Understand various qualitative and quantitative research methodologies and

    techniques, and other general purposes are:

    1. Explain how statistical techniques can solve business problems

    2. Identify and evaluate valid statistical techniques in a given scenario to solve business problems

    3. Explain and justify the results of a statistical analysis in the context of critical reasoning for a business

    problem solving

    4. Apply statistical knowledge to summarize data graphically and statistically, either manually or via a

    computer package

    5. Justify and interpret statistical/analytical scenarios that best fits business solution

    Assignment Structure should be as the following:

    This is an applied assignment. Students have to show that they understand the principles and techniques

    taught in this course. Therefore students are expected to show all the workings, and all problems must be

    completed in the format taught in class, the lecture notes or prescribed text book. Any problems not done

    in the prescribed format will not be marked, regardless of the ultimate correctness of the answer.

    (Note: The questions and the necessary data are provided under “Assignment and Due date” in the

    Blackboard.)

     

    "Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

    Draw schematics for each switch in Figure 9.4.

    Draw schematics for each switch in Figure 9.4.

     

     

    "Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

    How can states respond effectively to cyber-attacks originating beyond their own borders?… 1 answer below »

    Pick one question to answer only.

    1. How can states respond effectively to cyber-attacks originating beyond their own borders?

    Compare and evaluate responses of two or three different governments.

    2. How have the Internet and cyber-weapons

    impacted on-going conflicts, and how will they

    impact conflicts in the future? Respond using

    multiple recent, ongoing, or potential future

    conflict scenarios.

    Attachments:

     

    "Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

    Given a jar of cookies with 5 chocolate chip, 3 oatmeal, and 2 peanut butter cookies in it, determin

    Given a jar of cookies with 5 chocolate chip, 3 oatmeal, and 2 peanut butter cookies in it, determine the following probabilities.

    Getting an oatmeal cookie and then a chocolate chip cookie withoutreplacement.        

     Find P(O and CC)

      • Posted: 4 years ago
      • Budget: $999999.99
       

      "Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

      Login to SQL Server and create the Employee table (see table 1) using SQL statements….

      Login to SQL Server and create the Employee table (see table 1) using SQL
      statements. You will be assessed on the following,
      Is the SQL syntax error free?
      Has the primary key been implemented?
      Have the proper data types been implemented?
      Have you implemented appropriate constraints (e.g. null values, unique,
      referential integrity) to help in improving the integrity of data?
      Write the finalised SQL statements that you used to create the table. [2 marks]

      Attachments:

       

      "Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"