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
Write a program to move and calculate the area and circumference of a circle. - Calculate function, which passes the radius by value, and get back the area (PI*radius*radius)
CPS 150- Loops provide a mechanism for repeating a block of code called the loop body. We begin this lab by experimenting with while loops, the simplest form of loop code.
If you decide to use a network connection to save an app's persistent data, what is the limitation? Which method retrieves an integer value? Do you agree with the statement :
Write a program called Power that displays the positive powers of 2. When the user enters the exponent at a prompt, the program displays 2 to that power. The program halts w
These buttons should allow the user to perform the corresponding actions on the item name, the number of units in stock, and the price of each unit. An item added to the inv
Implement polynomial addition by using an add() method, so you could write in program - Build a polynomial (linked list) from a file and the other from keyboard input (pairs o
Bash scripting can be a very useful tool to manage Linux servers and workstations. The important components of a script include variables, keyboard input, terminal output, d
Write a program to implement the Boyer-Moore algorithm - Design a greedy algorithm to solve the activity selection problem. Suppose there are a set of activities: a1, a2, ..