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
In the ( ) Model, each in a network can act as a server for all the other computers sharing files and acsess to devices
Pavel [41]

Answer:

C peer to peer

Explanation:

  • A peer to peer is a computer network in a distributed architecture that performs various tasks and workload amount themselves. Peers are both suppliers and consumers of resources. Peers do similar things while sharing resources, which enables them to engages in greater tasks.
3 0
3 years ago
. Find the supplements of : 150' and 70°​
suter [353]
30 is the supplement of 150
7 0
3 years ago
What is the main difference between a struct and a class?
Kay [80]

Explanation:

A class encapsulates methods, while a struct cannot.

4 0
3 years ago
Which of the following is NOT included in the entry career pathway?
SVETLANKA909090 [29]
Looking for jobs is NOT included in the entry career pathway. When you state entry career path, you need to reconsider what kind of job you are going to proceed in. 

Happy studying ^-^
3 0
3 years ago
Read 2 more answers
Translate the following pseudocode for randomly permuting the characters in a string into a C++ program.
Svetllana [295]

Answer:

d

Explanation:

salak sensin kolay gelsin

6 0
3 years ago
Other questions:
  • Trish uas bought a new computer, which she plans to start working on aftwr a week. Since Trish has not used computers in the pas
    13·1 answer
  • A must decode this code. I guess is not a Cesar. The last line is a email adress.
    15·1 answer
  • Computer a has an overall cpi of 1.3 and can be run at a clock rate of 600mhz. computer b has a cpi of 2.5 and can be run at a c
    11·1 answer
  • How to build a communication network
    13·1 answer
  • What are some activities that work especially well in Outline view? Check all that apply.
    5·2 answers
  • While performing disk and file maintenance on the company file server, you determine a user in the accounting department has bee
    13·2 answers
  • Where can the Ease of Access and Speech Recognition centers be found?
    6·2 answers
  • Intellectual ______ is the legal term for ownership of intangible assets such as ideas, art, music, movies, and software.
    12·2 answers
  • Which situation is the best choice for using telehealth?
    12·1 answer
  • I want to write a Java program to display the multiplication table for the number entered by the user and the values doesn’t exc
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!