Questions: 5 831

Answers by our Experts: 5 728

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Write a program to output the following:

**********
*        *
* PYTHON *
*        *
**********





I.               PROJECT NAME : STORE INFORMATION

 

Problem Definition:

a.     Create and design a program that will determine a product, price, quantity, total amount etc.

b.     Demonstrate the concept of Full Python Program using Selection and Loop Control Statement.

c.      Construct the Flowchart to show the program logic sequence.

d.   Herewith are the requirements:

                                                  i.    Store Name

                                                ii.    Name of Customer

                                              iii.    Address

                                              iv.    Contact Number

                                                v.    Lists of Product to offer

                                              vi.    Price List

                                            vii.    Cash Amount

                                          viii.    Total Quantity of Product

                                              ix.    Total Amount to be paid.

                                                x.    Cash Changed

                                            xi.    Sample Output



Charles wants to buy a nuckles in which

write a program to print frequency of each word


Maximum Product of the Digits

Given a range represented by two positive integers L and R. Find the number lying in the range having the maximum product of the digits.

Input


The first line of input will be an integer, denoting the number of test cases T.

The next T lines will contain two space-separated integers, denoting the L and R.

Output


The output should be T lines containing the the number with the maximum product of the digits in the range L and R for each test case.

Explanation


For example, if the given T is 2, read the L and R of the first test case in the next line. If the given L and R are 1 and 10 respectively. As 9 is the number with the maximum product of digits, the output for the first test case should be 9.

If the L and R are 15 to 30 respectively. The product of the digits of number 29 is 18. As 18 is the maximum product in the range, the output should be 29.

Sample Input 1

2

1 10

15 30

Sample Output 1

9

29


Sample Input 2

4

100 200

51 62

10 30

20 80

Sample Output 2

199

59

29

79


Write a PYTHON program to find the path with the largest sum. Tree can be in N level and draw the binary tree and accept a perfect and imperfect binary tree as an option from the user.



Enter the level of binary tree:4

This code generates binary tree with minimum 4 levels

The maximum sum is 341

The maximum sum path is 65 89 83 53 51




Enter the level of binary tree:2

This code generates binary tree with minimum 2 levels

The maximum sum is 341

The maximum sum path is 65 89 83 53 51  

----Both the sum values are same..but i want based on levels


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·7

Output

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·1

Output

A line containing an integer.


3

Let'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.


15

Output

A line containing a string.


FizzBuzz
  1. Create a program that uses an input to get a number (a) and multiplies it by 8. 
  2. The program should output the product 
  3. Create a program that uses an input to get number (b) and multiplies it by 12.
  4. The program should output the product as a whole number only.
  5. Create a program that:
  6. Asks the user for an integer number (n).
  7. Outputs the user's number.
  8. Outputs the answer to the equation (2*n +3) / 2
  9. The output should look like this (you will need to use a float here) :
  10. Create a program that:
  11. Asks the user for a float (decimal) number (x).
  12. Outputs the user's number.
  13. Outputs the answer to the equation ((4*n -7) *3) / 2

Please do the entire thing on python. I don't understand anything.


LATEST TUTORIALS
APPROVED BY CLIENTS