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

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

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

Solution

It seems like you want to input the name and price of each stock item in a retail store software and then print it. Here's a simple way to do it in Python:

# Create a dictionary to store the stock items and their prices
stock = {
    'dinnerset': 10000,
    'mattress': 24000,
    'Invertor': 30000
}

# Loop through the dictionary and print each stock item and its price
for item, price in stock.items():
    print(f'{item}: {price}')

When you run this code, it will print:

dinnerset: 10000
mattress: 24000
Invertor: 30000

This is a simple example. Depending on the specific requirements of your retail store software, you might need to modify this code. For example, you might need to get the stock items and their prices from a database or a user input, or you might need to format the output differently.

This problem has been solved

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 code that allow the user to enter the price of an item and the quantity. The program should calculate it and print total including VAT using the following formula: Total =  Price Quantity * 1.1For example, if the user enters 2 as price and 5 for quantity, then the program will print "Total price with VAT: 11.0"

Write a program to enter the names of books and their prices as inputs in a Dictionary. Perform the following operations for the purchase of the books by the customer.·       Add more details of books to the dictionary·       For books priced above 1000-2999 provides a discount of 5%·       For books that are priced above 3000- 5000 provide a discount of 3% on the purchase·       For books above 5000 provides a discount of 2%.·       Books priced below 500 no discount is provided.Input format :The input consists of the book name and price.Then the choice (1 to enter more and 0 to stop).Output format :The output prints the initial and the final dictionary based on the conditions.Refer sample input and output for the formatting specifications.Sample test cases :Input 1 :Applies Stat25001Neural Networks60000Output 1 :[('Applies Stat', 2500), ('Data science Python projects', 300), ('Handbook Statistics', 18000), ('Hands on data science', 1160), ('Machine Learning', 4000), ('Neural Networks', 6000), ('Python and R', 7215)][('Applies Stat', 2375.0), ('Data science Python projects', 300), ('Handbook Statistics', 17640.0), ('Hands on data science', 1102.0), ('Machine Learning', 3880.0), ('Neural Networks', 5880.0), ('Python and R', 7070.7)]Input 2 :Applies Stat25001Neural Networks60001Artificial Intelligence52001Computer Networks25000Output 2 :[('Applies Stat', 2500), ('Artificial Intelligence', 5200), ('Computer Networks', 2500), ('Data science Python projects', 300), ('Handbook Statistics', 18000), ('Hands on data science', 1160), ('Machine Learning', 4000), ('Neural Networks', 6000), ('Python and R', 7215)][('Applies Stat', 2375.0),

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.