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
skad [1K]
4 years ago
11

Use a basic list structure to enhance Functionality 1 that you developed in Week 1. You should allow users to enter information

for five employees at the same time, where the first employee information entry is saved in index [0] and the second entry is saved in index [1], and so on. You want to make sure to enforce the user to enter the following employee information: employeeName, employeeSSN, employeePhone, employeeEmail, employeeSalary. After the user finishes entering the last employee information, they should get a message to allow them to print specific employee information from the saved list. The user can enter values between 1 and 5, where 1 will return the employee information saved in the list index [0], 2 will return the employee information saved in the list index [1] and so on. The printed result should be in the following format:
Mike Smith, 123123,(111)222-3333,mikeemail,$6000
Computers and Technology
1 answer:
grandymaker [24]4 years ago
7 0

Answer:

Python code is given below

Explanation:

# Create an empty  list

employees = []

for i in range(5):

   print('Enter information for employee number ' + str(i + 1) + ':')

#entering the employee details as input

   name = input('Enter employee name: ')

   ssn = input('Enter employee SSN: ')

   number = input('Enter employee number: ')

   email = input('Enter employee email: ')

   salary = input('Enter employee salary: ')

   employees.append([name, ssn, number, email, salary])

index = int(input('Enter value from 1-5 to print employee information and 0 to exit:'))

while index != 0:

   employee = employees[index - 1]

   print(employee[0] + ', ' + employee[1] + ', ' + employee[2] + ', ' + employee[3] + ', $' + employee[4])

   print()

   index = int(input('Enter value from 1-5 to print employee information and 0 to exit:'))

You might be interested in
The process in which a server is partitioned into smaller components virtually.
ExtremeBDS [4]
The answer is Allocation
5 0
3 years ago
Water is constantly in motion.<br> True or false
motikmotik

Answer: true

Explanation: yes water is constantly in motion

7 0
3 years ago
To maintain your body temperature, your body converts chemical potential energy into thermal energy T or F
PilotLPTM [1.2K]
True
This is physics btw
CPE --> TE
4 0
4 years ago
A built-in tool that enables you to use text to type in commands for the operating system is called the _____ prompt.
Natalija [7]
Command prompt is the answer and on Apple devices it is called Terminal.
8 0
3 years ago
Read 2 more answers
The roll out, roll in variant of swapping is used ____."
Sindrei [870]

Answer:

C.) for priority-based scheduling algorithms

Explanation:

for priority-based scheduling algorithms

4 0
3 years ago
Other questions:
  • Recording music using a keyboard controller is commonly accomplished using which type of audio file format?
    13·1 answer
  • Which field can be used to track the progress on tasks that a user has created?
    10·1 answer
  • An office employee working in a payroll department uses a customized program to log hours employees have worked. The customized
    12·2 answers
  • Which email client feature allows you to store the names and information of people you contact frequently?
    5·1 answer
  • When looking at a relationship between two tables on an ERD, the _____ table can be identified by the presence of a foreign key
    8·1 answer
  • In C#Write the program SubscriptExceptionTest in which you use an array of 10 doubles. Write a try block in which you place a lo
    5·1 answer
  • Define Indentation
    8·1 answer
  • What do I do if my friend wants me to watch a video at my house?
    8·2 answers
  • What is the primary purpose of source code editor features such as keyword hi lighting and auto-completion A.to speed up the cod
    7·1 answer
  • A loan of $12000 was borrowed from the bank at 14% per annum calculate the interest on the loan at the end of the first year ?​
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!