3. Square to the Next Level
by CodeChum Admin
We've already tried printing out the values of an array in reversed order, right? Today, we shall compute for the squares of all the numbers.
There's already a predefined array/list containing 100 integer values. Loop through each values, compute their squares, and display them.
Output
Multiple lines containing an integer.
4
9
25
10000
49
9
25
9
1
16
.
.
.
Search and Rescue
by CodeChum Admin
Make a program that will accept an integer and loop for the same number of times as that of the inputted integer and input random integers and add it to the array/list one by one, per line. Afterwards, make your program accept another random integer.
Using that final integer, compare from your array/list if the final integer's value is also present in your current array/list. If so, print "Present"; otherwise, print "None".
Start coding now!
Input
The first line contains the size of the array/list. The next lines contain the integers. The last line contains an integer to be searched.
5
3
21
2
5
23
2
Output
A line containing a string.
Present
Using ArrayList create a book borrowing system. Create ListBook.txt that list all the book information such as bookId, bookTitle, bookAuthor, bookGenre.
I have to create a book borrowing system by using data structures arraylist. The system include bookId, bookTitle, bookAuthor and genre. There are booklist.txt that have book information - bookId, bookTitle, bookAuthor, genre
1.The system can search the book that user want to borrow by book id or book Title.
2. Ask if the user want to add another book.
3.Count and display the book information that user borrow and the total of the book.
write a program to make palindromes
input 5 numbers and find the min?I want very simple code
input 5 numbers and calculate sum of the even numberI want very simple code
loops + if combined:
question 1: input 5 numbers and calculate the sum of all numbers?I think I should use a list of the number
I want very simple code
Function:
question 1: convert inche-mm
question 2: convert Celsius-Fahrenheit
question 3: return max of 3 nums
question 4: input and combine title+first+last
question 5: car_rental (dayrate, #days) get discount with >5 dayes , >10 daysI want very simple code for them
Your task is to find the sum of the length of all lines (in kms) that can be drawn between co-ordinates of these countries.
Population limit: 28875
Note: Population limit will change at random intervals. So please make sure answer is computed for the correct population limit before submitting.