Question
Write a computer program that will ask the user to input a three- or four-digit code for aluminum alloys (Table 14-3). You will have to
Write a computer program that will ask the user to input a three- or four-digit code for aluminum alloys (Table 14-3). You will have to ask the user to provide one digit at a time or figure out a way of comparing different digits in a string. This will be followed by a letter and a number (e.g., T and 4).
The program should then provide the user with some more detailed information about the type of alloy. For example, if the user enters 2024 and then T4, the program should provide an output that will specify that (a) the alloy is wrought type, (b) Cu is the major alloying element (since the first digit is 2), and (c) it is naturally aged. Do not make the program too complex. The main idea here is for you to see how databases for alloys are designed.
shows the decimal \% of the Al concentration (e.g., 1060 is a 99.6\% Al alloy). Last digit indicates product form, 1 or 2 is ingot (depends upon purity) and O is for castingStep 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