#include <iostream>typedef struct { std::string name; char category; double salary; double tax; void getTax () { if (category == 'A') { tax = 0.1; } else if ( category == 'B' ) { tax = 0.15; } else if ( category == 'B' ) { tax = 0.2; } else { tax = 0.3; } } double calculateSalary () { return salary - (salary * tax); }} Employee;int main() { Employee Eric = new Employee(); sts::cout << "Enter name, category and salary for employee" << std::endl; std::cin >> Eric.name >> Eric.category >> Eric.salary; Eric.getTax(); Eric.salary = Eric.calculateSalary(); std::cout << Eric.name << "'s salary is " << Eric.salary << std::endl; delete Eric; return 0;}#include <iostream>int main() { int minutes; std::cout << "Enter total minutes talked" << std::endl; std::cin >> minutes; std::cout << "You owe us " << minutes << " cents" << std::endl; return 0;}