11 Aug Markham Saturday 14:00 Java Homework 20.08.08.
Question: Continue with the code in the previous class. Make sure you are able to move the player’s bat in the left and right direction using your mouse....
Question: Continue with the code in the previous class. Make sure you are able to move the player’s bat in the left and right direction using your mouse....
Question: Write a program to print a multiplication table (a times table). At the start, it should ask the user which table to print. The output should look something like this: Sample Input: Which multiplication table would you like? 5 Sample Output: Here’s your table: 5 x 1 = 5 5 x 2 =...
Question 1: Using split and join function of the list to change string “green,red,yellow,blue,” into string: “green light* red light* yellow light* blue light* “ Hint: >>> vegetables = "carrots, potatoes, onions, leeks, celery" >>> # string.split(separator) will split the string by separator, for example: >>> vegetables = vegetables.split(", ") >>> print(vegetables) ['carrots', 'potatoes', 'onions',...
[audio wav="http://www.torontokidscomputer.com/wp-content/uploads/2018/11/shoot.wav"][/audio] [audio mp3="http://www.torontokidscomputer.com/wp-content/uploads/2020/08/bluespace.mp3"][/audio] [audio mp3="http://www.torontokidscomputer.com/wp-content/uploads/2020/08/explosions.mp3"][/audio] ...
Question: The formula to know the time its takes to get somewhere in the car (in words) is “travel time equals distance divided by speed.” Make a program to calculate the time it will take to drive 200 km at 80 km per hour and display the answer....
In the previous class, we learned about merge sort and implemented the merge sort in a recursive fashion. Write the code to do the merge sort in an interactive fashion i.e without using recursion...
Continue with the code in the previous class. Currently the enemy ship is moving the y-direction(i.e. Moving downwards), write a code such that the ship also moves in the x-direction (i.e moving from left to right and vice versa)...
Question 1: A soccer team is looking for girls from ages 10 to 12 to play on their team. Write a program to ask the user’s age and if male or female (using “m” or “f”). Display a message indicating whether the person is eligible to play on the team. Sample Input...
Question 1: We have a list of following: zoo = [‘monkeys’, ‘tigers’, ‘pandas’, ‘penguins’, ‘giraffes’, ‘hippos’, ‘bears’] how to retrieve a slice of list zoo, so you can get the following result? [‘monkeys’, ‘pandas’, ‘giraffes’, ‘bears’] Question 2: from the same list of zoo in the question 1, how to retrieve a slice...
Question: Write a program to print a multiplication table (a times table). At the start, it should ask the user which table to print. The output should look something like this: Sample Input: Which multiplication table would you like? 5 Sample Output: Here’s your table: 5 x 1 = 5 5 x 2 =...