Write your question here.
#include <iostream>
#include <iomanip>
using namespace std;
int main ()
{
char Category A,
char Category B,
char Category C,
int TotalDays,
double DailyPay;
cout << "Enter Category\n";
cin >> Category;
{
cout << "You must enter A through C\n";
cin >> Category;
}
cout << fixed << showpoint << setprecision(2);
switch (Category)
{
case 1:
cout << "category A." << endl;
cout << "Enter Number of days worked: ";
cin >> Daysworked;
if ( Daysworked = 25)
pay = 1000 * Daysworked;
else
if ( Daysworked < 25)
pay = 800 * Daysworked;
else
if ( Daysworked > 25)
pay = (25 * 1000) + (Daysworked - 25) * (1200);
cout << endl;
pay = Dailypay;
cout << "The Casual Worker's pay is Ksh " << pay;
cout << endl;
break;
case 2:
cout << "category B." << endl;
cout << "Enter Number of days worked: ";
cin >> Daysworked;
if ( Daysworked = 25)
pay = 800 * Daysworked;
else
if ( Daysworked < 25)
pay = 600 * Daysworked;
else
if ( Daysworked > 25)
pay = (25 * 800) + (Daysworked - 25) * (1000);
cout << endl;
pay = Dailypay;
cout << "The Casual Worker's pay is Ksh " << pay;
cout << endl;
break;
case 3:
cout << "category C." << endl;
cout << "Enter Number of days worked: ";
cin >> Daysworked;
if ( Daysworked = 25)
pay = 600 * Daysworked;
else
if ( Daysworked < 25)
pay = 400 * Daysworked;
else
if ( Daysworked > 25)
pay = (25 * 600) + (Daysworked - 25) * (800);
cout << endl;
pay = Dailypay;
cout << "The Casual Worker's pay is Ksh " << pay;
cout << endl;
break;
}
return 0;
}