Single file programming questions. While purchasing certain items, a discount of 10% is offered if the quantity
Fantastic news! We've Found the answer you've been seeking!
Question:
Single file programming questions.
While purchasing certain items, a discount of 10% is offered if the quantity purchased is more than 1000. If the quantity and price per item are input, write a program to calculate the total
expenses.
Input format.
The first line contains an integer T, total number of test cases. Then follow T lines, each line contains integers quantity and price.
Output format
For each test case, output the total expenses while purchasing items, in a new
line.
Code constraints
• 1≤T≤1000
• 1 quantity, e <= 100000
Sample test cases is given in pic..
Related Book For
Managing Supply Chain and Operations An Integrative Approach
ISBN: 978-0132832403
1st edition
Authors: Thomas Foster, Scott E. Sampson, Cynthia Wallin, Scott W Webb
Posted Date: