C# Question

Question 1 (5 points)

The use of references to objects of preexisting classes as members of new objects is called:

Question 1 options:

Question 2 (5 points)

Composition is:

Question 2 options:

Question 3 (5 points)

A class’s __________ initializes members of that class.

Question 3 options:

Question 4 (5 points)

Instance variables or methods declared with the __________ modifier are accessible only in that class definition.

Question 4 options:

Question 5 (5 points)

In a method in which a parameter has the same name as an instance variable, using the this reference allows you to refer to:

Question 5 options:

Question 6 (5 points)

Composition is sometimes referred to as a(n) __________ relationship.

Question 6 options:

Question 7 (5 points)

A constructor CANNOT:

Question 7 options:

Question 8 (5 points)

The __________ of a class are also called the public services or the public interface of the class.

Question 8 options:

Question 9 (5 points)

Constructors:

Question 9 options:

Question 10 (5 points)

Having a this reference allows a(n):

Question 10 options:

Question 11 (5 points)

Object orientation uses classes to:

Question 11 options:

Question 12 (5 points)

Abstract Data Types:

Question 12 options:

Question 13 (5 points)

Which of the following should usually be private?

Question 13 options:

Question 14 (5 points)

Keyword __________ is used for constants whose values cannot be determined at compile time.

Question 14 options:

Question 15 (5 points)

Stacks are commonly referred to as __________ data structures.

Question 15 options:

Question 16 (5 points)

Which statement is FALSE?

Question 16 options:

Question 17 (5 points)

Every class inherits directly or indirectly from class:

Question 17 options:

Question 18 (5 points)

Which of the following describes a static variable?

Question 18 options:

Question 19 (5 points)

A __________ can be defined in a class to perform termination housekeeping on an object before the garbage collector reclaims the object’s memory.

Question 19 options:

Question 20 (5 points)

Which statement is FALSE?

Question 20 options:

Place this order or similar order and get an amazing discount. USE Discount code “GET20” for 20% discount

Posted in Uncategorized

C# Question

For this assignment, you’ll build an application that calculates the car loan amortization (month by month breakdown for the life of the loan). Prompt the user to enter in the amount of the car loan, the APR, and the car payment per month including interest. The final output of your program should break down the monthly output for the user with the final line showing the total amount paid, total interest paid, and the number of months it took to pay off the car.

Sample

If the user enters a car loan amount of 20,000 with an APR of 4.5 and monthly payment of 350, the output should look something like this. Note that formatting won’t be graded very harshly here for spacing, but it’s important to make sure you have the number values on each line as shown below and that you are formatting money values as currency (ahem… .ToString(“C”)).

Calculations from month to month will use what’s known as simple interest to determine the interest charge each month. Here’s a breakdown of how it’s calculated and your task will be translating this all to C#:

Determine the monthly interest rate by dividing the APR entered by the user by 12. Then divide by 100 since this is a percent

4.5 / 12 / 100 = 0.00375

Calculate the interest for the current month using the current balance. Make sure you round this to 2 decimal places to prevent rounding errors from month to month (use Math.Round for this since you actually want to round the number value instead of just format it for display):

21000 * 0.00375 = 78.75

Calculate the principle paid for the current month by subtracting the interest from step 2 from the payment

350 – 78.75 = 271.25

Calculate the remaining balance by adding the interest to the previous balance and subtracting the payment

21000 + 78.75 – 350 = 20728.75

Repeat this until the balance gets down to 0

Most likely, there will be a special case in the last month where the total payment left doesn’t match the balance + new interest. In that case, you’ll need to adjust the amount paid as shown in this example

Keep track of the total amount paid and total interest to print on the final line.

Place this order or similar order and get an amazing discount. USE Discount code “GET20” for 20% discount

Posted in Uncategorized

C++ Question

In this assignment, you will code for different sorting algorithms that we learned and experimentally compare their efficiencies.

1. Write six functions to code for the following six sorting algorithms in C++. Make your own header files to declare all the functions you need to implement each of these sorting algorithms. For example, for quicksort, you will have a header file such as “quicksort.h”, in which you will declare all the functions that you need to perform quicksort. Then you will include these header files in your main cpp program, in which you will implement and call all these functions. The input to all these sorts is the array of unsorted integers, the size of the array, and if required the start and end variables. The output of each of these sorts is the sorted array of integers printed on the console. Test these sorts with the unsorted array – A [89, 373, 1, 783, 23, 987, 12, 65, 28, 17].

a. Selection Sort

b. Bubble Sort

c. Insertion Sort

d. Merge Sort

e. Quick Sort

f. Heap Sort

2. Write a function to generate 10 unique dataset files of unsorted integers separated by a comma “,”. E.g., 34, 32421, 124124, 67, 92, … The sizes of these 10 datasets are (n) – 1000, 4000, 8000, 10000, 40000, 80000, 100000, 400000, 800000, 1000000. Generate random integers between 0 to 1,000,000 as the elements of each dataset. This function does not take any input arguments. This function generates and saves 10 “.txt” files. The output of this function is just a print statement to console that file generation completed.

3. Write a function to read the data from the above-generated files and construct 10 unsorted arrays. This function does not take any input arguments. This function declares 10 arrays of sizes sufficient to store the content of the above-generated files and constructs these arrays by reading these files. The output of this function is just a print statement to console that unsorted array generation completed.

4. Use the above-generated 10 arrays to give as the input to your six sorting functions and measure the duration of each function. Comment the statements you used to print the sorted array after each sorting function, as you need to measure only the time taken to sort. The output of each sort is the time taken in milliseconds to sort the given unsorted array. You can use “#include <chrono>” or “#include<time.h>” to measure the duration of a function in C++. While measuring the time you only need to measure the time taken by each sorting algorithm to convert the unsorted array into a sorted array. Note: The additional time taken, such as to construct your input unsorted array and to print your sorted array to console should not be included while measuring the duration of the sort.

5. Repeat the above duration measurement of each sort 3 times to calculate the average duration of each sort for each array. Plot a graph for the duration of different sorting algorithms including Selection Sort, Bubble Sort, Insertion Sort, Quick Sort, Merge Sort, and Heap Sort. The x-axis of the graph will be the dataset size (n) (i.e., same as your array size), and the y-axis will be the average of the three executions for each dataset size. Thus, your x-axis will have ten labels and value of runtime on the y-axis for each label. Draw the above-described dataset size to runtime curve for the six sorting algorithms (Selection Sort, Bubble Sort, Insertion Sort, Quick Sort, Merge Sort, and Heap Sort) in the same graph sharing the same axis labels. Add Legend entry for each curve on the graph and use a different pattern like dotted, dashed, straight line, and different bullet dimensions and color for each curve of a sorting algorithm. Note: You have to generate datasets (i.e., unsorted arrays) only once and you can reuse the same datasets across three executions of each sort and also across different sorting algorithms.

Submit the PDF with your name, the image of the graph, and your pointwise explanations of your observations from everything you do in this assignment and the results you observe. You should also submit an additional zip folder within which you need to have all your code files, README file with the compile and execution instructions, and your pre-compiled “.exe” executable files. On top of all the files, you need to mention your name as comments. All submitted PDF files must be named as “<your-name>_<assignment-name>.pdf”. For example, it will be “jankibhimani_sorting.pdf” for Prof. Janki Bhimani. You need to submit the single main file that implements all the above functions and is named as “<your-name>_sort.cpp”. All submitted code header files must be named as “<your-name>_<sort-name>”. For example, “jankibhimani_quicksort.h”. The zip folder containing all the files except PDF should be named as “<your-name>_code.zip”. For example, it will be “jankibhimani_code.zip”.

Please follow the “Guidelines for Software Engineering Techniques.pdf” and “Assignments and Project Style and Documentation Guidelines.pdf” made available to you in your Student Resources module for other document editing and code format guidelines.

Sample Graph (Note – your graph will have the curve showing the results you get by running the algorithms):

Image result for sorting complexity graph

Place this order or similar order and get an amazing discount. USE Discount code “GET20” for 20% discount

Posted in Uncategorized

C# Question

  1. Review section 7.5, “A Case Study: Analyze a Loan,” to better understand the use of arrays, arrays of structures, LINQ, and populating a form control from an array in a complete program.
  2. Start with a new Visual Studio project. Write a Visual Basic program to address the requirements of Chapter 7’s “Programming Projects,” #11. Fuel Economy.
    1. Create form as depicted in the exercise (Figure 7.94).
    2. Additionally, include:
      1. A label displaying the student name in italics
      2. A label displaying the workshop due date formatted of the form “Wednesday, February12, 2020”
      3. A button to exit and quit
      4. Each button should establish a keyboard access key (see in Chapter 2, “A Button Walkthrough”).
      5. The form properties should include the accept button and cancel button properties (see in Appendix B, “Manage Visual Basic Controls”).
    3. Write the Visual Basic program to address the requirements of the exercise.
      1. For the following, indicate new behavior or possible code changes with additional Program Header comments. (Note the rubric.)
      2. After the program functions correctly, make a copy of Mileage.txt then change Mileage.txt to include one additional 100-mile test (model, number of gallons used) for each of the five car models. Does your program still function?
      3. Will your program operate correctly if the number of models increase from five to six? Try it by adding a new model test entry to Mileage.txt.
      4. Can your program be modified to function with an arbitrary or varying number of models participating in the test? The change is not required, but add comments on what might need to be changed.
    4. Apply all standards as depicted in 1.5 Assignment, introduced in the textbook, and reinforced in discussion forums.
    5. Remember: do not flounder. Use the Collaboration Forum to pose questions and share learning.
  3. Be sure to File>Save All your work (never use “Save As”). Close and exit Visual Studio.
  4. Create submission zip archive.
    1. Make a new folder including student name – “WorkshopSix LastNameFirstName” as in “WorkshopSix BooleGeorge”
    2. Copy exercise project folder to the submission folder.
    3. Create zip archive of the submission folder. In Windows Explorer, right click folder name, select “Send to” and “Compressed (zipped) folder”. Full details provided in the 1.2 Assignment.
  5. Once the assignment is complete, save a copy for yourself and submit zip archive created in Step 3 by the end of the workshop. Be sure to follow submission naming standards.

Place this order or similar order and get an amazing discount. USE Discount code “GET20” for 20% discount

Posted in Uncategorized

C++ Question

Due Date : Tuesday, September 21, 2021 – 11:59 PM

– Follow instructions carefully, good quality work, get full credit, NO PLAGIARISM !

– Here you can find the assignment files https://we.tl/t-ienwSgq63E

– Here you can find the Book : https://www.chegg.com/books#mybooks

– Here you can find additional help and notes from class : https://we.tl/t-8rkw4vM3Ca

This is an Announcements from the Dr. :

First Announcement:

Additionally, I was very specific as to what was to be submitted to blackboard for the assignment. Assignments not submitted as described in the assignment document will not be accepted in the future.

If you had difficulty with this first assignment, it should be clear that you must spend some more time on reviewing C++. If you did not get the program to run correctly, please study the solution that is posted.

This assignment “assignment 2” is your first one using a user defined class. You MUST first study the material I posted last week on blackboard. You should also study about classes in your book. Most of the assigned code this semester will contain user defined classes.

If you have any questions, please let me know.

– Second Announcement:

The purpose of a new class is to NOT have to pass anything back and forth any more. functions are separate pieces of data that do not know about each other’s data. A class is a way of putting all functions and all variables in a new place (a class) and they know about each other and all of the data. You will NOT have to pass anything in parameter lists any more.

I have added a little more help here on how to rearrange your code and add a new class to your program. You should print out all 3 files and study the program written before and after a user class is added.

=

==

=== I posted the assignment with the work because they are may be helpful for you

==

=

Place this order or similar order and get an amazing discount. USE Discount code “GET20” for 20% discount

Posted in Uncategorized

C++ Question

For this assignment, you’ll build an application that calculates the car loan amortization (month by month breakdown for the life of the loan). Prompt the user to enter in the amount of the car loan, the APR, and the car payment per month including interest. The final output of your program should break down the monthly output for the user with the final line showing the total amount paid, total interest paid, and the number of months it took to pay off the car.

Sample

If the user enters a car loan amount of 20,000 with an APR of 4.5 and monthly payment of 350, the output should look something like this. Note that formatting won’t be graded very harshly here for spacing, but it’s important to make sure you have the number values on each line as shown below and that you are formatting money values as currency (ahem… .ToString(“C”)).

Calculations from month to month will use what’s known as simple interest to determine the interest charge each month. Here’s a breakdown of how it’s calculated and your task will be translating this all to C#:

Determine the monthly interest rate by dividing the APR entered by the user by 12. Then divide by 100 since this is a percent

4.5 / 12 / 100 = 0.00375

Calculate the interest for the current month using the current balance. Make sure you round this to 2 decimal places to prevent rounding errors from month to month (use Math.Round for this since you actually want to round the number value instead of just format it for display):

21000 * 0.00375 = 78.75

Calculate the principle paid for the current month by subtracting the interest from step 2 from the payment

350 – 78.75 = 271.25

Calculate the remaining balance by adding the interest to the previous balance and subtracting the payment

21000 + 78.75 – 350 = 20728.75

Repeat this until the balance gets down to 0

Most likely, there will be a special case in the last month where the total payment left doesn’t match the balance + new interest. In that case, you’ll need to adjust the amount paid as shown in this example

Keep track of the total amount paid and total interest to print on the final line.

Place this order or similar order and get an amazing discount. USE Discount code “GET20” for 20% discount

Posted in Uncategorized

C++ Question

For this assignment, you’ll build an application that calculates the car loan amortization (month by month breakdown for the life of the loan). Prompt the user to enter in the amount of the car loan, the APR, and the car payment per month including interest. The final output of your program should break down the monthly output for the user with the final line showing the total amount paid, total interest paid, and the number of months it took to pay off the car.

Sample

If the user enters a car loan amount of 20,000 with an APR of 4.5 and monthly payment of 350, the output should look something like this. Note that formatting won’t be graded very harshly here for spacing, but it’s important to make sure you have the number values on each line as shown below and that you are formatting money values as currency (ahem… .ToString(“C”)).

Calculations from month to month will use what’s known as simple interest to determine the interest charge each month. Here’s a breakdown of how it’s calculated and your task will be translating this all to C#:

Determine the monthly interest rate by dividing the APR entered by the user by 12. Then divide by 100 since this is a percent

4.5 / 12 / 100 = 0.00375

Calculate the interest for the current month using the current balance. Make sure you round this to 2 decimal places to prevent rounding errors from month to month (use Math.Round for this since you actually want to round the number value instead of just format it for display):

21000 * 0.00375 = 78.75

Calculate the principle paid for the current month by subtracting the interest from step 2 from the payment

350 – 78.75 = 271.25

Calculate the remaining balance by adding the interest to the previous balance and subtracting the payment

21000 + 78.75 – 350 = 20728.75

Repeat this until the balance gets down to 0

Most likely, there will be a special case in the last month where the total payment left doesn’t match the balance + new interest. In that case, you’ll need to adjust the amount paid as shown in this example

Keep track of the total amount paid and total interest to print on the final line.

Place this order or similar order and get an amazing discount. USE Discount code “GET20” for 20% discount

Posted in Uncategorized

C# Question

Question 1 (2.5 points)

The __________ control typically allows a programmer to “group” options together so that no more than one option in the group can be chosen at any given time.

Question 1 options:

Question 2 (2.5 points)

The __________ menu in Visual Studio provides options to manipulate the GUI layout you are creating, but it only appears when you choose a control in Design View.

Question 2 options:

Question 3 (2.5 points)

The __________ property allows the programmer to display useful text to the end user when the end user hovers over a control on a form.

Question 3 options:

Question 4 (2.5 points)

When obtaining the coordinates of the mouse, they:

Question 4 options:

Question 5 (2.5 points)

A __________ control allows the programmer to group controls together, but can also display a caption to the end user.

Question 5 options:

Question 6 (2.5 points)

Most controls share the same properties. This is because controls all derive from the same class, which is the __________ class.

Question 6 options:

Question 7 (2.5 points)

You can access event information on a control by accessing MSDN help information by pressing the __________ key.

Question 7 options:

Question 8 (2.5 points)

A __________ is a container for controls and components.

Question 8 options:

Question 9 (2.5 points)

A form’s autogenerated GUI code is all hosted on the __________ file.

Question 9 options:

Question 10 (2.5 points)

A __________ control allows a user to view a description of another control on a screen. It also enables a programmer to alter the visual style of that data. However, it does not allow an end user to alter the text.

Question 10 options:

Question 11 (2.5 points)

In order to add or remove an event from a delegate, you would use:

Question 11 options:

Question 12 (2.5 points)

A(n) __________ defines the “signature” of an event, indicating what data is generated when the event occurs.

Question 12 options:

Question 13 (2.5 points)

What does the InitialDelay property of the ToolTip determine?

Question 13 options:

Question 14 (2.5 points)

The __________ and __________ controls have properties such as Checked, CheckState, and ThreeState.

Question 14 options:

Question 15 (2.5 points)

The G in GUI stands for:

Question 15 options:

Question 16 (2.5 points)

A __________ control allows the programmer to group controls together, but does not include scrollbars.

Question 16 options:

Question 17 (2.5 points)

In order to use modifier keys you should:

Question 17 options:

Question 18 (2.5 points)

To prevent the display of input values for sensitive data, such as a password, you can set the __________ property to True.

Question 18 options:

Question 19 (2.5 points)

Docking and anchoring are easy ways to:

Question 19 options:

Question 20 (2.5 points)

A key press, button click, or even moving a mouse are all programmable:

Question 20 options:

Question 21 (2.5 points)

When creating a new custom visual control, the __________ class should be used to inherit all base properties and methods of a control provided by the .NET Framework.

Question 21 options:

Question 22 (2.5 points)

An MDI application has a parent window and child windows. To establish the relationship between a parent and a child, you need to set the __________ property of a child form to an instance of the parent form.

Question 22 options:

Question 23 (2.5 points)

A __________ control can display selectable items in a list and display the items in different formats.

Question 23 options:

Question 24 (2.5 points)

What is the event when a value is selected?

Question 24 options:

Question 25 (2.5 points)

The use of ToolStripMenuItems in a menu control generates a __________ event.

Question 25 options:

Question 26 (2.5 points)

The _____ property of the MonthCalendar control allows you to set the latest available date the user can choose on the calendar.

Question 26 options:

Question 27 (2.5 points)

You can allow multiple items to be selected in a ListBox control by setting the __________ property to MultiSimple or MultiExtended.

Question 27 options:

Question 28 (2.5 points)

You can use the Systems.Diagnostics__________ class to open other programs or websites outside of the application, such as notepad.exe.

Question 28 options:

Question 29 (2.5 points)

A menu item can be indicated as being selected by setting the __________ property to True.

Question 29 options:

Question 30 (2.5 points)

The __________ control allows the user to view and select from multiple items in a list.

Question 30 options:

Question 31 (2.5 points)

What event is generated when an MDI child is closed or activated?

Question 31 options:

Question 32 (2.5 points)

The __________ control allows you to display a hyperlink in a noneditable region on the form.

Question 32 options:

Question 33 (2.5 points)

A TabControl control displays several items in a tabular format on a form. Each TabControl contains a collection of __________ objects, allowing the programmer to group controls and information together in each tab.

Question 33 options:

Question 34 (2.5 points)

A horizontal line in a menu control is called a:

Question 34 options:

Question 35 (2.5 points)

An example of a TreeView is:

Question 35 options:

Question 36 (2.5 points)

A __________ control combines the features of a textbox and a drop down list.

Question 36 options:

Question 37 (2.5 points)

A good example of an MDI program is:

Question 37 options:

Question 38 (2.5 points)

LinkLabels are used to:

Question 38 options:

Question 39 (2.5 points)

The CheckedListBox control extends a __________ control by including checkboxes next to each item.

Question 39 options:

Question 40 (2.5 points)

An __________ event occurs whenever a CheckedListBox item is checked or unchecked.

Question 40 options:

Place this order or similar order and get an amazing discount. USE Discount code “GET20” for 20% discount

Posted in Uncategorized

C++ Question

Card games have existed for hundreds of years and come in a wide variety of manners. Cards usually have a backside which makes the card indistinguishable from the other cards in the same deck. The Front side will typically give the card some meaning and shows how the card will be applied according to the rules of the game. Games vary in complexity from simple games like Go-Fish to complex poker games which carry hand types based on complex combinations of the card vale and suite.

Card games give to a strong example of data management. If we take a basic deck of playing cards and break it down, we can see why. An individual card can be looked at as having two pieces of data associated with it. A value and a suit. In a standard 52 card deck, there are 52 unique combinations from 13 value types (2-10 plus jack, queen, king and ace), and 4 suits (spade, club, diamond, heart). If we look at a card as a single object, we can look at the deck as a list of card objects. Card objects can also move from the deck to hand as moving from a large list container to a small list container. This smaller list container can be sorted and evaluated according to the rules of the game.

You are tasked with designing a program for a card game. This program should create a Deck, populate the Deck with Card objects and randomize the order of the cards. Cards should then be played to hands in accordance to the rules of the game.

Over the next week, I would like you to decide on the game you propose to create a program for. Some suggestions would be games like, Black Jack, Draw Poker, Uno, Hearts… etc. The game must require at least 2 players, and a single deck of unique cards which all players feed from, and formal rules.

Complexity of games vary, and I will only require one complex piece of the game. For example, a game like poker requires that the hand combinations are compared to determine which hand is of higher value; Full house is of higher value then a pair of aces, or three kings is of higher value then three queens. For poker I would not require an AI for a computer player as that would be beyond the scope of this class and the program will already have a complexity piece to it. A game like Go-Fish on the other hand does not need a complex piece to determine if the player has four of a kind. This program I would require an AI player component and want to make sure that the computer player is not requesting just the same card each time of the player.

When you return next week, I will require a write up of the following:

  1. The Game you want to develop
  2. The approach you want to take
  3. The Complexity Component
  4. If you choose to have one, your partner.

If you do choose to have a partner, I will expect more from your project.

Send me an email of what you are planning.

part 1

Specification for building your Deck

For part 1 of your card game you will need to create a specification for your card deck.(I choice blackjack)

This specification will include functions for populating cards to your deck and shuffling the deck (randomizing the order of the cards).

For the specification I do expect a list of each operation with preconditions and postconditions

Part 2

For Task 2, You must implement the code for your deck. This implementation will require a test menu that can be easily used to demonstrate and test the functionality thus far.

Card Game Project Requirements:

Title Screen

Title Menu:

  • Run Game
  • Rules – How game is played. This should display a string output explaining the game.
  • Run Test Mode

Object Oriented Design pieces:

  • Building Card Objects
  • Building a Deck of Card Objects
  • Shuffling Card Objects in Deck
  • Creating Player Objects
  • Moving cards from Deck to Player
  • Validating Card values

Functional Design pieces:

  • Test Engine – Used to test pieces of functionality separately
    • Should allow for test cases to validate functions are working as expected
  • Game Engine
    • Pregame functions – betting, dealing out cards, number of players. Essentially any thing that needs to happen before game starts.
    • Game workflow – setting which players turn it is, giving player turn choices. If Computer Player exist then logic must be in place to handle Computer players choices.
    • Game Over conditions – What happens at end of game

Design Documentation

  • Overview of what program does.
  • Specification of each Object (Card, Deck, Player)
  • Description and workflow for game engine.

Complexity requirement:

  • Part of the Program which adds complex logic; Validation of Card values, complex workflow for determining whos turn it is, Decision making for Computer players.

Code Standards:

  • Code is Readable
  • Variable Names are meaningful
  • Code Tabs Lineup properly
  • Comments are handled appropriately

Place this order or similar order and get an amazing discount. USE Discount code “GET20” for 20% discount

Posted in Uncategorized

C++ Question

Class Project

Card games have existed for hundreds of years and come in a wide variety of manners. Cards usually have a backside which makes the card indistinguishable from the other cards in the same deck. The Front side will typically give the card some meaning and shows how the card will be applied according to the rules of the game. Games vary in complexity from simple games like Go-Fish to complex poker games which carry hand types based on complex combinations of the card vale and suite.

Card games give to a strong example of data management. If we take a basic deck of playing cards and break it down, we can see why. An individual card can be looked at as having two pieces of data associated with it. A value and a suit. In a standard 52 card deck, there are 52 unique combinations from 13 value types (2-10 plus jack, queen, king and ace), and 4 suits (spade, club, diamond, heart). If we look at a card as a single object, we can look at the deck as a list of card objects. Card objects can also move from the deck to hand as moving from a large list container to a small list container. This smaller list container can be sorted and evaluated according to the rules of the game.

You are tasked with designing a program for a card game. This program should create a Deck, populate the Deck with Card objects and randomize the order of the cards. Cards should then be played to hands in accordance to the rules of the game.

Over the next week, I would like you to decide on the game you propose to create a program for. Some suggestions would be games like, Black Jack, Draw Poker, Uno, Hearts… etc. The game must require at least 2 players, and a single deck of unique cards which all players feed from, and formal rules.

Complexity of games vary, and I will only require one complex piece of the game. For example, a game like poker requires that the hand combinations are compared to determine which hand is of higher value; Full house is of higher value then a pair of aces, or three kings is of higher value then three queens. For poker I would not require an AI for a computer player as that would be beyond the scope of this class and the program will already have a complexity piece to it. A game like Go-Fish on the other hand does not need a complex piece to determine if the player has four of a kind. This program I would require an AI player component and want to make sure that the computer player is not requesting just the same card each time of the player.

When you return next week, I will require a write up of the following:

  1. The Game you want to develop
  2. The approach you want to take
  3. The Complexity Component
  4. If you choose to have one, your partner.
  1. I want to do blackjack project Game and start doing the assignment using the code I pr
  2. #include<iostream>
    <code><dfn>#include<ctime></dfn>
    <dfn>#include<string></dfn>
    <var>using</var> <var>namespace</var> std;
    
    <var>void</var> setup();
    
    <var>void</var> output();
    
    <var>int</var> dealACard();
    
    <var>int</var> getRand();
    <var>static</var> <var>int</var> i = -1;
    
    <var>int</var> main()
    {
        output();
        setup();
    }
    
    <var>void</var> output()
    {
        string name;
        cout << <kbd>"Welcome to blackjack \nPlease enter your name: "</kbd>;
        cin >> name;
        cout << <kbd>"\n"</kbd>;
    }
    
    <var>void</var> setup()
    {
        <var>int</var> total, d1, p1, p2;
        <var>char</var> choice;
        
        d1 = getRand();
    
        cout << <kbd>"The dealer: "</kbd> << endl;
        cout << <kbd>"?"</kbd> << <kbd>" + "</kbd> << d1 << <kbd>"\n"</kbd> << endl;
        
        p1 = getRand();
        p2 = getRand();
    
        total = p1 + p2;
    
        cout << <kbd>"You: "</kbd> << endl;
        cout << p1 << <kbd>" + "</kbd> << p2 << <kbd>" = "</kbd> << total << endl;
    
        cout << <kbd>"\n"</kbd>;
    
        cout << <kbd>"Do you want to hit (h) or stand (s)?: "</kbd>;
        cin >> choice;
    }</code>

Place this order or similar order and get an amazing discount. USE Discount code “GET20” for 20% discount

Posted in Uncategorized