Posted at 15:59h
in
archives
by admin
Question:
Continue to program the code so the back(<-) button and change sign(+/-) button can work:
when you click the back button, it will delete the last digit or decimal. However if there's only one digit left and that digit is not 0, it will change into...
Question:Jack is depositing money! Every year, Jack puts N coins into his bank account. At the end of each year, Jack’s investments will grow by P percent, rounded down to the nearest coin. After Y years, he would like to have at least T coins in his bank account so that he can buy some...
Posted at 02:56h
in
Uncategorized
by admin
Question:
The Body Mass Index (BMI) is one of the calculations used by doctors to assess an adult’s health. The doctor measures the patient’s height (in meters) and weight (in kilograms), then calculates the BMI using the formula
BMI = weight / (height * height)
Write a program which...
Posted at 16:00h
in
Uncategorized
by admin
Question:
Continue modify the program we made in the class:
use spritecollide to let the fighter collect energy crystals, if the energy crystal is collected, the score will increase
show bigboy large enemy spaceship on the screen, it will move slowly from top of the screen to the...
Question 1:
This question involves calculating the value of aromatic numbers which are a combination of Arabic digits and Roman numerals.
An aromatic number is of the form ARARAR…AR, where each A is an Arabic digit, and each R is a Roman numeral. Each pair AR contributes...
Question 1:
Create a loop between 1 to 20.
Print “fizz” if the number is divisible by 3
Print “bizz” if the number is divisible by 5
Print “fizzbizz” if a number is divisible by both 3 and 5.
Otherwise, print the number itself.
Question 2:
Continue modify...