Let b is a real number. Let n be a non -negative integer. Assume b and n are not
simultaneously 0. Write iterative and recursive functions that return value of b n, the nth power of b
Write iterative and recursive functions that return value of
b
n
,
the nth power of
Did you know that in lotteries, a 3-digit number with the same numbers in all digits like 777 will hit the jackpot in a casino? In the same manner, let's make a program that will test if a certain 3-digit number hits a jackpot or not by identifying if all the digits of a given number is the same as the second inputted number. If it is, print "Jackpot!"; else, print "Nah".
Let's try this out now!
Input
A line containing two integers separated by a space.
777·7Output
A line containing a string.
Jackpot!There are different kinds of numbers, but among them all, the most commonly used numbers in our daily lives are those positive ones. So, I only want you to count all the positive numbers from the 4 outputted values and print out the result.
Go and search for the positive ones among these four!
Input
A line containing four numbers (may contain decimal places) separated by a space.
2·-4·3.6·1Output
A line containing an integer.
3Let's play a game of FizzBuzz! It works just like the popular childhood game "PopCorn", but with rules of math applied since math is fun, right?
Just print out "Fizz" when the given number is divisible by 3, "Buzz" when it's divisible by 5, and "FizzBuzz" when it's divisible by both 3 and 5!
Let the game begin!
Input
A line containing an integer. It is guaranteed that the input is either divisible by 3, 5, or by both.
15Output
A line containing a string.
FizzBuzzSCENARIO 1:You were tasked to create and send out formal invitations for a promo campaign that a company is running. You were also initially given a list of ten names of loyal costumers to send out to. Q1.From the scenario above, describe briefly how you would most likely complete the task of sending 10 invitations with individual names of recipients using Microsoft word. Q2.Give examples of documents that you can personalize and send or distribute. SCENARIO 2:You were making a report on the positive effects of using solar energy to the environment. To make your report more appealing, you thought of putting a picture of a solar panel into your report. You also considered presenting graphical data on the trends of world wide initiatives on the use of solar energy. Q1.Describe briefly how you can insert pictures in a Word document. Q2.What other kinds of images or materials can be inserted in a Word document?
write a program that calculates and produces these two columns sequence numbers using the three looping statements
We Filipinos are quite known for the habit of leaving at least one of the many pieces of food on the plate as it can't be equally divided among all at most times. Just like when 3 people decide to eat a pizza of 10 slices, there will often be at least one slice left on the box. To accurately show just how many pieces of things are left when divided by a certain number, we code it using modulo.
Care to do it for me?
Find the area of a circle where the radius is provided by the user.
Write a C program that displays the word “WOW” vertically in large letters (similar to
Tut1.1). Each letter should be drawn by a function, e.g. Draw_W, Draw_O, etc. In the
beginning of the program the user must be asked how many times the speaker must beep.
Once the word “WOW” is displayed, the speaker must then be beeped for that amount of
times and must display a “.” for every beep (horizontally). This beep and display of the “.”
must be done by another function called Beep. Make use of the following structure chart
to assist you.