Qr codes are a popular way

Assignment Help JAVA Programming
Reference no: EM13163393

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.

Reference no: EM13163393

Questions Cloud

Justify a question on database management : When a student has not chosen a major at a university, the university often enters a value of "Undecided" for the major field. Is "Undecided" a way to represent the null value? Should it be used as a default value? Justify your answer carefully.
What is the estimated percent by mass of acetic acid : A sample of vinegar has a freezing point depression of 20 degrees C. What is the estimated percent by mass of acetic acid in the vinegar? Molar mass of acetic acid is 60g/mol.
How many grams of agcl will form : 525mL of 1.50M NaCl is added to a beaker containing 378mL of 2.22M AgNO3, resulting in the formation of AgCl precipitate.
Determine the number of bromine molecules present in flask : A flask contains 0.190 mol of liquid bromine, rm Br_2. Determine the number of bromine molecules present in the flask.
Qr codes are a popular way : 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
What is the specific gravity of isopropyl alcohol : A 5.00 mL sample of isopropyl alcohol has a mass of .930 g whe measured at 20 degrees celsius. What is the specific gravity of isopropyl alcohol?
Write a single arm assembly language instruction equivalent : Write a single ARM assembly language instruction equivalent to a function that takes in three strings and checks if any are a substring to one another, if so return 1, if not return 0.
What is the ph at the equivalence point : A 25.0 mL sample of 0.150 M nitrous acid is titrated with a 0.150 M NaOH solution. What is the pH at the equivalence point? The Ka of nitrous acid is 4.50 x 10-4.
What does the balance of the account represent : What does the balance of the account represent? Where should the account appear in Southwest Airlines' financial statements?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Write a complete java program assuming that the variables gp

Write a complete java program Assuming that the variables gpa, deanList and studentName have been declared, you should read in the studentName and gpa from keyboard. Write an if statement that adds 1 to deansList and prints studentName to the standar..

  Java program to print strings given at command line

Write down program Average.java to print strings which it is given at command line, one per line. If nothing is given at command line, then print "No arguments".

  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 method called median that accepts an array of integer

Write a method called median that accepts an array of integers as its parameter and returns the median of the numbers in the array.

  Use inheritance to read, store, and print questions for test

use inheritance to read, store, and print questions for a test. First, write an abstract class

  Understand actual communication with an smtp server

Understand actual communication with an SMTP server can be achieved using TCP Sockets and understand the development of a graphical user interface (GUI) and use of event handling.

  Method called printpowersof2 that accepts a maximum number

Write a method called printPowersOf2 that accepts a maximum number as an argument and prints each power of 2 from 20 (1) up to that maximum power, inclusive. For example, consider the following calls: printPowersOf2(3); printPowersOf2(10)

  Programming exercises

Programming Exercises 1. Write an application named BadSubscriptCaught in which you declare an array of 10 first names. Write a try block in which you prompt the user for an integer and display the name in the requested position.

  Create java applet to represent grade of gas

Write a java applet (not a java application program) for costco gas station. The applet will first ask you whether you are a costco customer, then the grade of gas you want to use.

  Implement a class quiz

Implement a class Quiz that implements the Measurable interface.

  Communication with an smtp server

Develop a graphical user interface based java program that can communicate with a real SMTP email server for sending emails

  Java program to read line of text which ends with period

Write down the java program which will read the line of text which ends with the period, which serves as sentinel value. Show all the letters which occur in the text.

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