63 796
Assignments Done
99,4%
Successfully Done
In August 2018

Answer to Question #79275 in C for bindu

Question #79275
John was given a task to make a rectangular box during his innovation competition. He was given with the P cm of wire and S cm2 of special paper. He had to use all the wire (for the 12 edges) and paper (for the 6 sides) to make the box. So what will be the maximum volume of that box?

Input Format

The first line contains n, the number of test cases.
Each test case contains two integers A and B in a line.
Constraints

Resultant to be of two decimal places accuracy.
Output Format

Single lined output for the maximum volume of the made box with 2 two decimal places.
Sample Input 0

2
20 14
20 16
Sample Output 0

3.0
4.15
Expert's answer
Dear bindu, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions