Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help me with this Python assignment. Problem Description: Your programs run on a chip, a CPU. This chip is manufactured on a silicon wafer,

image text in transcribedimage text in transcribed

image text in transcribed

image text in transcribedPlease help me with this Python assignment.

Problem Description: Your programs run on a "chip", a CPU. This chip is manufactured on a silicon wafer, a very very thin circular slice of purified silicon with some impurities added to it. A silicon wafer usually has many chips (or dies) created on its surface by automated tools and robots, then at one point in the process the wafer is sliced apart to make individual CPUs (or dies). Your program will do some calculations about these wafers and chips. Follow this link for more information. Given the diameter of the silicon wafer in millimeters (mm), the area of the wafer in square millimeters (mm2 ) and the area of one individual chip (die) in square millimeters (mm2), this equation will calculate how many dies can be cut from the wafer. The equation corrects for wasted material near the edges. Note that it should give an integer number of dies (you don't want to cut half a die). Note that the area of the wafer is NOT an input value. You will have to calculate the area of the wafer given the diameter. If you need to, look up the formula for the area of a circle. DiesperWafer=dieAreawaferArea2dieAreawaferDiameter Where: DiesPerWafer (the number of dies cut from a wafer) = the answer waferDiameter = the diameter of the wafer (mm) dieArea = the chip size (mm2) waferArea = area of the wafer (mm2) (must be calculated ahead of time) Sample Run 1 What is the diameter of the wafer? (mm) 255.5 What is the area of a single die? (mm2)17.0 From a wafer with area 51270.99 square millimeters you can cut 2878 dies. This does not take into account defective dies, alignment markings and test sites on the wafer's surface. Sample Run 2 What is the diameter of the wafer? (mm) 400 What is the area of a single die? (mm2)25.0 From a wafer with area 125663.71 square millimeters you can cut 4848 dies. This does not take into account defective dies, alignment markings and test sites on the wafer's surface. Test Plan ( 30 points) Part of our grading process will be to run your program with these cases. Submit screenshots to demonstrate results for A., B., and C. No points would be given if there are no screenshots of the test cases. To get full credit, your program must produce the right results for all test cases below and you must provide screenshots. Test cases are worth 5 points each. (20 points) Design: Write the design for the program in pseudocode as comments and submit it to Icollege as "design.py". NOTE that we do not want Python code in this file! Just comments which can be used in the implementation later. - Give the three P's (purpose, pre- and post-conditions) and author info as usual. The steps do NOT have to be numbered. - \# supply program prolog (3 P's) - \# main function - \# Display introductory message - Your design here (60 points) Implementation: Write a Python program to implement your design. Start by making a copy of the Python file you have that has the design in it (possibly modified with improvements you or your partner came up with) and write your Python code between the commented lines of the design. Make sure you eliminate any syntax and semantics errors. Here is where test cases are important! Name this file wafer_FirstName_LastName.py. For instance, if your name is John Doe, the file name should be wafer_John_Doe.py Specifications for the implementation - This program uses input; you will have to prompt the user for the inputs. The inputs can be assumed to be floats. - You must use at least one function and one constant from the math library. - Format the calculated wafer area to 2 places. - You should have a main function and all code except for the import statement should be inside the main function definition. - Make sure you format the lines of the output as described. The line breaks and the punctuation should be as shown. The output messages should be exactly as given

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions