Question: Write a Python Program to run calculation of A3 BW (1 page), A4 BW (1 page), A4 Color (1 page), A3 color (1 page). The

Write a Python Program to run calculation of A3 BW (1 page), A4 BW (1 page), A4 Color (1 page), A3 color (1 page). The answer should be $6.Printing Prices 

A4 (Black & White) 

Page count: 1 - 3 pages = $3

Page count: 4 - 29 Pages = $+0.3/each page

Page count: 30 - 99 Pages = $+0.2/each page

Page count: Above 100 Pages= $+0.1/ each page 

Pages A3 (Black & White) 

Page count: 1 - 3 pages = $3

Page count: 4 - 29 Pages = $+0.6/each page

Page count: 30 - 99 Pages = $+0.4/each page

Page count: Above 100 Pages= $+0.2/ each page 

Pages A4 (Color) 

Page count: 1 - 3 pages = $3

Page count: 4 - 29 Pages = $+0.8/each page

Page count:30 - 99 Pages = $+0.5/each page

Page count: Above 100 Pages= $+0.3/ each page 

Pages A3 (Color) 

Page count: 1 - 3 pages = $3

Page count: 4 - 29 Pages = $+1.6/each page

Page count: 30 - 99 Pages = $+1/each page

Page count: Above 100 Pages= $+0.6/ each page 

 The total value of the cart will be $3 if the total number of pages is less than 3 for each category except Pages A3 (color). Each page added for A3 color will count from 1-3 pages =$3 and so on as per the pricing list.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Input the number of pages for each category a4bw intinputEnter number of pages of A4 Black White a3b... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!