Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- /* 10.A marketing firm wants to keep record of its employees. Each record would have the following characteristics
- – first name, family name, age, gender (m or f), ID number, unique employee number (27560000 to 27569999).
- Declare the variables needed to keep the information for a single employee using appropriate data types and descriptive names.*/
- class RecordOfEmployees
- {
- static void Main(string[] args)
- {
- string firstName, familyName;
- byte age;
- char gender;
- int idNumber;
- ushort uniqueEmpNumber; // when you need to record this data in the database you can add this number to 27560000. See example below.
- firstName = "Ivan";
- familyName = "Ivanov";
- age = 25;
- gender = 'm';
- idNumber = 345;
- uniqueEmpNumber = 213;
- Console.WriteLine("Personal Information about {0} {1}:\n\nFirst Name: {0}\nFamily Name: {1}\nAge: {2}\nGender: {3}\nID Number: {4}\nUnique Employee Number: {5}", firstName, familyName, age, gender, idNumber, 27560000 + uniqueEmpNumber);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment