Help me | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Help me

You sell souvenir kaleidoscopes at a gift shop, and if a customer buys more than one, they get a 10% discount on all of them! Given the total number of kaleidoscopes that a customer buys, let them know what their total will be. Tax is 7%. All of your kaleidoscopes cost the same amount, 5.00. Task: Take the number of kaleidoscopes that a customer buys and output their total cost including tax and any discounts. Input Format: An integer value that represents the number of kaleidoscopes that a customer orders. Output Format: A number that represents the total purchase price to two decimal places. Sample Input: 4 Sample Output: 19.26

27th Apr 2023, 1:13 PM
Dr Bangotra
Dr Bangotra - avatar
11 Answers
+ 9
Yes, I can. But it is your task to solve it not mine. "Helping" means we can help you to solve it yourself, not that others do the work for you. Please link your code. And tag the relevant programming language.
27th Apr 2023, 1:27 PM
Lisa
Lisa - avatar
+ 8
Hello! You have not understand the purpose of sololearn. We are not here for helping with tasks or homework, we are here to help you if you have problems in YOUR code. So, upload your attempt and we will help you. Thanks.
27th Apr 2023, 1:31 PM
Ugulberto Sánchez
Ugulberto Sánchez - avatar
+ 7
What help do you need? Please link your code, we cannot see what you are trying. Start by getting the input. Determine if the customer gets a discount. Calculate the price and add the taxes. Output the result in the appropriate format.
27th Apr 2023, 1:18 PM
Lisa
Lisa - avatar
+ 5
Have you considered doing a course before trying to solve this task?
27th Apr 2023, 1:42 PM
Lisa
Lisa - avatar
+ 5
Complete any course from sololearn then try to solve it
27th Apr 2023, 2:10 PM
Hasnain [ACTIVE CHALLENGER]
Hasnain [ACTIVE CHALLENGER] - avatar
+ 4
That code has so many errors… it is a complete disaster. Try completing python sololearn course and next trying that exercise.
27th Apr 2023, 3:00 PM
Ugulberto Sánchez
Ugulberto Sánchez - avatar
+ 1
That is just simple math. Why dont you google the formula online and write the math code.
29th Apr 2023, 5:14 AM
Okwara Favour
Okwara Favour - avatar
0
Can u solve the whole code ??
27th Apr 2023, 1:22 PM
Dr Bangotra
Dr Bangotra - avatar
0
a=(1) b=5 c=.07 d=0.1 print(a*b+c*a*b-d*a*b-d*c*a*b)
27th Apr 2023, 1:35 PM
Dr Bangotra
Dr Bangotra - avatar
0
I did this
27th Apr 2023, 1:35 PM
Dr Bangotra
Dr Bangotra - avatar
0
Please help
27th Apr 2023, 1:35 PM
Dr Bangotra
Dr Bangotra - avatar