// initial_project.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include<iostream>
using namespace std;
void printmessage()
{
cout <<" ***WELCOME TO THE ALLOY INQUIRY PROGRAM!*** " <<endl;
cout << endl;
cout<< "Please Choose the Number of Your corresponding Choice\n \n (1) Aluminum Alloys \t \t (11) Mercury Alloys \n (2) Bismuth Alloys \t \t (12) Nickel Alloys" <<endl;
cout << " (3) Cobalt Alloys \t \t (13) Potassium Alloys \n (4) Copper Alloys \t \t (14) Rare Earth Alloys \n (5) Gallium Alloys \t \t (15) Silver Alloys \n (6) Gold Alloys \t \t (16) Tin Alloys \n (7) Indium Alloys \t \t (17) Titanium Alloys " <<endl;
cout<< " (8) Iron Alloys \t \t (18) Uranium Alloys \n (9) Lead Alloys \t \t (19) Zinc Alloys \n(10) Magnesium Alloys \t \t (20) Zirconium Alloys "<<endl;
}
void sub_brass()
{
int brass_;
char ans;
printf("\n Choose The Specific Brass Alloy you wish to be known\n ");
cout << " [1] Calamine Brass \n [2] Chinese Silver \n [3] Dutch Metal \n [4] Gilding Metal \n [5] Muntz Metal \n [6] Pinchbeck \n [7] Prince's Metal \n [8] Tombac " <<endl;
scanf("%d" , &brass_);
switch (brass_)
{
case 1:
cout<<" You Have Chosen Calamine Brass \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS:Copper(Cu), Zinc(Zn) ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 2:
cout<<" You Have Chosen Chinese Silver \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Copper(Cu), Zinc(Zn)";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 3:
cout<<" You Have Chosen Dutch Metal \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Copper(Cu), Zinc(Zn)";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 4:
cout<<" You Have Chosen Gilding Metal \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Copper(Cu), Zinc(Zn) ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 5:
cout<<" You Have Chosen Muntz Metal \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Copper(Cu), Zinc(Zn) ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 6:
cout<<" You Have Chosen Pinchbeck \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Copper(Cu), Zinc(Zn) ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 7:
cout<<" You Have Chosen Prince's Metal \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS:Copper(Cu), Zinc(Zn)";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 8:
cout<<" You Have Chosen Tombac \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Copper(Cu), Zinc(Zn) ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
}
}
void aluminum()
{
int specific_a;
char ans,y,n,a;
cout << "\t >>>ALUMINUM ALLOYS<<< \n " <<endl ;
cout <<endl;
cout << "Choose The Specific Aluminum Alloy you wish to be known " <<endl;
cout << " [1] AA-8000 \n [2] Al-Li \n [3] Alnico \n [4] Duralumin \n [5] Magnalium \n [6] Magnox \n [7] Nambe \n [8] Silumin \n [9] Zamak" <<endl;
scanf("%d" , &specific_a);
switch (specific_a)
{
case 1:
cout<<" You Have Chosen AA-8000 \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 2:
cout<<" You Have Chosen Al-Li \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Aluminum(Al), Lithium(Li), Mercury(Hg)";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 3:
cout<<" You Have Chosen Alnico \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Aluminum(Al), Nickel(Ni), Copper(Cu)";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 4:
cout<<" You Have Chosen Duralumin \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Aluminum(Al), Copper(Cu) ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 5:
cout<<" You Have Chosen Magnalium \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Aluminum(Al), 5% Magnesium(Mg) ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 6:
cout<<" You Have Chosen Magnox \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Aluminum(Al), Magnesium Oxide(MgO) ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 7:
cout<<" You Have Chosen Nambe \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Aluminum(Al) plus seven unspecified Metals ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 8:
cout<<" You Have Chosen Silumin \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Aluminum(Al), Silicon(Si) ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 9:
cout<<" You Have Chosen Zamak \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Aluminum(Al), Zinc(Zn), Copper(Cu), Magnesium(Mg) ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
}
}
void bismuth()
{
int specific_a;
char ans,y,n,a;
cout << " ---BISMUTH ALLOYS--- \n " <<endl ;
cout <<endl;
cout << "Choose The Specific Bismuth Alloy you wish to be known " <<endl;
cout << " [1] Wood's metal \n [2] Rose metal \n [3] Field's metal \n [4] Cerrobend " <<endl;
scanf("%d" , &specific_a);
switch (specific_a)
{
case 1:
cout<<" You Have Chosen Wood's Metal \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Bismuth(Bi), Lead(Pb), Tin(Sn), Cadmium(Cd) ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 2:
cout<<" You Have Chosen Rose Metal \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Bismuth(Bi), Lead(Pb), Tin(Sn) ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 3:
cout<<" You Have Chosen Field's Metal \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: N/A ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 4:
cout<<" You Have Chosen Cerrobend \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: N/A ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
}
}
void cobalt()
{
int specific_a;
char ans,y,n,a;
cout << "\t >>>COBALT ALLOYS<<< \n " <<endl ;
cout <<endl;
cout << "Choose The Specific Aluminum Alloy you wish to be known " <<endl;
cout << " [1] Megallium\n [2] Stellite \n [3] Talonite \n [4] Ultimet \n [5] Vitallium" <<endl;
scanf("%d" , &specific_a);
switch (specific_a)
{
case 1:
cout<<" You Have Chosen Megallium \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: N/A";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 2:
cout<<" You Have Chosen Stellite \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Cobalt(Co), Chromium(Cr), Tungsten(W), Molybdenum(Mo), Carbon(C) ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 3:
cout<<" You Have Chosen Talonite \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Cobalt(Co), Chromium(Cr) ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 4:
cout<<" You Have Chosen Ultimet \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Cobalt(Co), Chromium(Cr), Nickel(Ni), Molybdenum(Mo), Iron(Fe), Tungsten(W) ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 5:
cout<<" You Have Chosen Vitallium \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: N/A ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
}
}
void copper()
{
int specific_a;
char ans,y,n,a;
cout << "\t >>>COPPER ALLOYS<<< \n " <<endl ;
cout <<endl;
cout << "Choose The Specific Aluminum Alloy you wish to be known " <<endl;
cout << " [1] Arsenical copper \n [2] Beryllium copper \n [3] Billon \n [4] Brass \n [5] Bronze" <<endl;
scanf("%d" , &specific_a);
switch (specific_a)
{
case 1:
cout<<" You Have Chosen Arsenical Copper \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: N/A ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 2:
cout<<" You Have Chosen Beryllium Copper \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Beryllium(Be), Copper(Cu)";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 3:
cout<<" You Have Chosen Billon \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Copper(Cu), Silver(Ag) ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 4:
cout<<" You Have Chosen Brass \n \n " ;
sub_brass();
case 5:
cout<<" You Have Chosen Bronze \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Copper(Cu), Tin(Sn), Any other element ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
}
}
void Gallium()
{
int specific_a;
char ans,y,n,a;
cout << "\t >>>GALLIUM ALLOYS<<< \n " <<endl ;
cout <<endl;
cout << "Choose The Specific Gallium Alloy you wish to be known " <<endl;
cout << " [1] Galinstan" <<endl;
scanf("%d" , &specific_a);
switch (specific_a)
{
case 1:
cout<<" You Have Chosen Galinstan \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Gallium(Ga), Indium(In), Tin(Sn) ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
}
}
void gold()
{
int specific_a;
char ans,y,n,a;
cout << " ---GOLD ALLOYS--- \n " <<endl ;
cout <<endl;
cout << "Choose The Specific Gold Alloy you wish to be known " <<endl;
cout << " [1] Electrum \n [2] Tumbaga \n [3] Rose Gold \n [4] White Gold " <<endl;
scanf("%d" , &specific_a);
switch (specific_a)
{
case 1:
cout<<" You Have Chosen Electrum \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Gold(Au), Silver(Ag), Copper(Cu)";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 2:
cout<<" You Have Chosen Tumbaga \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Gold(Au), Copper(Cu) ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 3:
cout<<" You Have Chosen Rose Gold \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Gold(Au), Copper(Cu) ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 4:
cout<<" You Have Chosen White Gold \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Gold(Au), Nickel,(Ni), Palladium(Pd), Platinum(Pt)";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
}
}
void indium()
{
int specific_a;
char ans,y,n,a;
cout << "\t >>>INDIUM ALLOYS<<< \n " <<endl ;
cout <<endl;
cout << "Choose The Specific Indium Alloy you wish to be known " <<endl;
cout << " [1] Field's Metal" <<endl;
scanf("%d" , &specific_a);
switch (specific_a)
{
case 1:
cout<<" You Have Chosen Field's Metal \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Indium(In), Bismuth(Bi), Tin(Sn) ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
}
}
void steel()
{
{
int steel_;
char ans;
printf("\n Choose The Specific Steel you wish to be known\n ");
cout << "[1] Stainless Steel \n [2] Silicon Steel \n [3] Tool Steel \n [4] Bulat Steel \n [5] Chromoly \n [6] Crucible Steel \n [7] Damascus Steel \n [8] HSLA Steel \n [9] Highspeed Steel \n [10] Wootz Steel" <<endl;
scanf("%d" , &steel_);
switch (steel_)
{
case 1:
cout<<" You Have Chosen Stainless Steel \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Chromium(Cr), Nickel(Ni) ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 2:
cout<<" You Have Chosen Silicon Steel \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Silicon(Si)";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 3:
cout<<" You Have Chosen Tool Steel \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Tungsten(W), Manganese(Mn)";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 4:
cout<<" You Have Chosen Bulat Steel \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: N/A ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 5:
cout<<" You Have Chosen Chromoly \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Chromium(Cr), Molybdenum(Mo) ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 6:
cout<<" You Have Chosen Crucible Steel \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: N/A ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 7:
cout<<" You Have Chosen Damascus Steel \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: N/A";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 8:
cout<<" You Have Chosen HSLA Steel \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: N/A ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 9:
cout<<" You Have Chosen Highspeed Steel \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: N/A ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 10:
cout<<" You Have Chosen Wootz Steel \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: N/A ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
}
}
}
void iron_()
{
int brass_;
char ans;
printf("\n Choose The Specific Iron you wish to be known\n ");
cout << " [1] Anthracite Iron \n [2] Cast Iron \n [3] Pig Iron \n [4] Wrought Iron \n " <<endl;
scanf("%d" , &brass_);
switch (brass_)
{
case 1:
cout<<" You Have Chosen Anthracite Iron \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Carbon(C) ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 2:
cout<<" You Have Chosen Cast Iron \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Carbon(C)";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 3:
cout<<" You Have Chosen Pig Iron \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Carbon(C)";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 4:
cout<<" You Have Chosen Wrought Iron \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Carbon(C) ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
}
}
void iron()
{
int specific_a;
char ans,a;
cout << "\t >>>FERROUS or IRON ALLOYS<<< \n " <<endl ;
cout <<endl;
cout << "Choose The Specific Ferrous Alloy you wish to be known " <<endl;
cout << " [1] Steel \n [2] Iron \n [3] Fernico \n [4] Elinvar \n [5] Invar \n [6] Kovar \n [7] Spiegeleisen \n [8] Ferroalloys" <<endl;
scanf("%d" , &specific_a);
switch (specific_a)
{
case 1:
{cout<<" You Have Chosen Steel \n \n " ;
steel();}break;
case 2:
cout<<" You Have Chosen Iron \n \n " ;
iron_();}break;
case 3:
cout<<" You Have Chosen Fernico \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Cobalt(Co), Nickel(Ni), ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 4:
cout<<" You Have Chosen Elinvar \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Nickel(Ni), Chromium(Cr)";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 5:
cout<<" You Have Chosen Invar \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Nickel(Ni) ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 6:
cout<<" You Have Chosen Kovar \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Cobalt(Co) ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 7:
cout<<" You Have Chosen Spiegeleisen \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Manganese(Mn), Carbon(C), Silicon(Si) ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 8:
cout<<" You Have Chosen Ferroalloys \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS:N/A ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
}
void lead()
{
int specific_a;
char ans,y,n,a;
cout << " ---LEAD ALLOYS--- \n " <<endl ;
cout <<endl;
cout << "Choose The Specific Lead Alloy you wish to be known " <<endl;
cout << " [1] Antimonial Lead \n [2] Molybdochalkos \n [3] Solder \n [4] Terne\n [5]Type Metal " <<endl;
scanf("%d" , &specific_a);
switch (specific_a)
{
case 1:
cout<<" You Have Chosen Antimonial Lead \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Lead(Pb), Antimony(Sb) ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 2:
cout<<" You Have Chosen Molybdochalkos \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Lead(Pb), Copper(Cu)";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 3:
cout<<" You Have Chosen Solder \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Lead(Pb), Tin(Sn) ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 4:
cout<<" You Have Chosen Terne \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS:Lead(Pb), Tin(Sn) ";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;
case 5:
cout<<" You Have Chosen Type Metal \n \n " ;
cout << "PRINT PROPERTIES? (y||n) \n";
cin >> ans;
system("cls");
if (ans=='y'||ans=='Y')
{ cout<< " \t ALLOY INFORMATION \n ";
cout << "***********************************\n\n COMPONENTS: Lead(Pb), Antimony(Sb), Tin(Sn)";
cout<<"\n PHYSICAL PROPERTIES:" ;
cout<< "\n MECHANICAL PROPERTIES: ";
cout<<"\n CHEMICAL PROPERTIES: ";
cout<< " \n BALANCED EQUATION: ";
cout << " \n USES: \n ***********************************";}break;}
}
int main()
{
system("color F2");
int choice_a, specific_a, next_a;
char a;
loop:
printmessage();
cin >> choice_a;
system("cls");
switch (choice_a)
{
case 1:
aluminum();
cout << "\n \n WOULD YOU LIKE TO GO TO THE MAIN MENU? (y||n)";
cin >> a;
if(a=='y'||a=='Y') goto loop ;
else {cout<<"THANK YOU FOR USING THE PROGRAM! HOPE WE ANSWERED YOUR QUIRIES! \n";}break;
case 2:
bismuth();
cout << "\n \n WOULD YOU LIKE TO GO TO THE MAIN MENU? (y||n)";
cin >> a;
if(a=='y'||a=='Y') goto loop ;
else {cout<<"THANK YOU FOR USING THE PROGRAM! HOPE WE ANSWERED YOUR QUIRIES! \n";}break;
case 3:
cobalt();
cout << "\n \n WOULD YOU LIKE TO GO TO THE MAIN MENU? (y||n)";
cin >> a;
if(a=='y'||a=='Y') goto loop ;
else {cout<<"\n THANK YOU FOR USING THE PROGRAM! HOPE WE ANSWERED YOUR QUIRIES! \n";}break;
case 4:
copper();
cout << "\n \n WOULD YOU LIKE TO GO TO THE MAIN MENU? (y||n)";
cin >> a;
if(a=='y'||a=='Y') goto loop ;
else {cout<<"\n THANK YOU FOR USING THE PROGRAM! HOPE WE ANSWERED YOUR QUIRIES! \n";}break;
case 5:
Gallium();
cout << "\n \n WOULD YOU LIKE TO GO TO THE MAIN MENU? (y||n)";
cin >> a;
if(a=='y'||a=='Y') goto loop ;
else {cout<<"\n THANK YOU FOR USING THE PROGRAM! HOPE WE ANSWERED YOUR QUIRIES! \n";}break;
case 6:
gold();
cout << "\n \n WOULD YOU LIKE TO GO TO THE MAIN MENU? (y||n)";
cin >> a;
if(a=='y'||a=='Y') goto loop ;
else {cout<<"\n THANK YOU FOR USING THE PROGRAM! HOPE WE ANSWERED YOUR QUIRIES! \n";}break;
case 7:
indium();
cout << "\n \n WOULD YOU LIKE TO GO TO THE MAIN MENU? (y||n)";
cin >> a;
if(a=='y'||a=='Y') goto loop ;
else {cout<<"\n THANK YOU FOR USING THE PROGRAM! HOPE WE ANSWERED YOUR QUIRIES! \n";}break;
case 8:
iron();
cout << "\n \n WOULD YOU LIKE TO GO TO THE MAIN MENU? (y||n)";
cin >> a;
if(a=='y'||a=='Y') goto loop ;
else {cout<<"\n THANK YOU FOR USING THE PROGRAM! HOPE WE ANSWERED YOUR QUIRIES! \n";}break;
case 9:
lead();
cout << "\n \n WOULD YOU LIKE TO GO TO THE MAIN MENU? (y||n)";
cin >> a;
if(a=='y'||a=='Y') goto loop ;
else {cout<<"\n THANK YOU FOR USING THE PROGRAM! HOPE WE ANSWERED YOUR QUIRIES! \n";}break;
}
system("pause");
}
i know its not a good looking program. but im having problems.
it says., 1>c:\users\ai\documents\visual studio 2010\projects\final_project\final_project\final_project.cpp(962): error C2043: illegal break
can anyone help me?