Write a program that takes in a line of text as input, and outputs that line of text in reverse. The program repeats, ending when the user enters "Quit", "quit", or "q" for the line of text.
Q: python form letter reply 2: Tom Mallory Duke Valery John Smith Mike Ashely Cassey Cold Willie…
A: SUMMARY: - hence we discussed all the points.
Q: Input year of birth (like 1999 or 1980) from user and show his total age in text view. Do this…
A: The method of calculating age is to compare a person's date of birth with the date to calculate the…
Q: Given the integer array dailyPrices with the size of NUM_INPUTS, write a for loop that sums each…
A: Algorithm:Initialize NUM_INPUTS as 9 and create an integer array dailyPrices of size…
Q: Write a function called find_max that takes a two-dimensional list as a parameter and returns the…
A: program code : // C# program to find row with// max sum in a matrixusing System;using…
Q: In Python, what is the term "self"?
A: Introduction: A self is an instance of the class that it represents. We may access the class's…
Q: Description Greetings! i Task: Write a program that will ask for the user's name and output their…
A: Importing Necessary Module:The program imports the sys module to access command line arguments…
Q: The following must be output to the console (NumPy is required 1. Print a specific 3x3 matrix where…
A: Refer the code below for your above problem statement:
Q: Write a C++ program that reads user's choice as single character then do the following: • If the…
A: Use switch case for choice.
Q: Design a CGI program to read username and city using html from. User Name: City: Submit Use get…
A: Algorithm: Open html tag Open head tag Open script tag Define a function formSubmit(name,city)…
Q: Python's docstring is a word that has to be explained.
A: Python's docstring is a word that has to be explained.
Q: Prints the user environment using the python language. You have to write a code for that
A: Write a Python code that prints the user environment using python
Q: (b) i=U j=n-1 while (i k) j--; if (i<j) i++; a[i]; a[j]; t = a[i] a[j] = t;
A: Here have to determine about run time of given code.
Q: Problem P7.9 - Algorithm design, file input, file output, iteration Write a program that reads each…
A: We are going to use the reverse() method to generate a reversed iterator.The Python code is shown…
Q: How many keywords are there in python.
A: I have given the list of keywords in step no. 2.
Q: How to compute the mean squared error on a truth and predicted series? (In python)
A: Introduction : Compute the mean squared error of truth and pred series. Input Truth_s =…
Q: Write a recursive function named multiply that takes two positive integers as parameters and returns…
A: def multiply(a, b): if b == 0: return 0 if b == 1: return a return a +…
Q: Now, use flask package to develop a Python web application that validates email address and password…
A: The example defines a simple Flask application with a single route, '/', that handles GET and POST…
Q: Write a function called find_máx tha index of the row that sums to the greatest value. For example,…
A: In the function find_max, we need to determine the row and col count and use the mySum function…
Q: Automatic generation of Databases: Python Would anyone have some tips/pointers on writing…
A: According to the information given:- We have to define/give some tips/pointers on the basics above…
Q: Write a class called Pet, that has two String instance variables, called name and voice. The class…
A: Pet(String name, String voice) // is a constructor method speak()// it is a default method loop…
Q: Python code Upload a picture of your code(please don’t type it in here).
A: from turtle import * def main(): hor = float(input("horizontal multiplier:")) ver =…
Q: In python or perl what is an example script that I could use that would get information from a…
A: Answer: I have written code in python. and also I have attached python code as well as python code…
Q: When you mention "network security," what exactly do you mean? Describe the operation of the…
A: Introduction : Network security is a board term that covers a multitude of technologies, devices…
Q: In Java only--Java Applets Create an applet that will draw a set of ovals and the user should be…
A: Hey there, I am writing the required solution based on the above given question. Please do find the…
Q: function multiply(x, y) Input: Positive integers x and y, in binary Output: Their product n =…
A: Below is the complete solution with explanation in detail for the given question in Python…
Q: Example of python code that uses the following: implements authentication for entering notes in an…
A: Assuming the username and password for authentication will be "Root" & "welcome" respectively.…
Q: App Login Usuario: Contraseña: - Xx Login
A: With the help of ttk, we'll develop a non-resizable frame that requests a username and password in…
Q: Python Automation Script: write a python automation script that scrape a website:…
A: Required: Python Automation Script: write a python automation script that scrape a website:…
Q: Write down java script code to validate user name and password (password length must in between 6 to…
A: Solution: Write down java script code :- validate user name :- should not start with _, @, or any…
Q: In Python, how will you tell the difference between NumPy and SciPy?
A: Basic details Both are basic libraries of Python Both are has wide range of functions Numpy stand…
Q: A Java array is a Java object and can contain a list of objects is a Java object and…
A: Java array is an object which contains elements of a similar data type. Additionally, The elements…
Q: The majority of source code is accessible in tarball format on the Internet. Is this statement true…
A: Despite the fact that I have no idea what a tarball is, I believe this to be correct. Because a…
Q: In Python, define the term docstring.
A: Answer. docstring: Python documentation strings (or docstrings) provide a convenient way of…
Q: Review the examples about cardinality in Python using Sympy-…
A: Actually, python is a easiest programming language. It is a dynamically typed programming langauge.…
dont post existing answers posting multple times
in python only
Trending now
This is a popular solution!
Step by step
Solved in 5 steps with 2 images
- Airline companies apply baggage restrictions for their passengers. An airline company has decided to apply a 10kg limitation for passengers' hand luggage and 20kg for their normal baggage. When passengers arrive, they enter their hand and normal luggage weight from the keyboard. If passengers exceed their normal baggage allowance of 10 dollars per gram, they pay 12 dollars per kg. Accordingly, write the program that calculates the baggage price of the airline they will go to according to the baggage values entered by the arriving passenger and keeps this from closing the program for each passenger. Note: If hand and normal baggage allowances are stretched below the maximum value, the payment amount will be considered not negative. An example printout is given on the right. Geri bildirim gönderWrite a program that reads from the user a character (*q' or 'c'). If the character is 'c', the program reads from the user the radius r of a circle and prints its area. If the user enters 'q', the program asks the user to enter the length and width of a quadrilateral. We assume the quadrilateral is either a square or rectangle. You should print if the quadrilateral is square or rectangle. Otherwise, it prints "Wrong character" PS: Use the following formulas : area of circle=3.14*r? Ido it fast
- I need helpWrite a program that reads from the user a character ('q' or 'c'). If the character is 'c', the program reads from the user the radius rof a circle and prints its area. • If the user enters 'q', the program asks the user to enter the length and width of a quadrilateral. We assume the quadrilateral is either a square or rectangle. You should print if the quadrilateral is square or rectangle. • Otherwise, it prints "Wrong character" PS: Use the following formulas: area of circle=3.14*r Sample Run1: Enter a character (q or c): q Enter the Length and Width: 80 150 |It is a rectangle Sample Run2: Enter a character (q or c): q Enter the Length and Width: 80 80 It is a square Sample Run3: Enter a character (q or c): c Enter the radius: 2 The area of the circle is 12.56 Sample Run4: Enter a character (q or c): d Wrong character3. Write a program that picks a random number between 1 and 100 inclusive. It then prompts the user to guess the number. If the user guesses the number, print out a congratulatory message and exit. Otherwise, indicate whether the guess was low or high and ask the user to try again. Hint: Use the rand() function.
- Program 2: Write a program that asks the user for a word or phrase. Check to see if it is a palindrome. A palindrome is a word that is spelled exactly the same forward and backwards such as radar or noon. Your program must also take case into account. If the user types Radar, it must still return that it is a palindrome. Do not worry about palindromes with spaces. You do not need to put any code in static methods, you do not need to worry about try/catch blocks, and you do not need to make the program run more than once. Test values that I will use in class: Noon palindrome tacocat palindrome Hello not a palindrome in javaWhat is the output of the following code segment?inta=3,b=4;if(a==b);Write(X);Write(Y); X Y XY nothingA parking garage charges a $2.00 minimum fee to park for up to three hours and an additional $1 per hour for each hour or part thereof over four hours. The maximum charge for any given 24-hour period is $10.00. Assume that no car parks for longer than 24 hours at a time. Write a program that will calculate and print the parking charges for each of three customers who parked their cars in this garage yesterday. You should enter the hours parked for each customer. Your program should print the results in a neat tabular format, and should calculate and print the total of yesterday's receipts. The program should use the function calculate Charges to determine the charge for each customer.
- A palindromic number is a number that is the same when written forwards or backwards. The first few palindromic numbers are therefore are: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 22, 33, 44, 55, 66, 77, 88, 99, 101, 111, 121, 323 Input a number from the user. Write a program that reverses the digits of a number. Use this program to find if the number is a palindrome. Print if the number is palindrome or not.3) Write a program that reads an integer and prints how many digits it has by checking whether the number is >= 10, >= 100, and so on. However, if the number is greater than a million, just print "lots". If the number is negative, then first multiply it by -1.A parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an additional $0.50 per hour for each hour or part thereof in excess of three hours. The maximum charge for any given 24-hour period is $10.00. Assume that no car parks for longer than 24 hours at a time. Write a program that calculates and prints the parking charges for each of three customers who parked their cars in this garage yesterday. You should enter the hours parked for each customer. Your program should print the results in a neat tabular format and should calculate and print the total of yesterday’s receipts. The program should use the function calculateCharges to determine the charge for each customer. Your outputs should appear in the following format Sample output Enter the hours parked for 3 cars: 1.5 4.0 24.0 Car Hours Charge 1 1.5 2.00 2 4.0 2.50 3 24.0 10.00 TOTAL 29.5 14.50