Java Question

You must submit two separate copies (one Word file and one PDF file)using the Assignment Template on Blackboard via the allocated folder. These files must not be in compressed format. It is your responsibility to check and make sure that you have uploaded both the correct files. Zero mark will be given if you try to bypass the SafeAssign (e.g. misspell words, remove spaces between words, hide characters, use different character sets, convert text into imageor languages other than English or any kind of manipulation). You are advised to make your work clear and well-presented. This includes filling your information on the cover page. You must use this template, failing which will result in zero mark. You MUST show all your work, and text must not be converted into an image, unless specified otherwise by the question. The work should be your own, copying from students or other resources will result in ZERO mark. Use Times New Roman font for all your answers. 1.5 Marks Learning Outcome(s): Explain the basic principles of programming, concept of language, and universal constructs of programming languages. Develop a program based on specification using programming language elements including syntax, data types, conditional statement, control structures, procedures, arrays, objects and classes. Question One Write a complete Java program that do the following:1. Print out your name in one line2. Print out your ID in one line3. Ask the user to enter his weight and height, thencalculate his Body Mass Index According to the following formula and displayhis BMI.BMI= Note:Your program output should lookas shown below. Note: you should Include the screenshot of the programoutput as a part of your answer. Otherwise,zeromarks will be awarded. 1.5 Marks Learning Outcome(s): Develop a program based on specification using programming language elements including syntax, data types, conditional statement, control structures, procedures, arrays, objects and classes. Question Two Write a Java program that readstwo integers in two variables x and y and then permutes the value of the twovariables. Note: your program should look like this:Enter x: 2Enter y: 5The new value of the variable x is: 5The new value of the variable y is: 2Note: you should Include the screenshot of the programoutput as a part of your answer. Otherwise,zeromarks will be awarded. 2 Marks Learning Outcome(s): Develop a program based on specification using programming language elements including syntax, data types, conditional statement, control structures, procedures, arrays, objects and classes. Question Three Write an application that calculates the squaresand cubes of the numbers from 0 to 10 and prints the resulting values in tableformat, as shown below. (Use the formatting for printing)Note:Your program output should lookas shown below.Note:you should Include the screenshot of the program output as a part of youranswer. Otherwise,zeromarks will be awarded.

Don't use plagiarized sources. Get Your Custom Essay on
Java Question
Get an essay WRITTEN FOR YOU, Plagiarism free, and by an EXPERT! Just from $10/Page
Order Essay
Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.