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
Zielflug [23.3K]
3 years ago
5

Create and combine the following 4 strings to determine the user’s initial Access Code (beware of extra spaces). You will use st

ring functions, methods, and operators for this.
1. Get the max letters/characters from the name
2. Use integer division to divide the length of the name string by 3. Use the portion of the name that starts at that position number, and includes up to the character in position 10 (see examples below)
3. Use the last 2 letters, in upper case
4. Use the third letters from the user’s first and last names and the minimum character of the last name
Computers and Technology
1 answer:
stiv31 [10]3 years ago
8 0

Answer:

Python script for the problem is provided below

Explanation:

name = input("Employee Name: ")

hoursWorked = input("\nHours Worked: ")

payRate = input("Pay Rate: $")

hoursWorked = int(hoursWorked)

payRate = float(payRate)

grossPay = payRate*hoursWorked

print("Deduction: ")

print("\tFederal Withholding(10%): $",round(grossPay*.1,2))

print("\tState Withholding(6%): $",round(grossPay*.06,2))

print("\tTotal Deduction: $",round((grossPay*.1+grossPay*.06),2))

print("Net Pay check: $",round((grossPay-(grossPay*.1+grossPay*.06)),2))

print("Your new access code is: ")

lengthOfName = len(name)

index = int(lengthOfName/3);

firstName = name.split(" ")[0]

lastName = name.split(" ")[1]

print(name[index:11]+name[len(name)-2:len(name)].upper()+firstName[2]+lastName[2]+lastName[0])

You might be interested in
Write common ICT tools​
Naddika [18.5K]
  • computers
  • laptops
  • printers
  • scanners
  • software programs
  • data projectors
  • and interactive teaching box.

4 0
2 years ago
What is blockchain? How it works? I heard bitcoin uses it.
igor_vitrenko [27]
Https://www.toptal.com/bitcoin/blockchain-technology-powering-bitcoin
i dont have the time to read it right now, but i was able to find you this link that should hopefully help- you out!
6 0
4 years ago
The main purpose of a honeypot is Select one:
masya89 [10]

Answer:

d. To help security professionals better understand and protect against threats to the system

Explanation:

The main purpose of a honeypot is to attract potential hackers and allow them to have access to a network system that is not the actual live network with close monitoring. This is done so as to learn and understand the intentions of the hacker and how they execute an attack. With this knowledge security professional are in a better position to deal with potential threats and keep the network secure.

4 0
3 years ago
List 5 ways by which Artificial intelligence (AI) can be used to drive our business.​
andreyandreev [35.5K]

Answer:

start a website

Explanation:

true

5 0
3 years ago
Suppose you want to find a specific piece of hardware at the lowest price, and you don't mind if it's used. Which type of purcha
tino4ka555 [31]

Answer:

consumer-to-consumer auction site

Explanation:

The best type of purchase for this scenario would be a consumer-to-consumer auction site. These sites allow anyone to make a publication selling their product. This publication can be seen by anyone around the world. It is the best way of finding the cheapest prices for a specific item. The condition of the items on these sites can vary. The majority of the time they are used items in good conditions, but can also be new items or very worn out items being sold for parts.

7 0
3 years ago
Other questions:
  • Why do computers need to periodically check the dns for websites you have already visited? enter your answer here?
    15·1 answer
  • What is the most effect way to include space after each paragraph
    14·1 answer
  • Troubleshooting a printer that does not work includes a. connecting the printer to your computer b. checking to see if there is
    13·1 answer
  • what is the gpa(grade point average) you need to have or you get kicked out of robotics for middle school?
    7·2 answers
  • ​For complex models, analysts can choose computer-based modeling tools that use _____, which includes standard shapes and symbol
    10·1 answer
  • Write a program that implement a bubble sort ?
    5·1 answer
  • In addition to format commands that are found in the ribbon, which option is available for more extensive formatting?
    11·1 answer
  • A program needs to allow a customer to input integers until the input number is zero. When the input number is zero, the program
    14·1 answer
  • Discuss five domains of Instructional technology​
    7·1 answer
  • . Imagine that you were programming without an IDE. What problems might you encounter?​
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!