Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started