1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
tamaranim1 [39]
3 years ago
15

Write a program that reads a sequence of up to 20 pairs of employee names and IDs. Store the data in an object designed to store

a first name (string), last name (string), and an employee ID (integer). Assume each line of input will contain two strings followed by an integer value, each separated by a tab character. Then, after the input has been read in, print the list in an appropriate format to the screen.
Computers and Technology
1 answer:
sladkih [1.3K]3 years ago
7 0

Answer:

The code will be in Python3

you will have to enter the number of employee data and it will display all the data entered in the correct format.

Explanation:

class Solution:

   def __init__(self):

       self.firstName=""

       self.lastName=""

       self.employeeID=0

   def getData(self):

       self.firstName=input("please enter your first name: ")

       self.lastName=input("please enter your last name: ")

       self.employeeID=input("please enter your ID: ")

   def showData(self):

       p="{}\t{}\t{}".format(self.firstName,self.lastName,self.employeeID)

       return p

num=int(input("please enter the number of employee data you want to enter: "))

data=[]

for i in range(num):

   t1=Solution()

   t1.getData()

   data.append(t1.showData())

for i in data:

   print(i)

You might be interested in
Derek is creating an animation for his class project. What is the first step Derek should follow while creating the animation?
quester [9]

Answer:

D

Explanation:

6 0
3 years ago
Read 2 more answers
You are on vacation with your family and have been nominated to be the family photographer. You have a 13.1-megapixel camera. Wh
Alex

Answer:

Jpeg

Explanation:

7 0
3 years ago
Read 2 more answers
The move up only one line in Microsoft Word, use the following method: (a) press Ctrl + Home Keys (b) Press Home Keys (c) Press
FinnZ [79.3K]

Answer:

(d) Press Up Arrow Keys

Explanation:

(a) press Ctrl + Home Keys

  • Incorrect

(b) Press Home Keys

  • Incorrect

(c) Press Ctrl + Up Arrow Keys

  • Incorrect

(d) Press Up Arrow Keys

  • Correct
7 0
3 years ago
How to turn off new macbook pro when it is frozen 2017
Maksim231197 [3]
To unfreeze the mac book pro, there are two ways :
a. <span>Click the apple logo which is at the top left of the menu bar and then select 'force quit'.
b. Hold down the option, command, and escape buttons and then select 'force quit'. </span>
If all else fails, best option is to hold down the power button on the keyboard till it shuts down.
3 0
4 years ago
Read 2 more answers
Windows stores files on a hard drive in 512-byte blocks called
Tanzania [10]
Hey 

l think what u are thinking of is a disk
5 0
4 years ago
Other questions:
  • Design the below using an array// Sunrise Freight charges standard// per-pound shipping prices to the five states they serve// –
    6·1 answer
  • Write a method void Print(int LastNumber, int numbersPerLine) that receives two integers
    15·1 answer
  • Using the Adjust group, what can you control to affect an image? Check all that apply.
    15·2 answers
  • How can a Word user insert a page break into a document to isolate a table on a new page?
    13·2 answers
  • Carol typed a memo to distribute to everyone in her department. To create this memo, she used a _____. spreadsheet word processo
    8·2 answers
  • An attacker is intent on disturbing the communication by inserting bogus packets into the communications.
    9·1 answer
  • What is the problem, if any, with the following code?The desired output is [3,19].
    13·1 answer
  • What does a GPA show
    14·2 answers
  • All conduit must be strapped within __ feet of a pull box.
    14·1 answer
  • What does the digital living network alliance standardize
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!