Identify the cause of the crash and modify the game

Assignment Help Software Engineering
Reference no: EM133786427

Assignment: Advance Application Development XLS Group

For this assignment you are given three programs, each of which contains one or more errors. Your task is to correct each program so that it performs the desired behavior and document your findings.

Task

Your submission should contain a zip folder with the three corrected programs and a document that contains the following items for each program:

1) What is the problem with the program?
2) What solution did you implement?
3) Does your solution have any drawbacks or limitations? Explain why or why not.

Program I

This program plays the classic tile matching game. The object of the game is to find all the matching tiles by turning over two tiles at a time. If the colors match, the tiles are removed. If not, then the tiles are replaced and two more tiles are turned over. The game is over once all the matching colors have been found.

This implementation of the game allows the player to select the number of rows and columns of tiles. Unfortunately, this sometimes causes problems. The game currently runs without issue for the default number of rows and columns, however if the player chooses an odd number of rows and an odd number of columns, the game will crash.

Your task is to identify the cause of the crash and modify the game to both:

A. Prevent the game from crashing regardless of what values for rows and columns are entered (you may assume that both values will always be greater than 0)

B. Allow the game to be played successfully regardless of what values for rows and columns are selected.

The number of rows and columns may be selected by starting the game and selecting File -> Options

Program II

This program's purpose is to read in the associated text file containing 100000 values, sort them in descending order and count the number of duplicates. Unfortunately, the program does not execute properly and crashes.

Your task is to identify the number of duplicate values in the file. You may correct the existing code, or you may choose to refactor the whole program and reimplement it from scratch.

There should be 36874 duplicates values in the file.

Program III

This program's purpose is to iterate through a range of integer values and report if each value is prime or not. The program works and, as far as we know, produces correct answers. It is, however, slow...very slow.

Your task is to improve the performance of the program in any way possible. The program does include some benchmarking, so is should be easy to tell if your changes have made any improvement.

Reference no: EM133786427

Questions Cloud

Regarding the goals of pharmacotherapy for osteoarthritis : The nurse gives which information regarding the goals of pharmacotherapy for osteoarthritis?
List the treatments and rationale for the treatment : List the treatments, rationale for the treatment, time of the treatment (this includes things like dressing changes, blood glucose monitoring, NG cares, Foley
Develop a research paper on drug addiction : Conditions affect the dental hygiene services that are employed and patient education/oral hygiene instructions that are provided
Overview of the selected health care problem or issue : Developing this annotated bibliography will create a foundation of knowledge about the selected topic - Determine if the source is from an academic
Identify the cause of the crash and modify the game : IT 3883- Your task is to identify the cause of crash and modify game to Prevent game from crashing regardless of what values for rows and columns are entered.
Describe the history and nature of your population : Describe the history and nature of your population related to the outcome, referencing existing literature, appropriate context of the problem in relation
Who was recently adopted : Molly is a four-year-old who was recently adopted. The agency she was adopted from notified the family that she had not had any vaccinations.
Clinical practice area to target for improvement : Develop a clinical scenario related to the topic for adolescent depression in which an APRN identifies a clinical practice area to target for improvement.
Potential impact on his children and their family dynamics : The patient is worried about the potential impact on his children and their family dynamics.

Reviews

Write a Review

Software Engineering Questions & Answers

  Research report on software design

Write a Research Report on software design and answer diffrent type of questions related to design. Report contain diffrent basic questions related to software design.

  A case study in c to java conversion and extensibility

A Case Study in C to Java Conversion and Extensibility

  Create a structural model

Structural modeling is a different view of the same system that you analyzed from a functional perspective. This model shows how data is organized within the system.

  Write an report on a significant software security

Write an report on a significant software security

  Development of a small software system

Analysis, design and development of a small software system.

  Systems analysis and design requirements

Systems Analysis and Design requirements

  Create a complete limited entry decision table

Create a complete limited entry decision table

  Explain flow boundaries map

Explain flow boundaries map the dfd into a software architecture using transform mapping.

  Frame diagrams

Prepare a frame diagram for the software systems.

  Identified systems and elements of the sap system

Identify computing devices, which could be used to support Your Improved Process

  Design a wireframe prototype

Design a wireframe prototype to meet the needs of the personas and requirements.

  Explain the characteristics of visual studio 2005

Explain the characteristics of Visual Studio 2005.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd