Entries by Student

write my assignment 11655

Statics and probability, question four. mat – SLU ……………

Based on a poll , 65% of Internet users are more careful about personal information when using a public Wi – Fi hotspot . What is the probability that among three randomly selected Internet users , atleast one is more careful about personal information when using a public Wi – Fi hotspot ? How is the result affected by the additional information that the survey subjects Volunteered to respond ?"The probability that at least one of them is careful about personal information is \| Round to three decimal places as needed . !’How is the result affected by the additional information that the survey subjects volunteered to respond ?A. It is very possible that the result is not valid because not everyone uses public Wi – Fi.OB . The result should not be impacted by this because volunteers are likely to have the most relevant responses .OC. It is very possible that the result is not valid because the sample may not be representative of the people who use public Wi – Fi .OLD. The result should not be impacted by this because there is no reason to lie when responding .

 

"Not answered?"


Get the Answer

write my assignment 30934

I have a program to play Reversi where a user plays against an AI(Algorithm), however I need a program where 2 algorithms play against each other. I don’t know how to change the program so that the 2 algorithms can play against each other.

These are the rules:

In this project you are required to:

1. Implement Reversi for a board size of n x n where 4 ≤ n ≤ 16 and n is always even.

2. Implement two different algorithms that will play Reversi against each other e.g. an algorithm that randomly chooses a valid move may be one of your algorithms.

You are required to develop a computer program in C++ that allows two different algorithms to compete against each other in a game of Reversi. Your code must meet the following specifications:

• Read in a list of numbers specifying board sizes from a file. • Every game must begin in the starting configuration as seen in figure 1. • Algorithm 1 will take alternating turns with algorithm 2 at placing their markers in the grid. • A marker cannot overwrite already filled position in the grid. • The list of moves made by each algorithm must be stored to an output file.

Figure 1:

4, 4

Example of output:

size = 4 (r=row, c=column)

r0c1 alg1 , r1c1

r0c0 alg2 , r1c1

r1c0 alg1 , r1c1

r2c0 alg2 , r1c0 r2c1

r3c1 alg1 , r2c2

r2c3 alg2 , r2c2

r3c2 alg1 , r2c2

r0c3 alg2 , r1c2

r1c3 alg1 , r1c2 r2c3

r0c2 alg2 , r0c1 r1c1

r3c0 alg1 , r2c1

r3c1 alg2 , r2c1

alg1 = 7

alg2 = 9

win = alg2

Code I have so far:

#include<fstream>

#include <string>

#include<string>

#include <iostream>

using namespace std;

const int NUM_ROWS = 8, NUM_COLS = 8;

int determine_game_type_new_or_existing();

void initialize_game_board(int gb [][NUM_COLS]);

void display_gameboard_row(unsigned int rownum, int gb [][NUM_COLS]);

void display_gameboard(int gb [][NUM_COLS]);

void display_cell_top();

void display_cell_side(char cell_middle);

int main()

{

       int player_choice = 0;

       int gameboard [NUM_ROWS][NUM_COLS];

       int player, opponent;

       player_choice = determine_game_type_new_or_existing();

       switch (player_choice)

       {

               case 1:

                       {

                               initialize_game_board(gameboard);

                               break;

                       }

               case 2:

                               return 0;

               default:

                       {

                               cout << “Invalid choice!nn”;

                               return 1;

                               break;

                       }

       }

       display_gameboard(gameboard);

       int row, col;

       cout << “Make your move.nn”

                << “Row: “;

       cin >> row;

       while (row < 0 && row > 7)

       {

               cout << “Please enter a valid move between 0-7.n”;

               cout << “Make your move.nn”

                << “Row: “;

               cin >> row;

       }

       cout << endl << endl

                << “Column: “;

       cin >> col;

       while (col < 0 && col > 7)

       {

               cout << “Please enter a valid move between 0-7.n”;

               cout << “Make your move.nn”

                << “Column: “;

               cin >> col;

       }

       return 0;

}

int determine_game_type_new_or_existing()

{

       int the_answer = 0;

       cout << “Welcome to Othello!n”

                << “———————–nn”;

       do

       {

               //Ask the question

               cout << “1. New gamen”

                        << “2. Existing gamen”

                        << “3. Quitnn”

                        << “Enter your choice: “;

               cin >> the_answer;

               cout << endl << endl;

       }while (the_answer != 1 && the_answer != 2);

       return the_answer;

}

void initialize_game_board(int gb[][NUM_COLS])

{

       //This is a nested loop to make sure every cell is empty

       //Cell Codes: 0 = empty, 1 = white piece, 2 = black piece

       for (int i = 0; i < NUM_ROWS; i++)

       {

               for (int j = 0; j < NUM_COLS; j++)

               gb[i][j] = 0;

       }

       gb[3][3] = 1;//Put down white piece

       gb[4][4] = 1;//Put down white piece

       gb[3][4] = 2;//Put down black piece

       gb[4][3] = 2;//Put down black piece

}

void display_gameboard(int gb [NUM_ROWS][NUM_COLS])

{

       for (unsigned int num = 0; num < NUM_ROWS; num++)

       {

               cout << ”    “;

               display_gameboard_row(num, gb);

       }

       cout << ”    “;

       for(unsigned int num = 0; num < NUM_COLS; num++)

               display_cell_top();//Displays a horizontal line

       cout << ‘+’ << endl;

}

void display_gameboard_row(unsigned int rownum, int gb [NUM_ROWS][NUM_COLS])

{

       for (unsigned int num = 0; num < NUM_COLS; num++)

               display_cell_top();//Displays a horizontal line

       cout << ‘+’ << endl;

       cout << ”    “;

       for (unsigned int num = 0; num < NUM_COLS; num++)

       {

               display_cell_side(‘ ‘);//Displays a vertical line

       }

       cout << ‘|’ << endl;

       cout << ”    “;

       for (unsigned int col = 0; col < NUM_COLS; col++)

       {

               //char game_piece;//Either space, W or B

               if ( gb[rownum][col] == 0 )

           display_cell_side (‘ ‘);

       else if ( gb[rownum][col] == 1 )

           display_cell_side (‘W’);

       else if ( gb[rownum][col] == 2 )

           display_cell_side (‘B’);

       else

       {

           cout << “An internal error has occurred.” << endl;

           //exit (2);

           //return 2;

       }

       }

       cout << ‘|’ << endl;

       cout << ”    “;

       for (unsigned int num = 0; num < NUM_COLS; num++)

               display_cell_side(‘ ‘);//Displays a vertical line

       cout << ‘|’ << endl;

}

void display_cell_top()

{

       string cell_top = “+——“;

       cout << cell_top;

}

void display_cell_side(char cell_middle)

{

       string cell_left_side = “|  “;

       //string cell_middle = ” “;

       string cell_right_side = ” “;

       cout << cell_left_side << cell_middle << cell_right_side;

}

 

"Not answered?"


Get the Answer

write my assignment 28692

Can I get help with this Individual Project, MY SQL is not working. You are tasked with creating the database to store information for a university of your choosing. After initial design meetings with your client, the following business rules have been determined (click here for a video instruction to create a database with tables):

  • A student has a name, a birth date, and gender.
  • You must track the date the student started at the university and his or her current GPA, as well as be able to inactivate him or her without deleting information.
  • For advising purposes, store the student’s background/bio information. This is like a little story.
  • An advisor has a name and an e-mail address.
  • Students are assigned to one advisor, but one advisor may service multiple students.
  • A class has a class code, name, and description.
  • You need to indicate the specific classes a student is taking/has taken at the university. Track the date the student started a specific class and the grade earned in that class.
  • Each class that a student takes has 4 assignments. Each assignment is worth 100 points.

The following entity tables have been composed:

StudentsStudentIDintFirstNamestringLastNamestringBirthDatedateGenderstringStartDatedateGPAnumberIsActivebooleanBiostringAdvisorIDint AdvisorsAdvisorIDnumberFirstNamestringLastNamestringEmailAddrstring ClassesClassIDintClassCodestringClassNamestringDescriptionstring Students_ClassesStudentClassIDintStudentIDintClassIDintStartDatedateAssignment1numberAssignment2numberAssignment3numberAssignment4numberClassGPAnumber

Create a database in an SQL server, and translate this design into SQL server tables with appropriate fields. The data types above are general types. An int is an integer whole number. A number is a real number with a decimal point and fractional digits to the right of the decimal point. A string could be a single character, a few characters or even multiple paragraphs of text. Each DBMS may have several specific data types for each general type. The specific data type that you select will depend on the size and range of the values that will be stored in the field. The datatype bit can be used for Boolean fields. 

In the Students_Classes table, the assignment fields are used to record a grade for each of the 4 assignments in the class. Values range from 0-100. The GPA fields will store values from 0.00-4.00. In the Students table, the gender field will record an M or F.

All primary keys should be specified as “identity” or “auto-increment” fields, which means that the database management system will create a unique value for the field, each time a new row is added to the table. By default, the value starts at 1 for the first row added and increments by 1 for each new row inserted.

Your deliverable should be a Word document with the DDL script necessary to recreate all tables and relationships. Focus on proper datatypes, keys, identities, and constraints. Future assignments will depend on your design, so it is best to try and stick to the base specs. In addition to the DDL script, provide a screenshot of a diagram showing all tables and the relationships between them.

Please submit your assignment.

For assistance with your assignment, please use your text, Web resources, and all course materials.

Other Information

 

"Not answered?"


Get the Answer

write my assignment 14526

Based on readings and supplemented by a review of the global leadership trends, discuss how much you agree/disagree along with your rationale on the six megatrends of global leadership.

Vielmetter, G. (n.d.). About the megatrends. Hay Group. Retrieved July 31, 2017, from http:// at least one primary response no later than Wednesday midnight Eastern Standard Time to allow other student’s time to respond to your post.

  • At least two secondary posts should be completed by Sunday midnight on different days to allow students time to benefit from your thoughts and to send an additional response if necessary.
  • Discussion postings should be approximately 500-700 words for your primary response and 300-400 words for the secondary response.
  • Please note that the posts should reflect thoughts in your own words and not reproduce any content verbatim from any Internet sites or other materials.
  • Communicate in complete sentences, concise, focused paragraphs, and precise language. Excessively wordy postings are not an advantage, but overly brief posts have little to contribute to the discussion. Provide adequate support for your postings; only agree or disagree with your colleague is not appropriate.
  • https://study.com/academy/lesson/what-is-global-leadership-definition-overview.html

    https:// 3 word. doc to upload ur work

     

    "Not answered?"


    Get the Answer