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

You get a list of products (products.txt) from a toy store. We want all products in the “party games” category of which there are still more than 10 in stock a price reduction giving € 1. You then create the file products_adapted.txt in which all data of the original file are saved.

In the products.txt file, you will find the following information:

Item name – Item type – Item price – Item VAT rate – Item stock In the modified file,

all prices of the articles concerned must be reduced by €1.

Block box;baby items;14.99;21%;15

Werewolves of Wakkerdam;board games;11.99;21%;25

Reading booklet: Good night;books;9.99;6%;12

Football;sports articles;9.99;21%;11

Doll: Emma; dolls; 19.99;21%;0

Uno;party games;9.99;21%;78

Indian suit;carnival items;14.99;21%;1

Spinner; hype articles;9.99;21%;127

Farm with animals;simulation toys;24.99;21%;3

Coconuts;board games;29.99;21%;5

Golf ball;sports articles;2.99;21%;16

Doll: Louis;dolls;19.99;21%;3

Goggles;sports articles;8.99;21%;6



A mother is entitled to € 25.00 child allowance per child. She will receive a supplement of €12.50 for the third child (and each subsequent child). For the fifth (and each subsequent) child, she will receive an additional allowance of €7.50. If the mother's monthly wage is less than or equal to €500.00, she will receive a 25% surcharge on the child benefit. But if her monthly wage is greater than €2000.00, she will receive 25% less child benefit. A mother is always entitled to a minimum of €25.00 per child. Question: Read in the number of children and monthly wages, and show the child benefit to which the mother is entitled. (For example, 6 children and € 500.00 monthly wage give € 215.00 child benefit).


question- Write a program to store 5 names and phone numbers in two different arrays. Write another program to search for contacts from the array.


answer-

names=[""]*5

numbers=[""]*5

for i in range(5):

names[i]=input("Enter name")

numbers[i]=input("Enter number")


user_input=input("Enter value to search")

for i in range(5):

if user_input==names[i]:

print(numbers[i])


need this converted to pseudocode**



1. Write a program to print numbers in reverse order with a difference of 2, set the initial value to 10.


2. Write a program to print the sum of digits of any number entered by the user.


3. Write a program to find the product of digits to any number entered by user.


4. Write a program to find the factorial of any number.


5. Write a program to convert a binary number to a decimal number.



Taru exam is on the head. So she started learning physics. There she learned about Pascal's law. Now she wanted to try an experiment to get a better understanding of the same.




All




1




For the experiment Taru has N buckets (numbered from 1,2,3...N) which all are initially empty. She has M number of queries. Each query represents an integer that is of 4 types.




Query 1: Fill all the buckets with water.




Query 2: Empty all even valued buckets (2, 4, 6 (N).




• Query 3: Empty all odd number buckets (1, 3, 5,




• Query 4: Empty all the buckets. (1,2,3...N).




You have to return the number of buckets that are filled after performing M queries.

You are given n inputs write a python program to print the numbers that are multiples of 3.


Input:

The first line of input is integer N.

The next N lines each contain an integer as input.


Explanation:

In the given example, there are 6 inputs . 1,2,3,5,9,6. The numbers 3,9,6 are multiples of 3.

So the output, should be


3

9

6


Sample Input 1

6

1

2

3

5

9

6

Sample Output 1

3

9

6

Sample Input 2

4

1

3

6

8

Sample Output 2

3

6


Checking the dimensions of luggage – a program that checks the size of luggage.  Guidelines:

 Define a function that: - gets data as a string parameter in a format like: 13x34x54 - creates a list with 3 numbers as a dimensions: [width, height, depth] - calculates and returns a size of luggage

 Define a main function that: - enters dimensions of luggage in a format like: 13x34x54 - checks whether the size of luggage is bigger then 158 cm.


Write a python function that will take any integer and return true or false if the number is palindrome using loop. Call this function in main body of the program and verify your output by printing the value returned.


1


2


6


8


3


These integers in range find the prime number

2


6


7


9


5


Find the prime no.of range