Entries by Student

write my assignment 31094

I need help with this assignment:

Project Deliverable 3 Personal Software Process (PSP1, JavaDoc, Exception Handling) Points: 50 —————————————————————————————————-

Instructions:

This assignment has to be completed by each student individually. NO COLLABORATION IS ALLOWED. Submit the following: YourASURiteID-ProjectDeliverable3.zip This compressed folder should contain the following files: 1. Connect4.java (Game Logic Module) 2. Connect4TextConsole.java (Console-based UI to test the game) 3. Connect4ComputerPlayer.java (logic to play against computer; generate computer moves) 4. JavaDoc documentation files (index.html and all other supporting files such as .css and .js files generated by the tool). Submit the entire folder. 5. Completed Time Log, Estimation worksheet, Design form, Defect Log, and Project Summary provided at the end of this assignment description 6. A few screen shots showing test results of your working game and answers to reflection questions written inline in this document 7. Readme file (optional: submit if you have any special instructions for testing)

—————————————————————————————————-

Connect4 Game: Connect4 is a 2-player turn-based game played on a vertical board that has seven hollow columns and six rows. Each column has a hole in the upper part of the board, where pieces are introduced. There is a window for every square, so that pieces can be seen from both sides. In short, it´s a vertical board with 42 windows distributed in 6 rows and 7 columns. Both players have a set of 21 thin pieces (like coins); each of them uses a different color. The board is empty at the start of the game. The aim for both players is to make a straight line of four own pieces; the line can be vertical, horizontal or diagonal.

Reference: https://en.wikipedia.org/wiki/Connect_Four —————————————————————————————————-

Program Requirements: To the previously developed Java-based Connect4 game, add a module to “play against the computer”. Can you take a look at my source code and give me a good starting point and help in how to finish it as a separate class called Connect4ComputerPlayer.java in the core package that generates the moves for the computer player. The logic to automatically generate computer moves does NOT have to be sophisticated AI algorithm. A naïve algorithm to generate the moves is sufficient for this assignment.

• Continue to make use of good Object-Oriented design • Provide documentation using Javadoc and appropriate comments in your code.

• Generate HTML documentation using Javadoc tool • Make sure you provide appropriate Exception Handling throughout the program (in the previously created classes as well)

Sample UI as shown in the figures below. 

| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Begin Game. Enter ‘P’ if you want to play against another player; enter ‘C’ to play against computer.

>>C

Start game against computer. It is your turn. Choose a column number from 1-7. 4 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |X| | | |

and so on..

—————————————————————————————————-

Personal Process: Follow a good personal process for implementing this game. You will be using PSP1 in this assignment. So, in addition to tracking your effort and defects you will have to estimate the effort and defects for the “play against computer” module as well as adding exception handling to previously created classes.

Here’s my code:

import java.util.Scanner;

 public class connect4

 {

   public static void main(String[] args)

   {

       Scanner in = new Scanner(System.in);

       char[][] grid = new char[6][7];

       for (int row = 0; row < grid.length; row++)

       {

           for (int col = 0; col < grid[0].length; col++)

           {

               grid[row][col] = ‘ ‘;

           }

       }

       int turn = 1;

       char player = ‘X’;

       boolean winner = false;     

       while (winner == false && turn <= 42)

       {

           boolean validPlay;

           int play;

           do {

               display(grid);

               System.out.print(“Player ” + player + “, Choose a column number from 1-7: “);

               play = in.nextInt();

               validPlay = validate(play,grid);

           }while (validPlay == false);

           for (int row = grid.length-1; row >= 0; row–)

           {

               if(grid[row][play] == ‘ ‘)

               {

                   grid[row][play] = player;

                   break;

               }

           }

           winner = isWinner(player,grid);

           if (player == ‘X’){

               player = ‘O’;

           }else{

               player = ‘X’;

           }

           turn++;         

       }

       display(grid);

       if (winner){

           if (player==’X’)

           {

               System.out.println(“Black won”);

           }else

           {

               System.out.println(“Red won”);

           }

       }else

       {

           System.out.println(“Tie game”);

       }

   }

   public static void display(char[][] grid)

   {

       System.out.println(” 0 1 2 3 4 5 6″);

       System.out.println(“—————“);

       for (int row = 0; row < grid.length; row++)

       {

           System.out.print(“|”);

           for (int col = 0; col < grid[0].length; col++)

           {

               System.out.print(grid[row][col]);

               System.out.print(“|”);

           }

           System.out.println();

           System.out.println(“—————“);

       }

       System.out.println(” 0 1 2 3 4 5 6″);

       System.out.println();

   }

   public static boolean validate(int column, char[][] grid)

   {

       if (column < 0 || column > grid[0].length)

       {

           return false;

       }

       if (grid[0][column] != ‘ ‘)

       {

           return false;

       }

       return true;

   }

   public static boolean isWinner(char player, char[][] grid)

   {

       for(int row = 0; row<grid.length; row++)

       {

           for (int col = 0;col < grid[0].length – 3;col++)

           {

               if (grid[row][col] == player  &&

                   grid[row][col+1] == player &&

                   grid[row][col+2] == player &&

                   grid[row][col+3] == player)

               {

                   return true;

               }

           }         

       }

       for(int row = 0; row < grid.length – 3; row++)

       {

           for(int col = 0; col < grid[0].length; col++)

           {

               if (grid[row][col] == player  &&

                   grid[row+1][col] == player &&

                   grid[row+2][col] == player &&

                   grid[row+3][col] == player)

               {

                   return true;

               }

           }

       }

       for(int row = 3; row < grid.length; row++)

       {

           for(int col = 0; col < grid[0].length – 3; col++)

           {

               if (grid[row][col] == player  &&

                   grid[row-1][col+1] == player &&

                   grid[row-2][col+2] == player &&

                   grid[row-3][col+3] == player)

               {

                   return true;

               }

           }

       }

       for(int row = 0; row < grid.length – 3; row++)

       {

           for(int col = 0; col < grid[0].length – 3; col++)

           {

               if (grid[row][col] == player  &&

                   grid[row+1][col+1] == player &&

                   grid[row+2][col+2] == player &&

                   grid[row+3][col+3] == player)

               {

                   return true;

               }

           }

       }

       return false;

   }

 }

 

"Not answered?"


Get the Answer

write my assignment 31223

Version:1.0 StartHTML:000000492 EndHTML:000066150 StartFragment:000001318 EndFragment:000066094 StartSelection:000001497 EndSelection:000066076 SourceURL:https://d2l.lonestar.edu/d2l/common/assets/pdfjs/1.0.0.30/web/viewer.html?file=%2Fcontent%2Fenforced%2F729300-018369-01-1191-1-1003%2FProject%2520Microeconomics1.pdf%3Fd2lSessionVal%3DcW0gPPjwacbq4PFD8RHqwehbW%26ou%3D729300&lang=en-us&container=d2l-fileviewer-rendered-pdf&fullscreen=d2l-fileviewer-rendered-pdf-dialog&height=890  PDF.js viewer       

Project Link:•https://comtrade.un.org/pb/downloads/2017/VolI2017.pdf•Content:The International Trade Statistics Yearbook 2017•Publisher: United Nations’ Statistics Division – Department of Economic and Social Affairs.How to read the report: •Open the above link, and download the PDF file to your computer. •When you skim reading the report you will notice the following:oStarting page number “1” you find “Part 1”, which shows the merchandise trade profiles for the world (regional and selected trade or economic groupings).oStarting  page  31 (index  of  countries)  until  page 371,  the  report  provides  a  country  by  country  trade profile, alphabetically, for most countries in the world.oIn each country’s trade profile, there exist summary profile on the first page, and at the end of the page you can see “Table 1” which shows each country’s “top 10 export commodities” for the different  periods  between 2015 and 2017.Project File:•In D2L (under Content), you can find tab called “Project”, under this “Project” tab you can find a file named “UN Table 1.” This PDF file includes data on selected countries with different percentages of poverties (poverty gap) for the year 2015.The Project:•You  will  have  to  write  a  socio-economic  essay  on  the  link  between  different  poverty  levels  of  different  countries  and  the  countries’ comparative advantages of different products, or group of products.Step-by-Step Instructions (Mandatory): (required to pass the project).•Compare at least 10 countries of your choice with different poverty gaps (preferred: include both developed and developing countries).•Investigate  whether  there exists a  trend  between  the  change  in the  poverty  gaps  (%)  and  the specific  products  that  the  country exports the most (In this project you always assume that countries export most the products in which they enjoy comparative advantages in producing them.•Conduct an academic literature review on your analysis (required: at least three academic articles).•Using your own conducted literature review, explain why such trends exist or do-not-exist.•Use your analysis to investigate which are the most significant products that high-poverty countries export? which are the most significant products that low-poverty countries export, which are the most significant products that medium-poverty countries export, and try to investigate if there is a trend. Compare your analysis by your findings from the literature review. •Do not use the “top 10 imported commodities” in the International Trade Statistics Yearbook 2017 (usually table 4 at the end  of  the  country-by-country  profiles),  as  some  countries  may  still  import  products  with  high  rate  of  comparative  advantages due to other reasons.•You will have to provide table(s) and/or chart(s) that show your summary of the countries you have selected. Be creative. •Close to the end of the project, explain how your analysis depended on your understanding of the textbook’s materials (only required topics of chapter 2 and chapter 15).    Textbook: Principles of Microeconomics, 7th edition, by Robert H. Frank, Ben Bernanke, Kate Antonovics, and Ori Heffetz. McGraw-Hill Education, 2018.•Minimum of 2500 words is required, excluding the abstract, titles, charts, and tables. An abstract is optional.•In  your  writing,  presume  that  the  reader  never  took  an  economics  class.  When  talking  about  certain  definition  or  topic,  assume the reader have never learned about it before, therefore, do not forget to define your terms, explain them (at least briefly), and never assume that the reader knows! Required Format:•Strictly use the same format of one of your reviewed studies.Important Hints:1.Read online about how to conduct an “argumentative essay.” 2.Every research has a research problem, so start by identifying the research problem. The research problem is telling the reader why this essay is important to read. You can use recent trends in trade to justify the research problem, or maybe a recent change in global competitiveness that has major impacts on the economies you are analyzing, in which your essay is imposing important analysis and significant findings. In the very beginning of your introduction, try to get the reader attentive to your research problem.3.You  can  choose  your  own  essay’s  title  that  relates  to  the  rule  of  socio-economic  measures  in  global  competitiveness,  or  simply  use  the  title  of  the  project  as  your  essay’s  title.  The  tile  of  the  project  is  “Comparative Advantages, Poverty, and Trade: A Socio-Economic Argumentative Essay.”4.” If using your own topic, make your topic as focused as possible, and avoid using broad or far-reaching topics.5.You need to look at many published academic  articles,  not  articles  published  in  journals  like  The  New  York  Times,  or  similar  journals.  Then  review  the  articles  that  are  as  close  to  your  topic  as  it  can  get.  To  find  the  published academic articles, use academic search engines such as:https://scholar.google.com/https:// the structure of the citation exactly matching the paper or journal you chosen to follow its format. For example, either “Sam  et  al.,  2000”  or  “Sam,  David,  and  Tom,  2000”,  or  any  other  known  academic  citation  used in social sciences.7.Do not use strong claims without proper citation, even if it makes a lot of logic to you.8.Do  not  claim  accuracy  of  a  statement  or  an  idea  simply  because  it  was  mentioned,  or  even  proven,  by  the  literature. 9.Do  not  forget  about  the  rules  of  assumptions,  where  you  can  observe  concepts  varying  when  changing  the  model assumptions.10.Do not ever forget to quote in bold text when you retype a statement from of a reference. For example; Sam et  el.,  2000  define  this  word  as  “social  and  behavioral  aspect  of  any  topic.”  As  you  see,  the  statement  is  quoted in bold text.11.You have to use the rule of microeconomics by not analyzing the total trade of all goods and services between the  economies,  you  will  have  to  select  few  products  or  specific  type  of  products.  For  example,  the  international market for ice cream, or international market frozen desserts in general.12.You do not have to use the most recent data or articles, but try to relate your work to more recent data (such as academic articles published after the year 2012). 13.Make sure to use clear wordings, avoid syntax errors, and use correct punctuations.14.Do not retype same statement over and over again in different structures. 15.Revise  your  work  more  than  one  time,  as  many  times  as  possible.  You  will  always  see  something  to  adjust  every time you revise your work. This is a continuous process in practical research, and the more revising you do, the better the work you will produced. 16.Draw an outline in the beginning, and end up with a draft before typing the project.17.Use prime times of the day to work in your essay.18.It is good to have subtitles in your essay.  19.While  working  on  the  project,  avoid  printing/considering  the  whole  report.  Only  print/consider  required  pages. For example, only print the individual front profile pages for the selected countries (one front-page for each country).20.Read the grading rubrics to know how your project will be evaluated. Maximum points for the project equal 100 points.Specific Objective(s):•Read online about how to conduct an “argumentative essay.”•Analyze a narrowed topic related to “the rule of socio-economic measures in international trade.”•Collect references of at least three published academic studies on the topic.•Identify the main argument(s) of the essay.•Discuss whether the argument(s) being the same and/or different among the collected literature.•Recognize the rule of assumptions in modeling and argumentative perceptions.•Discuss how the argument(s) may change under different assumptions/environments.•Use the learning form Chapters 2 and 15 to analyze comparative advantages and international trade.Foundational Component Area (FCA): •”Social & Behavioral Sciences” – ECON 2302 – MicroeconomicsCore Objective(s):•Critical Thinking (CTH) – This is a sub-objective of the Intellectual and Practical Objective – Critical thinking is a habit of mind characterized by the comprehensive exploration of issues, ideas, artifacts, and events before accepting or formulating an opinion or conclusion.Definition Source: https://  Communication (WRC) –  This  is  a  sub-objective  of  the  Intellectual  and  Practical  Objective  –  Written communication is the development and expression of ideas in writing. Written communication involves learning to work in many genres and styles. It can involve working with many different writing technologies, and mixing texts, data, and images. Written communication abilities develop through iterative experiences across the curriculum.Definition Source: https://  Literacy  (QL) –  This  is  a  sub-objective  of  the  Intellectual  and  Practical  Objective  -also  known  as  Numeracy or Quantitative Reasoning (QR) – is a “habit of mind,” competency, and comfort in working with numerical data. Individuals with strong QL skills possess the ability to reason and solve quantitative problems from a wide array of authentic contexts  and  everyday  life  situations.  They  understand  and  can  create  sophisticated  arguments  supported  by  quantitative  evidence  and  they  can  clearly  communicate  those  arguments  in  a  variety  of  formats  (using  words,  tables,  graphs,  mathematical equations, etc., as appropriate).Definition Source: https:// Knowledge and Competence (IKC) – This is a sub-objective of the Social Responsibility Objective – Intercultural Knowledge and Competence is “a set of cognitive, affective, and behavioral skills and characteristics that support effective  and  appropriate  interaction  in  a  variety  of  cultural  contexts.”  (Bennett,  J.  M.  2008.  Transformative  training:  Designing  programs  for  culture  learning.  InContemporary  leadership and intercultural  competence:  Understanding and utilizing cultural diversity to build successful organizations, ed. M. A. Moodian, 95-110. Thousand Oaks, CA: Sage.)Definition Source: https://

 

"Not answered?"


Get the Answer

write my assignment 3789

9-11’s effect on our 4th amendment rights. Your discussion should include: The Patriotic Act, changes to “traditional” 4th amendment procedures, rationale behind the changes, are the changes ‘Constitutional’, and conclude with your opinion of the current trend regarding 4th Amendment procedures. You must have at least 5 professional sources and write aminimum of 5 pages . You must “cite as you write.” Do not simply list your sources at the end of your paper. You must indicate, within your paper, where your information is from. Please follow APA Style for citations. For help with proper APA writing style, please visit: http://owl.english.purdue.edu/owl/resource/560/02/ You must write your paper in Word (doc.).

 

"Not answered?"


Get the Answer

write my assignment 18500

Write 1 page essay on the topic Spanish Painter Salvador Dali.

Salvador Dali Salvador Dali was Spanish painter, stone worker, visual craftsman, and fashioner. In the wake of passing through periods of Cubism, Futurism and Metaphysical painting, he joined the Surrealists in 1929 and his ability for consideration toward oneself quickly made him the most acclaimed illustrative of the development. All around his life he growled unusualness and exhibitionism (one of his most popular acts was showing up in a plunging suit at the opening of the London Surrealist show in 1936), asserting that this was the wellspring of his inventive vitality. He assumed control over the Surrealist hypothesis of automatism however changed it into a more positive system which he named `critical distrustfulness (Neret 19).

As stated by this hypothesis one ought to develop certified hallucination as in clinical suspicion while remaining excessively mindful at the again of ones psyche that the control of the reason and will has been deliberately suspended. He guaranteed that this system ought to be utilized not just as a part of masterful and poetical creation additionally in the undertakings of everyday life (Neret 23).

His painted creations utilized a careful scholastic method that was negated by the unbelievable `dream space he delineated and by the oddly hallucinatory characters of his symbolism. He depicted his portraits as `hand-painted dream photos and had certain most loved and repeating pictures, for example, the human figure with half-open drawers jutting from it, blazing giraffes, and watches curved and streaming as though produced out of dissolving wax.

Work Cited

Neret, Gilles. Salvador Dali: The Paintings. New York: Tascen, 2013. Print.

 

"Not answered?"


Get the Answer