Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import (
- "bufio"
- "os"
- "fmt"
- )
- func main() {
- var experience int
- fmt.Scanln(&experience)
- scanner := bufio.NewScanner(os.Stdin)
- scanner.Scan()
- specialty := scanner.Text()
- salary := 0.0
- switch specialty {
- case "C# Developer":
- salary = 5400
- case "Java Developer":
- salary = 5700
- case "Front-End Web Developer":
- salary = 4100
- case "UX / UI Designer":
- salary = 3100
- case "Game Designer":
- salary = 3600
- }
- if experience <= 5 {
- salary -= salary * 0.658
- }
- fmt.Printf("Total earned money: %.2f BGN", salary * 12)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement