Saturday, November 3, 2018

Problem Solving (Lab6)

Assalamualaikum and hi guys ! Here I come back to share new problems with new solution. Honestly, I do not really understand with questions, Hence, I decided to ask my friends to help me. I would like to thanks my classmate Nurazreen Mohd Nor and Nur Nadhirah Zulkepli for their helps in completing this lab task. So I don't want to waste the time, lets begin with the task. Below is the given task :

Question 1:
The question 1 is about to print out the output but in this case, the output is printed by using formula.


Question 2:
The question 2 is about comparison between string. The answer will be either true or false.

Answer:

Question 3:

The question 3 is about comparison between the string as well but in this case by using "compareTo". Usually this comparison will give a result in numbers instead of true or false.

Answer:


Question 4:
The question 4 is about print out random letter. By inserting the specific formula, the Java program will print out random result.

Answer:

Question 5:
The Question 5 is about to find out the ASCII code for specific letter. In this case as well, there is a specific formula to produce the output.

Answer:
`

Question 6:


From my point of view, I think among all the questions above, question 6 is the difficult one. I need to combine all the learning to produce the answer for this question.

Answer:

The outcome for this lab task are I need to be able read string and characters from console as well as declare and manipulate strings and characters using method provided by characters and string class.

Nursaidatul Sakinah Binti Saharuddin
184881




Enjoy reading my blog!
Feel free to share any fruitful knowledge with me as I am eager to learn something new and we can learn together!

Thank you :)

This is my friend's blog. Check him out!
hongjing96.blogspot.com (lLim Hong Jing )

1 comment:

Problem Solving (Lab6)

Assalamualaikum and hi guys ! Here I come back to share new problems with new solution. Honestly, I do not really understand with questions...