Hint for Java: What type should you use for a really
In between preparing their LINE Hack 2019 submissions, the 3rd and 4th year students have designed a chatbot to help the Freshies find their classroom.
The chatbot can answer the question “Where is X” where X is a room number in the ranges of: 101-118, 201-218, 301-318, 401-418, 501-518.
The chatbot answers “Floor Y” where Y is the floor number of the room. If the room number is not in the ranges above then it answers “Invalid room”.
The input ends when the user enters “Bye”.
Plaintext: KOTLINROCKS (column) CSITCSITCSI (row) Ciphertext: MGBEKFZHECA
Input: The first line is the key. The second line is the plaintext.
Output: The ciphertext encryped using Vigenere.
The first line contains 3 integers relating to the user’s device: the x position, the y position, and the range of the wifi signal (radius).
The second line contains 1 integer for the number of wifi hotspots.
The third and remaining lines each represent a wifi hotspot, consisting of 4 integers: the x position, the y position, the number of connected users and the id of hotspot.
The id of the hotspot with the least connected users in range of the wifi signal of the user’s device.
Write a parser that determines if a line is a valid start tag.
Multiple lines, each line containing one HTML start tag.
For each line, output true if it is a valid HTML start tag.
In their latest work:
Please help them verify their poetry is correct.
The first line contains 1 integer representing the number of lines in the poem.
The remaining lines are the poem to be checked.
If the poem is valid then output “correct”.
If the poem is invalid then output “incorrect lines X” where X is space-separated list of line numbers that do not match the rules above.