Knowee
Questions
Features
Study Tools

In  a retail store software , get the price of each stock as input with its price and print in the following format input:dinnerset10000mattress24000Invertor30000 output: dinnerset10,000mattress24,000Invertor30,000

Question

In  a retail store software , get the price of each stock as input with its price and print in the following format input:dinnerset10000mattress24000Invertor30000 output: dinnerset10,000mattress24,000Invertor30,000

🧐 Not the exact question you are looking for?Go ask a question

Solution

Sure, here is a simple Python code that can help you achieve this:

# Define the input
input_data = ['dinnerset10000', 'mattress24000', 'Invert

Similar Questions

Write a C program to store the Item number, quantity sold, and Price of one item in toi.remctf file by reading values from the keyboard.Save your program as lBQ4a.cSample inputItem number quantity sold Price of oneitem(Rs)Ilo 2 12000233 6 5000320 2 10000100 5 1500b) Write a program to read the details from i.femft£ 5°/o discount is given if more than 3 itemsare purchased from an item. Display the total amount paid for each item.` Display the itemnumber and the total amount paid for each item.Save your program as lBQ4b.cSample outputItem No. Total AmountIlo233320loo24000.0028500.0020000.007125.00

Car sales program: 1. Create a program in which the user is asked to enter the brand, model and selling price of a car. Print the information in one print() command subsequently using formatting printing.

Objective:To work with OperatorsScenario:A new stationary shop has been opened in the city. The owner asks his accountant to take the list of items sold in the store. The list should contain the details of the items and their costs. Help the accountant to generate the prince list by writing a Python program.  Generate list with just 4 products -  A4sheets, pen, pencil and eraser and get the price of the items from the user.  Please refer the sample input and output statements for more clarifications.Guidelines:The amount must be displayed with 2 decimal places. On entering the product price to be a negative number, the program should display the message " Invalid input" and stop the program. Sample Input 1 :Cost of A4sheet:40Cost of pen:20Cost of pencil:10Cost of eraser:5Sample Output 1 :Items DetailsA4sheet:40.00Pen:20.00Pencil:10.00Eraser:5.00Sample Input 2 :Cost of A4sheet:40Cost of pen:20Cost of pencil:10Cost of eraser:-5Sample Output 2 :Invalid inputSample Input 3 :Cost of A4sheet:86Cost of pen:10Cost of pencil:-34Sample Output 3 :Invalid input

Write a program that includes two functions. The first function should ask a salesperson for the price value of daily sales and then return this figure to the main program. The second function should calculate the salesperson’s commission based on the following rates:Sales (in rs)commission0-9993%1000-29993.5%3000- up4.5%The calculated commission should be returned to the main program, which then displays it.

IPS_6Write a program that includes two functions. The first function should ask a salesperson for the price value of daily sales and then return this figure to the main program. The second function should calculate the salesperson’s commission based on the following rates:Sales (in rs)commission0-9993%1000-29993.5%3000- up4.5%The calculated commission should be returned to the main program, which then displays it. Output:Enter the dollar value of daily sales: $1500Commission for the day: $52.50

1/1

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.