Design a flowchart or pseudocode for a program that accepts two numbers from a user and displays one of the following messages: First is larger, second is larger, and numbers are equal.
Sammy’s Seashore Supplies rents beach equipment such as kayaks, canoes, beach chairs, and umbrella to tourists. Modify your Application as follows: Using Python Modify the getinput() function that accepts the user information so that it prompts for a customer name, first name and last name. Store in two separate variables. Add data validation to the account number so that only a 4 character string is allowed. The first character must be an A. You will need to use a while loop here because you do not know how many times the user will enter an invalid Account Number. You will have two conditions for the while loop: while the length of the account number variable does not equal 4 or while the account number variables does not start with the letter "A". Add a phone number input to the getinput(). Make sure that the phone number is 7 digits. Use a while loop that keeps asking the user to enter the phone number until it is seven digits. Return all values from the getinput() function -- there will be 5 of them. Modify the main() function so that the line that calls the getinput() function stores all 5 returned values in separate variables. Modify the main() function so that the values returned from the getinput() function are passed to the calculatefotal() function. Modify the header of the calculatetotal() function so that is accepts 5 parameters ( the account number, the number of minutes, the first name, the last name , and the telephone number. Modify the function that calculates the total and displays all the information, so that it displays the Contract Number, first and last names, and the Phone Number. The Phone Number should be displayed in the ###-#### format. You can the slice function to do this. Includes comments at the top to identify file name, project and a brief description. For further documentation, include comment for each section of code. Sample Run: ACCOUNT NUMBER:, A234 (program keeps prompting until a 4 character, starting with an A Name Sally Douglass 123 – 4567 (formatted in the module that displays the result) Minutes rented: 115 Whole hours rented: 1 Minutes remaining: 55 Rental cost: $ 80 Coupon good for 10% Off! This is my original code base on the instruction how do I add the new code to the case # Main function calls other functions def main(): display() a,x=getinput() calculatetotal(x,a) # function to display logo def display(): #Display the Sammy’s logo print("-------------------------------------------------------------") print("+ +") print("+ “SAMMY’S MAKES IT FUN IN THE SUN +") print("+ +") print("+ +") print("-------------------------------------------------------------") # function to receive input from user def getinput(): # Request the minutes rented and store in variable contract_number = (input("Enter the account number")) rented_minutes = int(input("Enter the number of minutes it took to rent: ")) while (rented_minutes<60 or rented_minutes>7200): rented_minutes = int(input("Try again")) return rented_minutes,contract_number # function to calculate hours, minutes remaining and cost def calculatetotal(acc,mins): # Calculate number of whole hours whole_hours = mins//60 # Calculate the number of minutes remaining remaining_min = mins % 60 # Calculate the cost as hours * 40 + minutes remaining times 1 #Calculation from smallest to greater by getting the smallest number cost = whole_hours*40+ min(remaining_min*1, 40) # >Display minutes, whole hours, minutes remaining, and cost with labels # Print all values print(("ACCOUNT NUMBER:"),acc) print("Minutes Rented:",mins) print("Whole Hours:",whole_hours) print("Minutes Remaining:",remaining_min)
The analyzing step of the Portfolio Kanban system has a new Epic with a completed Lean business case. What best describes the next step for the Epic?
Which string method returns true if the character is an uppercase letter? letter =input("Enter a letter: ") Oisupper(letter) Oletter.isUpper() Oletter.isupper() OisUpper(letter)
Identify industries and career-based activities in which computer technology makes people's work easier or more efficient.
A firm that must invest in a new information system in order to comply with federal legislation is investing to achieve which of the following business objectives?
SET t=0 SET k=1 WHILE k<3 AND t=0 FOR j=1 to 3 IF j=k THEN t = t + 1 ELSE t = t – 1 ENDIF k = k +1 ENDFOR ENDWHILE PRINT t
URGENT: PLS HELP if you use python ONLY AND KNOW STATISTICS!!!! If giving wrong answer will report you Foresters were interested in studying a remote-sensing measure of standing timber as analternative to taking measurements on the ground. The study area was a 1200-acre pine forest in Louisiana on which the U.S. Forest Service first created a grid of 1410 equally spaced circular plots of 0.05 acre in size over a map of the forest. The ground survey then visited every 10th plot and took measurements of tree volume. b) choose a systematic random sample of 141 plots for the ground survey using Python.
Many documents use a specific format for a person's name. Write a program that reads a person's name in the following format: firstName middleName lastName (in one line) and outputs the person's name in the following format: lastName, firstInitial.middleInitial. Ex: If the input is: Pat Silly Doe the output is: Doe, P.S. If the input has the following format: firstName lastName (in one line) the output is: lastName, firstInitial. Ex: If the input is: Julia Clark the output is: Clark, J.
Write a program that calculates and prints, the sum and product of all the digits in an integer value read from the keyboard. Hint: The textbook has a sample program ReverseNumber.java which can be very helpful. We also note that you can also use while or for loop to do this question. Modify your Java program into an equivalent alternative where all the loop constructs in the previous subquestion should be replaced by a different alternative loop construct. For example, wherever you used a while-loop, that loop should be replaced by a do-loop or for-loop, and vice versa.
A user launches an application on an Android device. Once the software loads, the user reports that when turning the tablet to work the application in landscape mode, the software does not automatically adjust to landscape mode. Which of the following is the cause of the issue?
BIU 1 2 3 4 2013 Glynlyon, Inc. English Danny Flow Question # 8 Long Text (essay) There are advantages and disadvantages to using digital media in marketing and advertising. Briefly explain two advantages and one disadvantage. Section 2 O Word(s)