Skip to content
Pooja Bhatia Classes Hari Nagar
  • We teach following classes
    • Class 12
    • Class 11
    • Class 10
    • Class 9
  • Sumita Arora IP/CS Solutions
  • Jobs/Internship
Pooja Bhatia Classes Hari Nagar

sa 11 cs chapter 8

3. Write a program that asks the user for two numbers and prints Close if the numbers are within .001 of each other and Not close otherwise.

sa 11 cs chapter 8, sa 11 ip chapter 5 / PythonCSIP CS IP

3. Write a program that asks the user for two numbers and prints Close if the numbers are within .001 of each other and Not close otherwise. Read More »

2. A store charges ? 120 per item if you bu^ less than 10 items. If you buy between 10 and 99 items, the cost is ? 100 per item. If you buy 100 or more items, the cost is ^ 70 per item. Write a program that asks the user how many items they are buying and prints the total cost.

sa 11 cs chapter 8, sa 11 ip chapter 5 / PythonCSIP CS IP

# Code items = int(input(‘Enter number of items : ‘)) if items < 10: cost = 120*items elif items < 100: cost = 100*items else: cost = 70*items print('Total Cost is Rs', cost)

2. A store charges ? 120 per item if you bu^ less than 10 items. If you buy between 10 and 99 items, the cost is ? 100 per item. If you buy 100 or more items, the cost is ^ 70 per item. Write a program that asks the user how many items they are buying and prints the total cost. Read More »

Post pagination
← Previous 1 … 29 30 31 … 38 Next →
  • We teach following classes
    • Class 12
    • Class 11
    • Class 10
    • Class 9
  • Sumita Arora IP/CS Solutions
  • Jobs/Internship
  • We teach following classes
  • Sumita Arora IP/CS Solutions
  • Jobs/Internship

Copyright © 2025 Pooja Bhatia Classes Hari Nagar | Powered by Pooja Bhatia Classes Hari Nagar.