Question: Database Identification System for Alloys. Write a computer program that will ask the user to input a three- or four-digit code for aluminum alloys (Table
Database Identification System for Alloys. 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.
Table 14-3 Designation system for aluminum alloys Wrought alloys: 1xxx 2xxx 3xxx 4xxx 5xxx 6xxx 7xxx 8xxx 9xxx Casting alloys: 1xx.x.b 2xx.x. 3xx.x. 4xx.x. 5xx.x. 7xx.x. 8xx.x. 9xx.x. Commercially pure Al (>99% Al) Al-Cu and Al-Cu-Li Al-Mn Al-Si and Al-Mg-Si Al-Mg Al-Mg-Si Al-Mg-Zn AHLI, Sn, Zr, or B Not currently used Commercially pure Al Al-Cu Al-Si-Cu or Al-Mg-Si Al-Si AH-Mg Al-Mg-Zn Al-Sn Not currently used Not age hardenable Age hardenable Not age hardenable Age hardenable if magnesium is present Not age hardenable Age hardenable Age hardenable Age hardenable Not age hardenable Age hardenable Some are age hardenable Not age hardenable Not age hardenable Age hardenable Age hardenable a The first digit shows the main alloying element, the second digit shows modification, and the last two digits shows the decimal % of the Al concentration (e.g., 1060 is a 99.6% Al alloy). bLast digit indicates product form, 1 or 2 is ingot (depends upon purity) and 0 is for casting.
Step by Step Solution
3.47 Rating (170 Votes )
There are 3 Steps involved in it
Solution From above the computer program is as follows ... View full answer
Get step-by-step solutions from verified subject matter experts
