Posted at 01:05h
in
Uncategorized
by admin
Question:
Continue with the code in the last class. Make sure when you move the circle out of the screen from the left side, the circle should enter again from the right side. Also, when the circle moves out of the screen from the top, the...
Posted at 01:04h
in
Uncategorized
by admin
Question:
Use the classes we created in the previous class, write code to create an average stack, the average stack should contain the average of all the numbers in the stack including the top number.
This is similar to MinMaxStack, but instead of a minimum and maximum...
Posted at 01:02h
in
Uncategorized
by admin
Question:
Write a program that asks for the dimensions (in feet) of a rectangular room, and then calculates and displays the total amount of carpet needed to cover the room....
Question:
Given an array of unique integers salary where salary[i] is the salary of the employee i.
Return the average salary of employees excluding the minimum and maximum salary.
Example 1:
Input: salary = [4000,3000,1000,2000]
Output: 2500.00000
Explanation: Minimum salary and maximum salary are 1000 and 4000 respectively.
Average salary excluding minimum...
Posted at 02:08h
in
archives
by admin
1. What is the output of print mystr * 2 if mystr = 'Hello World!'? A. Hello World * 2 B. Hello World! Hello World! C. Hello Hello D. mystr mystr2. Which of...
Question:
You supervise a small parking lot which has N parking spaces. Yesterday, you recorded which parking spaces were occupied by cars and which were empty. Today, you recorded the same information. How many of the parking spaces were occupied both yesterday and today?
Input Specification:
The first line of input contains the...