#include <iostream>
#include <iomanip>
#include "conio.h"
#include <array>
#include <string>
#include <fstream>
#include <cstdlib>
#include <cctype>
#include <cmath>
using namespace std;
int main()
{
char date[9];
_strdate_s(date);
const int SIZE = 19;
int stock[SIZE] = {0,5,15,21,7,5,5,25,18,12,15,21,7,5,5,25,18,12,33};
double strength[] = {" "[0],"1"[1],"2"[2],"2.5"[3],"3"[4],"4"[5],"5"[6],"6"[7],"7.5"[8],"10"[9],
"1"[10],"2"[11],"2.5"[12],"3"[13],"4"[14],"5"[15],"6"[16],"7.5"[17],"10"[18]};
const int MAXITEMS = 19;
string inventory[MAXITEMS] = {" ","Coumadin (1MG) ",
"Coumadin (2MG) ",
"Coumadin (2.5MG)",
"Coumadin (3MG) ",
"Coumadin (4MG) ",
"Coumadin (5MG) ",
"Coumadin (6MG) ",
"Coumadin (7.5MG)",
"Coumadin (10MG) ",
"Warfarin (1MG) ",
"Warfarin (2MG) ",
"Warfarin (2.5MG)",
"Warfarin (3MG) ",
"Warfarin (4MG) ",
"Warfarin (5MG) ",
"Warfarin (6MG) ",
"Warfarin (7.5MG)",
"Warfarin (10MG) "};
int menu;
cout <<"*********************************** \n";
cout <<"*********************************** \n";
cout <<"** Hazardous Material ** \n";
cout <<"** Retrieval and Disposal ** \n";
cout <<"*********************************** \n";
cout <<"*********************************** \n";
cout <<"** ** \n";
cout <<"** 1. View Drug Inventory ** \n";
cout <<"** ** \n";
cout <<"** 2. Quit ** \n";
cout <<"** ** \n";
cout <<"*********************************** \n";
cout <<"*********************************** \n";
cout <<" \n";
cin >> menu;
switch (menu)
{
case 1:
{
cout << "Drug Name Amount in Inventory" << endl;
int x;
for (x = 1; x <= 18; x++)
{
double milligrams = ((stock[x]) * (strength[x]));
cout << inventory[x] << " " << milligrams << endl;
}
}
case 2:
{
{
cout << " " << endl;
cout << "Program will now terminate." << endl;
}
system("pause");
}
}
}
|