News Ticker

Menu

Browsing "Older Posts"

Browsing Category "Only $10"

Connect-K in Java Data Structures Compelete Source code

Saturday, 16 April 2016 /
Buy now

Introduction:

In the game of Connect-K, red and blue pieces are dropped into an N-by-N table. The
the table stands up vertically so that pieces drop down to the bottom-most empty slots in their column. For example, consider the following two configurations:-

Legal Position -

.......
..................R
.....RB....
BRB...
RBBR.. -

Illegal Position -

............................Bad
 - ..BR......
R....
RBBR..

In these pictures, each '.' represents an empty slot, each 'R' represents a slot filled with a red piece, and each 'B' represents a slot filled with a blue piece. The left configuration is legal, but the right one is not. This is because one of the pieces in the third column (marked with the arrow) has not fallen down to the empty slot below it.
A player wins if they can place at least K pieces of their colour in a row, either horizontally,
vertically, or diagonally. The four possible orientations are shown below:

- Four in a row -

R RRRR R RR R RR R RR R R
In the "Legal Position" diagram at the beginning of the problem statement, both players had lined up two pieces in a row, but not three.
You have a tricky plan to ensure victory with Connect-K! When your opponent is not looking, you are going to rotate the board 90 degrees clockwise onto its side. Gravity will then cause the pieces to fall down into a new position as shown below:

- Start -

........................R......RB....BRB...RBBR.. - Rotate -
.......R......BB..... BRRR...RBB.................. - Gravity -
.....................R......BB.....BRR....RBBR... Unfortunately, you only have time to rotate once before your opponent will notice.All that remains is picking the right time to make your move. Given a board position, you should determine which player (or players!) will have K pieces in a row after you rotate the board clockwise and gravity takes effect in the new direction.
NotesYou can rotate the board only once.Assume that gravity only takes effect after the board has been rotated completely. Only check for winners after gravity has finished taking effect.

Input

The first line of the input gives the number of test cases, T. T test cases follow, each beginning with a line containing the integers N and K. The next N lines will each be exactly N characters long, showing the initial position of the board, using the same format as the diagrams above.
The initial position in each test case will be a legal position that can occur during a game of Connect-K. In particular, neither player will have already formed K pieces in a row.

Output

For each test case, output one line containing "Case #x: y", where x is the case number (starting from 1), and y is one of "Red", "Blue", "Neither", or "Both". Here, y indicates which player or players will have K pieces in a row after you rotate the board.

Limits

1 ≤ T ≤ 100.3 ≤ K ≤ N. Small dataset 3 ≤ N ≤ 7.Large dataset
3 ≤ N ≤ 50.

Example

You can search the Internet for another algorithm that has not been taught in class, and present, subject to the approval of the lecturer. Whatever the algorithm chose, the group will have to find (or implement) a Java implementation and show it, run it and discuss the code of such algorithm in a PowerPoint presentation in front of the class at the end of the course. Submission

Code Screenshots:



Order Now:

Buy now

CRC code with command line arguments in Java, Checking correctness and verfication

Sunday, 3 April 2016 /
Buy now

Program  Submission  Instructions:      

•   You must submit your source code file plus a README file
•   The source code file must be provided in Web courses from the assignment page
•   All source code must be in exactly one file of type .c, .cpp, or .java
•   The README file must be a text file

CIS    3360    –    Security    in   Computing    Spring    2016
Program  #2:    CRC    Codes  (100  points)  

Write a    program that    calculates the    CRC-­‐15    value for a    given file    and which    can also    verify the    correctness of    a    given file that    already has    a    CRC-­‐15    value appended    to it,    as more    fully described    below.

Use  the    CRC    polynomial:    x15+x13+    x6+x4+x1+1.

Washing Machine Controller GUI in Java programming - Flinders University

Thursday, 31 March 2016 /

Washing Machine

Task

Write a Java program that simulates a washing machine. The graphical user interface consists of two parts: the control panel for setting up washing conditions and the drawing panel for simulating the turbo movement when the machine starts. Note: the example GUI is to illustrate the key interface components rather than suggesting this is the only interface that everyone should stick to. You are encouraged to come up with your own design.

Social Circles, Friend Finder Algorithm in Java full implementation

Friday, 25 March 2016 /

Description

Read a list of friend relations A-B, A-D, C-A, C-D, ..., and determine friendship circles.
2 Problem Statement These days, it seems that we expect computers to direct our social lives, even to the point of choosing our friends. Of course, as programmers, we get to implement these choice algorithms, as in this problem.

Given a \friend relation" { a set of pairs of people who designate each other as \friends"
{ and a particular person (C, \the client") your algorithm is to select any speci ed number
(N) of people who are not friends of C, but who are friends of friends of C. Speci cally, the algorithm picks those people who know the greatest numbers of C's friends. For example,

if N = 2, C is Jack, and the friend relation is
Jack/Mary Mary/Claire Jack/Tom Tom/Claire Jack/Richard
Tod/Richard Claire/Richard Jack/Jill Jill/June June/Tod
Jill/Tod Jill/Peter Mary/Tom Richard/Tom Jill/Tom

the program would select Claire (who knows Jack's friends Mary, Tom, and Richard) and Tod (who knows Richard and Jill). Jack's other friends of friends are June and Peter (who both know Jill). The relationships between Jack's friends (such as Mary and Tom) are irrelevant. Implicitly, Jack is his own friend, so that he is not in the list of suggestions. The \friend" relation is symmetric: you are my friend i (if and only if) I am yours.

The input will consist of multiple sets of data in free format. Each set begins with an
integer, N, and a name (consisting of a string of non-whitespace characters), C. There
then follows a sequence of an even number of names, each successive pair of which denotes a friend relationship. A given friend relationship will appear only one in the sequence (with either member rst). The implicit friendship of a person with himself will not be included.

The sequence terminates with two asterisks (separated by whitespace). For each input set, the output consists of a list of whitespace-separated names in alpha-betical order giving the N non-friends of C who are acquainted with the most friends of C. You may assume that there will always be at least N non-friends of C. In case too many people know the smallest qualifying number of friends, choose those that come earlier in
alphabetical order. Thus, if N = 2 and Mike knows two of C's friends while Sam, Jill, and
Mary know one, then choose Jill and Mike.

Example

Input:
2 Jack
Mary Claire Jack Tom Tom Claire Jack Richard
Jack
Mary
Tod Richard Claire Richard Jack Jill Jill June June Tod
Jill Tod Jill Peter Mary Tom Richard Tom Jill Tom
* *
3 Jack
Mary Claire Jack Tom Tom Claire Jack Richard
Jack
Mary
Tod Richard Claire Richard Jack Jill Jill June June Tod
Jill Tod Jill Peter Mary Tom Richard Tom Jill Tom
* *
Output:
Claire Tod
Claire June Tod

Buy now

Time Stamp Algorithm with tow different schedules complete solution - CSc 630 Spring 2016

Wednesday, 23 March 2016 /

Introduction

Answer the following questions from your textbook. You may submit in any format that is neat and readable. Electronic submissions (no required) are to be submitted using D2L on or before the due date.
Chapter 21, page 809, exercises 21.25 and 21.26.

IT540Assignment3 Solution - Organization Access Database with queries

Friday, 18 March 2016 /
Write SQL statements (queries) to answer the following questions (Make sure to replace XXX with your initials!):

1. Write an SQL statement to list all columns and all rows for the table Service. Save the query results as XXXQ1.

2. Write an SQL statement to list LastName, FirstName, and CellPhone for all employees having an experience level of Master. Save the query results as XXXQ2

Pocker Game in C Programming - 300698 Operating Systems Programming (Advanced) – 300943

Saturday, 12 March 2016 /
Buy now

Introduction

Operating Systems have a need for extremely compact data structures, as often these need to be stored wholly in memory. Examples of this are free memory lists, page tables and disk space bitmaps. This  practical Case Study will refresh your knowledge of bit operations, necessary to manipulate such compact data structures. We will use a simple variant of the card game poker as the inspiration for our compact data structure.

In this exercise, you will model a deck of playing cards as a bit 1eld. Only six bits are
required to fully describe a card, two for the suit and four for the value. An extra bit as been added to the structure to encode the colour of the card.

CS 222 Homework Assignment 6 ASCII File I/O

Friday, 11 March 2016 /

Introduction

For this assignment, you will perform basic ASCII file Input and Output. Your program will read a series of questions from an input file, present them to the user, get the user's responses to the questions, and write both the questions and the responses to an output file.

CallAir case study - SQL queries, SQL reports, ERD

Thursday, 10 March 2016 /

Consider the following requirements:

Your group is responsible for developing a database to support the fundamental data requirements of a customer call center for an established network service provider (includes landline, mobile and internet (broadband) services) - CallAir.  Due to increased competition in the market, CallAir.

CS 211 Lab 5: Output, Inheritance, Censorship

Sunday, 21 February 2016 /

CensoredWriter Overview

Occasionally in history there has arisen the need to censor communications. An automatic means of doing this is to scan output and block or replace certain key words that appear. We will set up a class CensoredWriter which performs this task: any output that contains a specified string pattern will have the pattern replaced by a censor string.

Game of Craps in C programming Source Code

Monday, 15 February 2016 / No Comments

Project Description:

For this project, you will be creating a program to play a simplified version of "Craps," a well-known dice game. In the game, two dice are thrown, and the players bet on the outcome of the roll (the sum of the upturned faces).

The basic rules of Craps are as follows:

Obligatory Objects In Java

Sunday, 7 February 2016 / No Comments

Project Overview

Problem Sets

This project has 3 problems to complete. All of them involve creating new classes which do not exist in Java. The first two problems involve modeling simple linear equations of two variables using classes. This will introduce the idea of invariants: properties that should always be true about a class after one of its methods completes. The third problem revisits the queues of the previous project and implements them in a proper, Java-esque fashion as an object with associated methods. The honors problems build on this to improve the efficiency of the queue methods and makes it more flexible to allow for expansion.