"Hello, Captain Squirrels, sir!"
"Here are some exercises to level-up your skills and solidify knowledge."
Cat code won't compile
Task: The program reads data about cats from the keyboard and displays it on the screen. For example: Cat's name: Tiger, age: 6, weight: 5, tail: 22 Cat's name: Missy, age: 8, weight: 7, tail: 20
Display numbers in reverse order
Enter 10 numbers from the keyboard and put them in a list. Display them in reverse order. Each element on a new line. Use only a for loop.
Shuffled just in time
Use the keyboard to enter 2 numbers N and M. Enter N strings and put them in a list. Move the first M strings to the end of the list. Display the list, each value on a new line. Note: - all numbers and strings must be entered from the keyboard with a new line; - you must not create more than one li
You need to replace the program's functionality
Currently, the program reads lines from the keyboard until you enter an empty string. All the entered strings are converted to uppercase and displayed on the screen. For example, if the string "Mom" is entered, followed by an empty string, then "MOM" should be displayed. The modified program should
Create a list of strings. Enter strings from the keyboard and add them to the list. Enter strings from the keyboard until the user enters "end". The string "end" is ignored. Display the strings on the screen, each on a new line.
Maximum and minimum numbers in an array
Create an array of 20 numbers. Populate it with numbers from the keyboard. Find the maximum and minimum numbers in the array. Display the maximum and minimum numbers, separated by a space.
Create the Human class with String name, boolean sex, int age, Human father, and Human mother fields. Create and populate objects so that we end up with: Two grandfathers, two grandmothers, one father, one mother, and three children. Display the objects on the screen. Note: If you write your own Str
In decreasing order
Task: Write a program that reads 20 numbers from the keyboard and displays them in decreasing order.