Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Looking to find a way to enter this in to Raptor program Program Define main) function #The main function def main() Get the number of

Looking to find a way to enter this in to Raptor program

image text in transcribed

Program Define main) function #The main function def main() Get the number of days for which the salary is to be calculated and save it into the variable days days int(input('Enter number of days:) Print the head strings in proper format by using tab spaces print( DaysltitttSalary in dollars') print( Initialize variables i and p by1 Initialize the variable total by 0 to save the total salary of all days total 0 Run while loop to be iterated for each day till the given number of days stored in the variable days while i days: Print the values of i and p/100 (salary in dollars) in proper format. print(i,'Ititltlt,float(p)/100) Increase the value of total by adding the value of p in it. total += p Double the value of p as the salary of next day is double the salary of the previous day Increase the value of i to iterate the loop for the next day After completed all the iterations of the loop, print the value of total pay in dollars print( The total pay in dollars at the end of the period is: 'total/100) At last call main) function #Call the main function main()

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Application Development And Design

Authors: Michael V. Mannino

1st Edition

0072463678, 978-0072463675

More Books

Students also viewed these Databases questions

Question

=+b. Create a tagline.

Answered: 1 week ago

Question

What are Electrophoresis?

Answered: 1 week ago

Question

Be familiar with the basic ways to manage capacity.

Answered: 1 week ago

Question

Be familiar with the five basic ways to manage demand.

Answered: 1 week ago