Posted at 06:29h
in
Uncategorized
by admin
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...
Question:
We have learned infix, prefix and postfix, please write the missing prefix and postfix in the table blow:
infix
prefix
postfix
A+B
+AB
AB+
A+B*C
+A*BC
ABC*+
(A+B)*C
*+ABC
AB+C*
A+B*C+D
++A*BCD
ABC*+D+
(A+B)*(C+D)
A*B+C*D
A+B+C+D
...
Posted at 06:24h
in
Uncategorized
by admin
Question 1:
Make a function that will allow you to print any name, address, street, city, state or province, zip or postal code, and country in the world. (Hint: It needs seven arguments. You can pass them as individual arguments or as a list.)
Question 2:
Write a function to calculate the total value of some...
Posted at 00:15h
in
code
by admin
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<script type="text/javascript" src="./scripts/jsb-global.js"></script>
<script type="text/javascript" src="./scripts/solar_quiz.js"></script>
<title>Document</title>
</head>
<body>
<div class='quiz-container' id='quiz'>
<div class='quiz-body'>
<h2 id='question'>Question Text:</h2>
...
Question:
The bad thing about being an international Man of Mystery (MoM) is there’s usually someone who wants to kill you. Sometimes you have to stay on the run just to stay alive. You have to think ahead. You have to make sure you don’t end...
Question 1:
A store is having a sale. They’re giving 10 percent off purchases of $10 or lower, and 20 percent off purchases of greater than $10. Write a program that asks the purchase price and displays the discount (10% or 20%) and the final price.
Sample Input...