Expert Answer:IT401 SEU Assignment 2 Java Programming and NetBea

  

Solved by verified expert:please see the attached file and kindly all instruction were written in it kindly use (NetBeans IDE 8.2) program in the cods or (Blue J) program
it401_assignment_2_questions__1_.docx

Unformatted Attachment Preview

Don't use plagiarized sources. Get Your Custom Essay on
Expert Answer:IT401 SEU Assignment 2 Java Programming and NetBea
Just from $10/Page
Order Essay

College of Computing and Informatics
Assignment 2
Deadline: Saturday 16/03/2019 @ 23:59
[Total Mark for this Assignment is 6]
Student Details:
Name: ###
ID: ###
CRN: ###
Instructions:

This Assignment must be submitted on Blackboard (WORD format only) via the allocated
folder.

Email submission will not be accepted.

You are advised to make your work clear and well-presented, marks may be reduced for
poor presentation. This includes filling your information on the cover page.

You MUST show all your work, and text must not be converted into an image, unless
specified otherwise by the question.

Late submission will result in ZERO marks being awarded.

The work should be your own, copying from students or other resources will result in ZERO
marks.

Use Times New Roman font for all your answers.
Question One
Pg. 01
Learning
Outcome(s):
– Use
programming
language
elements
including syntax,
data types,
conditional
statement, control
structures,
procedures and
arrays in order to
create a program
based on
specification.
– Use Integrated
Development
Environment (IDE
for the editing,
building,
debugging, and
testing of
programs.
Question One
1 Mark
Write a Java program (code + screenshot of output) that takes a user input
temperature and displays an output as follows:
Temperature
temperature > 40
40 ≥ temperature > 25
25 ≥ temperature > 15
15 ≥ temperature
Sample run1:
Please input the temperature: 45
Hot
Sample run2:
Please input the temperature: 40
Warm
Sample run3:
Please input the temperature: 20
Nice
Sample run4:
Please input the temperature: 5
Cold
Sample run5:
Please input the temperature: -10
Cold
Answer
Output
Hot
Warm
Nice
Cold
Question Two
Pg. 02
Learning
Outcome(s):
– Use
programming
language
elements
including syntax,
data types,
conditional
statement, control
structures,
procedures and
arrays in order to
create a program
based on
specification.
– Use Integrated
Development
Environment (IDE
for the editing,
building,
debugging, and
testing of
programs.
Question Two
1.5 Mark
Write a Java program (code + screenshot of output) that takes a user input
temperature and weather and displays an output as follows:
Weather
Temperature
Output
ANY (sunny
OR cloudy)
temperature > 40
Stay at home
sunny
Go to the mall
40 ≥ temperature > 25
Go to the park
cloudy
sunny
Stay in the shade
25 ≥ temperature > 15
Have a BBQ party
cloudy
sunny
Walk under the sun
15 ≥ temperature
cloudy
Sample run1:
Please input the weather (sunny OR cloudy): sunny
Please input the temperature: 50
Stay at home
Sample run2:
Please input the weather (sunny OR cloudy): cloudy
Please input the temperature: 50
Stay at home
Sample run3:
Please input the weather (sunny OR cloudy): sunny
Keep warm
Question Two
Pg. 03
Please input the temperature: 40
Go to the mall
Sample run4:
Please input the weather (sunny OR cloudy): cloudy
Please input the temperature: 26
Go to the park
Sample run5:
Please input the weather (sunny OR cloudy): sunny
Please input the temperature: 25
Stay in the shade
Sample run6:
Please input the weather (sunny OR cloudy): cloudy
Please input the temperature: 16
Have a BBQ party
Sample run7:
Please input the weather (sunny OR cloudy): sunny
Please input the temperature: 15
Walk under the sun
Sample run8:
Please input the weather (sunny OR cloudy): cloudy
Please input the temperature: 5
Keep warm
Answer
Question Three
Pg. 04
Learning
Outcome(s):
– Use
programming
language
elements
including syntax,
data types,
conditional
statement, control
structures,
procedures and
arrays in order to
create a program
based on
specification.
– Use Integrated
Development
Environment (IDE
for the editing,
building,
debugging, and
testing of
programs.
Question Three
Convert the following while loop into a for loop.
int count = 0;
int numberOfCaptialLetters = 0;
String text = “Hello There How Are You?”;
while(count < text.length()) { char currentChar = text.charAt(count); if(Character.isUpperCase(currentChar)) { numberOfCaptialLetters++; } count++; } System.out.println("Total = " + numberOfCaptialLetters); Answer 1 Mark Question Four Pg. 05 Learning Outcome(s): - Use programming language elements including syntax, data types, conditional statement, control structures, procedures and arrays in order to create a program based on specification. - Use Integrated Development Environment (IDE for the editing, building, debugging, and testing of programs. Question Four 2.5 Mark Write a Java program (code + screenshot of output) that takes student grades as double values and then outputs the following: • The number of inputted grades • The average Sample run1: Please input student grade or Please input student grade or Please input student grade or Please input student grade or The number of student grades: The average is: 60.0 (-1) (-1) (-1) (-1) 3 to to to to stop: stop: stop: stop: 20 80 80 -1 Sample run2: Please input student grade or Please input student grade or Please input student grade or The number of student grades: The average is: 75.0 (-1) to stop: 50 (-1) to stop: 100 (-1) to stop: -1 2 Sample run3: Please input student grade or (-1) to stop: -1 No grades inputted Answer ... Our essay writing service fulfills every request with the highest level of urgency. attachment

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.

Read more

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.

Read more

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.

Read more

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.

Read more

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.

Read more

Order your essay today and save 30% with the discount code ESSAYSHELP