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
Katyanochek1 [597]
4 years ago
7

Teachers in most school districts are paid on a schedule that provides a salary based on their number of years of teaching exper

ience. For example, a beginning teacher in the Lexington School District might be paid $30,000 the first year. For each year of experience after this first year, up to 10 years, the teacher receives a 2% increase over the preceding value.
Write a program that displays a salary schedule, in tabular format, for teachers in a school district.
The inputs are:

1. Starting salary
2. Annual percentage increase
3. Number of years for which to print the schedule
4. Each row in the schedule should contain the year number and the salary for that year

An example of the program input and output is shown below:

Enter the starting salary: $30000
Enter the annual % increase: 2
Enter the number of years: 10

Year Salary
-------------------
1 30000.00
2 30600.00
3 31212.00
4 31836.24
5 32472.96
6 33122.42
7 33784.87
8 34460.57
9 35149.78
10 35852.78
Computers and Technology
1 answer:
Evgesh-ka [11]4 years ago
8 0

Answer:

currentSalary = float(input("Enter the initial salary: $"))

raisePercent = float(input("Enter the annual % raise: "))

noOfYears = int(input("Enter the number of years: "))

print()

print("Year   Salary")

print("-------------")

for k in range(1,noOfYears+1):

   print(k,"\t",end="")

   print("%.2f"%currentSalary)

   currentSalary = currentSalary * (1+raisePercent /100)

Explanation:

The Program is developed on Python.

In this program, we define three variables to take inputs-

1. currentSalary for taking the starting salary.

2. raisePercent - for taking the %age increase.

3. noOfYears- for taking the number of years for which we need to calculate the salary.

The Logic for Calculation of salary for given years with the raise %age-

using a Loop starting from 1 to the number of years we multiplying every time the  

the %age raise in salary calculated as (1+ %age/100) to the current salary  

to get the salary per year then displaying it corresponding to the loop variable.

You might be interested in
How do I write the yearly salary for something without copying it word for word? I'm doing a PowerPoint ( which you had to choos
Cloud [144]
The yearly salary is xx,xxx just add some stuff in front maybe in back
6 0
4 years ago
Create a program that prompts the user for a positive integer then prints a right-aligned pyramid using that number using the st
Makovka662 [10]

Below is the program that prompts the user for a positive integer then prints a right-aligned pyramid in python programming language.

rows = int(input("Enter number of rows: "))  

for i1 in range(1, rows):  

   for j1 in range(1, i1 + 1):  

       # This prints multiplication / row-column  

       print(i1 * j1, end='  ')  

   print()  

What is Python in programming?

Python is a interpreted, high-level programming, object-oriented, language with a dynamic semantics. Its high-level built-in data structures, combined with dynamic typing and dynamic binding, make it very appealing for Rapid Application Development, as well as for use as a scripting or glue language to connect existing components together.

Python's simple, easy-to-learn syntax emphasizes readability, lowering the cost of program maintenance. Python also supports modules as well as packages, which promotes program's modularity and reuse of code. The Python interpreter and extensive standard library are freely distributable and available in source or binary form for all major platforms.

To learn more about Python, visit: brainly.com/question/28379867

#SPJ1

3 0
2 years ago
What is a spark line? how is a different a chart​
Neporo4naja [7]

Answer:

A sparkline is a tiny chart in a worksheet cell that provides a visual representation of data.

5 0
3 years ago
Which of the following behaviors does not harm a company if your employment is terminated?
saul85 [17]

Answer:

D. notifying your employer of all accounts you have access to, and requesting that they change all passwords before you leave

Explanation:

Assuming your employment is terminated, notifying your employer of all accounts you have access to, and requesting that they change all passwords before you leave is a behavior that would not harm a company. In the true and actual sense, making such suggestions is commendable because it would go a long way to cause more good rather than harm the company.

Some mischievous and malicious employees would rather not tell so they can still have an unauthorized access to the company's account and perpetrate various level of evil.

Hence, it is a good global practice to have a company's login credentials updated whenever an employee's employment is terminated.

3 0
3 years ago
The list below represents the contents of a computer's main memory. I've left every other byte blank. Assume that the letters at
inysia [295]

Answer:

3) A Single linked list is a sequence of elements in which every element has link to its next element in the sequence.

DATA LINK

DATA stores actual value , LINK stores address of next node

As per information given in question, letters at the even addresses are items in linked list and the odd addresses will be used as links.

Even Address Odd Address

12 (Stores 't') 13 (Used as link)

14 (Stores 'm') 15 (Used as link)

16 (Stores 'a') 17 (Used as link)

18 (Stores 'r') 19 (Used as link)

20 (Stores 's') 21 (Used as link)

Numbers represented by circle are addresses of respective nodes. Here Front or Head has address 16. Which represents the Head Node.

Following image represents the word "smart" with respective nodes and their addressing.

​

Numbers represented by circle are addresses of respective nodes.

The head pointer is: 20

7 0
3 years ago
Other questions:
  • Why do networks need standards?
    12·1 answer
  • 642<br> +277<br> What does 642+277
    7·1 answer
  • The keyboard preferences pane includes a list of keyboard shortcuts.
    8·1 answer
  • When you see a yield sign what do you do?
    8·1 answer
  • What specific database stores local user accounts on local computers, and allows users to sign in to and access resources only o
    9·1 answer
  • This program will output a right triangle based on user specified height triangleHeight and symbol triangleChar. (1) The given p
    14·1 answer
  • Why is data processing done in computer?​
    14·1 answer
  • Example of Not a computer characteristics example
    12·1 answer
  • Maya is preparing a presentation for her science class on how solar panels produce energy. Why would a
    11·2 answers
  • Please help me please i’ll give brainli
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!