Answered step by step
Verified Expert Solution
Question
1 Approved Answer
#C sharp #C sharp Get user input Display to user: What is your Employee ID? Read in value and store in the string variable, employeeld
#C sharp
#C sharp
Get user input Display to user: "What is your Employee ID?" Read in value and store in the string variable, employeeld Display to the user: "What is your Name?" Read in value and store in string variable, name Display to the user: "What is your hourly rate?"|| Read in value and store in string variable, hourlyRateAsString Convert this from a string to a double, storing in a new variable called hourly Rate OR you can do this conversion straight to a double Do calculations Initialize a new variable called weeklySalary which is computed as hourlyRate times 40 Initialize a new variable called annualSalary which is computed as weeklySalary times 52 Display Summary information Display to user: String literal: "Hello," Use the appropriate String method to display name in upper case letters Display to user: String literal "** Weekly Salary: " Display weeklySalary. Use currency formatting. Display to user: String literal: "Account Code: " Inside Console.WriteLine, concatenate First three letters of the name variable First three letters of the employeeld variable Example #1 Example #2 What is your Employee ID? AA039 What is your Name? Walter What is your hourly rate? 10.40 Hello, WALTER ** Weekly Salary: $416.00 Account Code: WalAAB What is your Employee ID? 800123 What is your Name? Robert What is your hourly rate? 23 Hello, ROBERT ** Weekly Salary: $920.00 Account Code: Rob800Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started