Qr codes are a popular way
Course:- JAVA Programming
Reference No.:- EM13163393

Assignment Help
Expertsmind Rated 4.9 / 5 based on 47215 reviews.
Review Site
Assignment Help >> JAVA Programming

QR codes are a popular way to encode data for easy reading by computerized cameras. True QR codes contain error correction, format specifiers, version information, and a size variable layout that makes them harder to decode and process. For ease we have created our own QR codes called QR2 codes that are simpler to decode and contain more data. QR2 codes contain the same position markers as QR codes, but the intervening data is encoded differently.
The new code is useful, but not compatible with QR codes, and so a program is needed to encode/decode the information. Each character of the text within the code is composed of 8 bits in standard ASCII encoding. A filled-in block denotes a 1 bit; a blank block denotes a 0 bit. Blocks are placed so that the most significant bit is first, and the entire message is read in serpentine fashion (up one column, then down the next, etc.), starting at the lower right. For example, in the sample run below, 'M' (01001101b) can be read up the right column, followed by 'y' (01111001b). The structure of the QR2 code is as described in the graphic above. Write a Java program will input a message and generate the appropriate QR2 code pattern. Each filled-in block is denoted by ## (two characters), and each empty block with 2 spaces. Do not worry about error checking. The size of the generated QR2 pattern will depend on the size of message entered.

Put your comment

Ask Question & Get Answers from Experts
Browse some more (JAVA Programming) Materials
you are expected to design and implement TFS. It is a file system that can be used on a standalone machine. There are several simplifying assumptions such as a single applic
Write a program to help the merchants devise a sequence of transmutations that would change silver into gold with the smallest possible total fee paid to the alchemists.
Write a small program that continually reads in user values and calculates the average of all values. The program should first ask the user for the amount of values to be ente
Design and implement an Applet that plays a simple game to help teach a child to read. The game displays a picture on the left hand side of the Applet and a word on the righ
Write a program that prompts the user to enter the the year and first day of the year and displays the calendar table for the year on the console. For example , if the user en
Write a (Java) program that will maintain the registration of a (very small, for this project) college, using the Student, Course, and Sorted Array classes that you have alr
Suppose you are car shopping and want to store information about possible choices. Model, and implement an automobile class. Use a UML drawing tool such as Umbrello or Micro
Write a Java program that accepts two words as input and determines if one of them is resulting from changing the order of the others' letters.