PROG 1101C Programming Concept Assignment

Assignment Help JAVA Programming
Reference no: EM132392298

PROG 1101C Programming Concept Assignment - University Of Technology, Mauritius

For both questions, Q1 and Q2, you are strongly advised to use methods and multi-file/class approach.

Q1. YOU WILL BE HANG GAME

Write an algorithm + a JAVA program to implement the 'YOU WILL BE HANG' game.

The game will be played between two players (P1 & P2) at a time but in your game you can cater for a maximum of four (4) players i.e. P1, P2, P3, and P4.

Let us assume P1 plays against P2.

P1 asks P2 how many letters long word P2 wishes to play; the longer the word, the more will be the score for the winner.

While P1 types in the word, he/she should hide it from P2 and at the same only asterisk symbols will be displayed.

E.g. If P2 asks for 11 characters word;

P1 types the Word: ***********

If P2 wins, the full word is displayed: COMPOSITION; else for each wrong characters guessed by P2, successive characters from the following phrase '' is displayed until P2 is hanged and loses the game. Subsequently P1 obtains the equivalent marks and wins the game.

The game can be played repeatedly between the two players in several rounds and their scores for each round and the overall are displayed as well as the winner of each round and the overall.

The complexity of the program and the game can be increased by proposing four players (P1, P2, P3, and P4) and saving their stats permanently in an output file.

Your report should include -

(i) A copy of all algorithms and/or flowchart, program specification,

(ii) Your FULL JAVA code

(iii) Your test cases + appropriate files for testing purposes

(iv) Output screen - screen shots

(v) Conclusion.

Q2. Compression - Run Length Encoding (RLE)

Write an algorithm and a corresponding JAVA program which takes an input sequence of characters from the alphabet {A,B,C...Z} and compresses it by replacing each subsequence of a particular character by a single occurrence of the character, and the frequency of occurrence of that character.

e.g. Input : AAAAABBBBBBBCCBBBAABBCCCCCS (27 x 8 bits = 216 bits)

Output: A5B7C2B3A2B2C5 (14 x 8 bits = 112bits)

Assuming that each character uses an 8-bit ASCII code your program should also calculate the percentage of compression.

Your report should include

(i) A copy of all algorithms and/or flowchart, program specification,

(ii) Your FULL JAVA code

(iii) Your test cases + appropriate files for testing purposes

(iv) Output screen - screen shots

(v) Conclusion.

Attachment:- Programming Concept Assignment File.rar

Reference no: EM132392298

Questions Cloud

What federal agency is evaluating mobile tracking : What federal agency is evaluating mobile tracking technology as part of its ongoing mission to protect consumer privacy?
What type of research would this company be conducting : The owner of Tools by Joe has hired a company to help him find out whether customers and potential customers would prefer to shop in his store or online.
Approach to ethical and socially responsible behaviour : From your consumer perspective, provide an example of a company you purchase from, in part, because you agree with or support their approach
What types of marketing communications : What types of marketing communications may be necessary to launch an innovative product such as Procter & Gamble's PUR in emerging markets?
PROG 1101C Programming Concept Assignment : PROG 1101C Programming Concept Assignment Help and Solution - University Of Technology, Mauritius. Compression - Run Length Encoding
Hellofresh and ubereats : What are the differences and similarities between HelloFresh and UberEats?
Festival complements other forms of on-site engagement : General user engagement with an event or festival complements other forms of on-site engagement. The Dark MOFO case study in particular illustrates
Explain the impact of e-commerce technology : Identify and explain the impact of e-commerce technology in current business world?
Discuss the role of culture in cross border businesses : Discuss the role of culture in cross border businesses. Does it impact ethics and corruption?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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