Question
Three dimensional averaging in C programming. please assign random transparency at the beginning of the program... And let me have brief explanation of the program
Three dimensional averaging in C programming.
please assign random transparency at the beginning of the program...
And let me have brief explanation of the program or algorithm.
You are the lead developer of a software consulting firm that has recently landed an
important software contract. As the lead developer you are responsible for the
technical delivery of all software contracts.
The customer (Glass Corp) manufactures small glass cubes. The cubes are
manufactured in batches of 27. The 27 cubes are then stuck together to make larger
cubes. The trouble is that during the manufacturing process the small glass cubes are
produced with randomly varying levels of transparency due to impurities within the
glass. What GlassCorp require is a software tool that will work out the best possible
arrangement of the small 27 cubes to produce larger cubes with the best overall
transparency.
Your boss has given you the following requirements specification:
--------------------
Given 27 cubes of glass with differing transparency, arrange them into
a cube with the best overall transparency.
Write a program which performs the arrangement as fast as possible
then prints out the result and the execution time.
Each 27 cube has different transparency. So Software Need to rearrange the cubes to have same or similar Transparency each way... This means RED arrow's summation (3 cube's transparency) should have same or similar value so that the large cube has overall best transparency Final output should be like this [Upper] 1.val, 2.val, 3.val 4.val, 5.val, 6.val 7.val, 8.val, 9.val Just for example 1.val +2.val + 3.val -? [mid) 10.val, 11.val,12.val 13.val, 14.val, 15.val 16.val, 17.val, 18.val 4.val+5.val+6.val-x 1.val + 10.val+ 19.val-? 7.val +16.val+ 25.val-? ower 19.val, 20.val, 21.val 22.val, 23.val, 24.val 25.val, 26.val, 27.val All the summation should be x or close to > Each 27 cube has different transparency. So Software Need to rearrange the cubes to have same or similar Transparency each way... This means RED arrow's summation (3 cube's transparency) should have same or similar value so that the large cube has overall best transparency Final output should be like this [Upper] 1.val, 2.val, 3.val 4.val, 5.val, 6.val 7.val, 8.val, 9.val Just for example 1.val +2.val + 3.val -? [mid) 10.val, 11.val,12.val 13.val, 14.val, 15.val 16.val, 17.val, 18.val 4.val+5.val+6.val-x 1.val + 10.val+ 19.val-? 7.val +16.val+ 25.val-? ower 19.val, 20.val, 21.val 22.val, 23.val, 24.val 25.val, 26.val, 27.val All the summation should be x or close to >Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started