Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main() {
- int experience;
- cin >> experience;
- cin.ignore();
- string specialty;
- getline(cin, specialty);
- double salary = 0;
- if (specialty == "C# Developer") {
- salary = 5400;
- }
- else if (specialty == "Java Developer") {
- salary = 5700;
- }
- else if (specialty == "Front-End Web Developer") {
- salary = 4100;
- }
- else if (specialty == "UX / UI Designer") {
- salary = 3100;
- }
- else if (specialty == "Game Designer") {
- salary = 3600;
- }
- if (experience <= 5) {
- salary -= salary * 0.658;
- }
- printf("Total earned money: %.2f BGN", salary * 12);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement