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
Which is the best organizational flow for a project?
abruzzese [7]

Answer:

client folder/project folder/images folder/image files

Explanation:

The basic propose of organizing projects documents and images is to find the documents in an easy manner.

The organizational flow of the document is as flow:

  1. First of all create the folder with the name of client, Whose project is going to be started. As there can be multiple clients, so make separate folder for each.
  2. In second step, Create the Project folder that is going to be started, as there are many projects you are working on for the same client.
  3. Then create the image folder inside the project folder, as there can be many other files types of the project.
  4. Then save the images in the image folder.

So, the option is better for this is

client folder/project folder/images folder/image files

6 0
4 years ago
What is the analysis and complexity of a shell sortalgorithms?
Llana [10]

Answer: The shell sort is based on insertion sort. Here the list of elements are divided into smaller sub list which are sorted based on insertion sort.

Its best case time complexity is O(n* logn) and worst case is O(n* log^2 n)

Explanation:

Shell sort is an inplace sorting here we begin by dividing the list into sublist and sorting the list with insertion sort. We create interval for dividing the list into sub list until we reach the smallest interval of 1.

The best case is O(n* logn).

6 0
3 years ago
- Truncate command response time is ______ as comparedto Delete command.
MArishka [77]

Answer:

c. Better

Explanation:

Truncate command response time is better as compared to Delete command.

8 0
3 years ago
Find at least three software programs for each of the two technologies listed below.
lakkis [162]

Answer:

Android Studio, FileZila

Explanation:

Android studio provides you with all tools you need to build a mobile application l.

FileZila is an FTP controller, you cam DELETE , SEND, RECIEVE data from it.

7 0
3 years ago
Read 2 more answers
I need this done in c++ please.
MrMuchimi
Ok% your output is wrong maybe wrong change it
7 0
3 years ago
Other questions:
  • What is intellectual property?
    7·1 answer
  • The web server software used has a significant impact on how a web site's web pages look on a user's computer.
    7·1 answer
  • An algorithm is defined as a well-ordered collection of unambiguous and effectively computable operations that when executed pro
    10·1 answer
  • Balance is the design principle that is represented when using the Crop tool?
    6·1 answer
  • What value will be stored in the variable t after each of the following statements
    9·1 answer
  • As a general rule, what is the size of a brochure?
    11·1 answer
  • The visitor's age is stored in the variable age, the day of the week is stored in a variable day, and the price in dollars is st
    8·1 answer
  • Keely has an automation tool in place that runs a number of different processes for her and has for the last two years. All of a
    8·1 answer
  • ¿Qué algoritmos de encriptación utilizan una clave para cifrar los datos y una clave diferente para descifrarlos?
    13·1 answer
  • Please help!!
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!