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. Ex: If the input is: Hello there Hey quit then the output is: ereht olleH yeH please solve this in c++
Q: In Exercises 17-20, a transportation network and flow are given. Use the flow augmentation algorithm…
A: Answer: We have explain each and every point and being a long question we have solved first question…
Q: Given the default schema of a database: Orders 123 Orderld OrderDate ADC OrderNumber 123 Customerld…
A: Here we have given the suitable options for the asked query with select statement. You can find the…
Q: Write an if statement with a condition using the randrange function from the random module that you…
A: answer is : - random.randrange(1,101)>35:
Q: Consider the following example: MOV AL, -5 SUB AL, +125 After executing these two lines of…
A: MOV AL, -5 It will move -5 in AL SUB AL, +125 It will Subtract 125 from -5 As Range is from -128…
Q: class CircularArray: def __init__(self, lin, st, sz): # Initializing Variables self.start = st…
A: Here is the approach : Create the method to print the array one by one . Inside the method loop…
Q: Customers SSNO PK name addr phone 1..1 0..* PK Bookings row seat PK 0..* 1..1 Flights number PK day…
A: Explanation:1. Supporting relationships are represented by the Relations, which are the many-to-one…
Q: What is ergonomics?
A: Ergonomics is related to the performance of a system.
Q: REQUIREMENT USE A SWITCH STATEMENT SELECTION STRUCTURE Write a logically correct Java switch…
A: The above question is solved in step 2 :-
Q: REQUIREMENTS: 1. 2. 3. Using Python, you will write a program called singly-linked-list-arrays.py…
A: Algorithm:- The algorithm is defined as a set of steps to perform a specific task.
Q: What is the myth of the Infinitely fast machine?
A:
Q: Explain disciplines contributing to human computer Interaction.
A:
Q: What is observation ?
A:
Q: For a simple connected graph G=(V,E) with no multi-edges and no self-loops, what is the range of…
A: Answer: We have discussed each and every point related to Edge in the graph so we will see in the…
Q: Write the function header for a function fun1 that will be receiving one number as a parameter.…
A: ALGORITHM:- 1. Declare a function fun1() that will receive one integer type parameter as input. 2.…
Q: How do organizations benefit from using a database management system?
A: DBMS compared & created the database management. Here are some tangible advantages of utilising…
Q: In a computer instruction format, the instruction length is 16 bits, and the size of an address…
A: The above question belongs to the field of computer architecture and organizational sector of…
Q: of Boolean algebra to show that the two Boolean expressions below are equivalent. Label each step…
A: Solution - In the given question, we have to to show that the two given boolean expressions are…
Q: Explain the characteristics of Ant Colony optimization.
A:
Q: Burglary JohnCalls P(B) .001 Alarm A P(J) 90 f.05 Earthquake B E 1 t 1 f S 1 f f .001 P(A) 95 94 29…
A: (1). Express in terms of conditional probability So, PJA = PJ∩APAPMA = PMAAPAPAB.E =…
Q: Write a function buckets : ('a -> 'a > bool) -> 'a list -> 'a list list that partitions a list into…
A: Write a function buckets : (‘a -> "a -> bool) -> 'a list -> ‘a list listthat partitions…
Q: 0-6. Addition: One common problem when prompting for numerical input occurs when people provide text…
A: Solution1- Accorrding to first problm , we have created a python code using try function . In given…
Q: If two Huawei S5700 switches are connected through10GEoptical modules, the connecting ports work in…
A: Here is the explanation for the above one
Q: As a project manager of a Software project, you have received given data about the different type of…
A: We will use the pareto diagram to prioritize the issues. First, we will arrange the issues in…
Q: This question concerns block cipher modes. We will use a simple affine cipher, which can be…
A: This question concerns block cipher modes. We will use a simple affine cipher, which can be…
Q: The differences & Similarities between real & artificial ants.
A:
Q: Consider the following project activities: Activity Name A B C D E F G Activity Name A B C D E F G…
A: To find critical path for the project.
Q: asymmetric encryption
A: Given :- In the above question, the statement is mention in the above given question Need to…
Q: I'm getting this progm to run but vis producing no out put.
A: After fixing some errors, I have provided JAVA CODE along with CODE SCREENSHOT and OUTPUT…
Q: Explain Basic flow of Particle Swarm Optimizationle Compare Pso & G. A (Grenetic Algorithm).
A: Particle swarm is a population-based algorithm. In this respect it is similar to the genetic…
Q: ER diagram for the following use cases: Intro/Homepage: This first case will be used to give the…
A: Solution: ER diagram- Introduction: An Entity relationship diagram is a kind of flowchart that…
Q: 3. The city of Mawroke maintains a constant voter of 300,000 people per year. Apolitical science…
A: SOLUTION
Q: Finding and replacing some data elements. b. Sorting data c. Searching va
A: Dear Student, Xlookup is usually used for - Searching a list of data for a specific value Looking up…
Q: u have an empty binary search tree. After that, you do the following sequence of insertions: 20, 30,…
A: Solution - The "Binary Search Tree," a node-based binary tree data structure, has the following…
Q: 4. Imagine if every black node in a red-black tree absorbs its red children, incorporating their…
A: Answer: we need to write the draw the picture of red black tree and absorbing the red children so we…
Q: Write a C program to receive an integer number from the user and count number of digits in the given…
A: Introduction System software is designed in a system programming language. Given that it can be used…
Q: Question 5 Write a program that reads 10 characters from the keyboard and then print the…
A: The keyboard interrupts 21h is a signal that indicates that a key has been pressed on the keyboard.…
Q: Convert the following UML diagram to relations:
A: Explanation: 1. Supporting relationships are the relations that represent the many-to-one…
Q: 4. What is the difference between link-state and distance vector routing? Why does the Internet not…
A: Solution: Given, Write the distance between link-state and distance vector routing and why…
Q: (d) A table listing attributes. (e) A table listing primary keys for each (strong) entity type. You…
A: Here we have given answers for the d , e and f parts. You can find the solution in step 2.
Q: Discuss the different types of device handler seek strategies. Which strategy do you think is the…
A: Here is the different type of Device Handler Seek Strategies. (1) FCFS (First Come First Serve) (2)…
Q: What is the put put of? print(int("one")) Runtime Error Syntax Error 0 1 O One
A: Answer Syntax error
Q: Implement the following expression in assembly language: result = (val3 + val4) (vall - val2)…
A: :: Solution :: Here is your answer EDX (val3+ val4 (val2 vall) - (5/1147 Assume that vall, va12,…
Q: Task B. Import the data shown in pictures into the two tables created.
A: To import the data, use the insert query. Insert The INSERT INTO Statement for SQL To add new…
Q: What is general agreement that Darwinian evolutionary systems embody?
A:
Q: Write a program using using Sqlite3 in python that stores names, emails, cell phone numbers,…
A: Please find the answer below :
Q: A function type your answer... type your answer... is a declaration of a function that tells the…
A: Answer:
Q: I need help with 2 and 3. Thanks.
A: def fiveLetterLongerPalindrome(wordList): count = 0 for string in wordList: if…
Q: Hello! I need some help with my Java homework. Please use Eclipse with JavaFX Please add comments…
A: //MoveTheBall.java import javafx.application.Application; import static…
Q: . Illicit Cryptomining Create a presentation to discuss a certain abuse. The…
A: The above question is solved in step 2 :-
Q: Question 17 Which one of the following is a valid Python if statement? if (y => 12) if (y >= 3) O…
A: The complete answer is below:
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.
Ex: If the input is:
Hello there Hey quit
then the output is:
ereht olleH yeH please solve this in c++
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 3 images
- Write a C++ program that generates a plate number based on the user’s answer to the following questions: 1. What is your favorite color of the rainbow (ROYGBIV)? a. Use the first letter of the chosen color as the first character of the plate number. b. Display “Invalid Input” and ask the user to re-enter his/her answer if the answer is not a valid color of the rainbow. 2. What is your month of birth? a. Use the last letter of the month as the second character of the plate number. b. Display “Invalid Input” and ask the user to re-enter his/her answer if the answer is not a valid month. 3. What is your first name? a. Use the third letter of the first name as the third character of the plate number. No need to include the second name if you have a second name. Make sure to use “cout” and “cin” to collect the necessary inputs from the user. For the number section: 1. Ask the user his/her age and use the age as the first and second digits of the plate…Need help with a C++ program Write a C++ program that helps a person determine how long they can hike for under various conditions on a given supply of water. Your program should prompt the user to enter how much water they can carry in liters. Then, for each of the following conditions, print out how many hours the user can hike for. - moderate temperature, moderate difficulty: 1/2 liter per hour- moderate temperature, high difficulty: 3/4 liter per hour- high temperature, moderate difficulty: 1 and 1/2 liters per hour- high temperature, high difficulty: 1 and 3/4 liters per hour SAMPLE OUTPUT Hello! Welcome to the Hiking Water Calculator!How many liters of water can you carry? 8 OK. Here is how long you can hike for on 8 liters of water under the following conditions: moderate temperature, moderate difficulty: 16 hoursmoderate temperature, high difficulty: 10.6666666 hourshigh temperature, moderate difficulty: 5.3333333 hourshigh temperature, high difficulty: 4.5714285 hours.…Write a C++ program that prompts the user to input a positive integer. It should then output a message indicating whether the number is a prime number. (Note: An even number is prime if it is 2. An odd integer is prime if it is not divisible by any odd integer less than or equal to the square root of the number.)
- Write a c++ Develop a version where the player makes bet. If the Player guesses the first time, the player wins 10 times his initial bet If the Player guesses the number after 2 tries, he losses. 10 times his initial bet.press# to exit. Code and output with explanation.Write a c++ program that calculates and prints the monthly paycheck for an employee. The net pay is calculated after taking the following deductions: Federal Income Tax: 18.5% State Tax: 4.5% Social Security Tax: 6.30% Medicare/Medicaid Tax: 2.3% Pension Plan: 6% Health Insurance: TL 175.00 Your program should prompt the user to input the gross amount and the employee name. Format your output to have two decimal places. A sample output follows: Emre Taha Gross Amount: .. TL 3500.00 Federal Tax: Stațe Tax: Social Security Tax: Medicare Tax: Pension Plan: Health Insurance: Total Deductions: TL 647.50 TL 157.50 TL 220.50 80.50 TL TL 210.00 TL 175.00 TL 1491.00 Net Pay: TL 2009.00 Note that the first column is left-justified, and the second column is right-justified.Could this please be written in C++ 11, Thanks ! Write a program that calculates how much a person earns in a month if the salary is one penny on the first day, two pennies on the second day, four pennies on the third day, and so on with the daily pay doubling each day the employee works. The program should ask the user for the number of days the employee worked during the month, validate that it is between 1 and 31, and then display a table showing how much the salary was for each day worked, as well as the total pay earned for the month. The output should be displayed in dollars with two decimal points, not in pennies.
- Write a C++ program that will solve the problem given below: The program will determine If a city Cavite already achieved its herd immunity or COVID.19 (90% of its population ages 12 and above are fully vaccinated) The cities are Bacoor, Kawit, 'Noveleta, Rosario and Tanza. Your program should ask the user to input the following: o City (use code 1-5 or A-E) • Total population of the city with ages 12 old and above o Total number of persons fully vaccinated in the city Bequirements: Validate city code Total population >0 Total of fully vaccinated must be greater than 0 but not be more than the total population If at least one data is invalid do not process, otherwise, display the following: Name of city: XXXXXXXX Total Population (12 years old and above):_99999 Total Population fully vaccinated:_ 999999 % of fully vaccinated: 99.99% Congratulations Herd immunity Achieved! (display if % is >=90%) Population for vaccination to achieve herd immunity : 9999 - 99.99% (display if herd…C++ Write a program that accepts an integer number and determines whether the number is "EVEN" or "ODD. If it is even, compute the square of the number and display the message “Even number”. If the number is odd, compute and print the cube of the number and also display the remark "Odd number" , else display a remark "The number entered is zero."Write a C++ program that will repeatedly ask the user to enter an integer quantity of liquid given in cups, convert that quantity to its equivalent quantity in gallons, quarts, pints, and cups, and display the equivalent quantities. For example, if the user enters 31 cups, the program will determine and display that 31 cups are equivalent to 1 gallon, 3 quarts, 1 pint, and 1 cup. The program should continue doing conversions until the user indicates that she wishes to exit the program. Requirements and Comments: • Use a function convert to do the conversions to determine the equivalent quantities. Note: This function must not contain any cout or cin statements. • Conversions: 1 gallon = 16 cups; 1 quart = 4 cups; 1 pint = 2 cups. • Do not assume the user knows the number of conversions to be done in advance.
- c++ A palindrome is a word or a phrase that is the same when read both forward and backward. Examples are: "bob," "sees," or "never odd or even" (ignoring spaces). Write a program whose input is a word or phrase, and outputs whether the input is a palindrome. If the input is bob, the output is: bob is a palindrome If the input is bobby, the output is: bobby is not a palindrome Hint: Start by just handling single-word input, and submit for grading. Once passing one single-word test cases, extend the program to handle phrases. If the input is a phrase, remove or ignore spaces. 356110.1926120.qx3zqy7In c++ please. Given the sample code above in generating a random number. Create a program that lets the user play the game of Rock, Paper, Scissors against the computer. The program should work as follows. 1. When the program begins, a random number in the range of 1 through 3 is generated. If the number is 1, then the computer has chosen rock. If the number is 2, then the computer has chosen paper. If the number is 3, then the computer has chosen scissors.(Don’t display the computer’s choice yet.) 2. The user enters his or her choice of “rock”, “paper”, or “scissors” at the keyboard. (You can use a menu if you prefer.)3. The computer’s choice is displayed. 4. A winner is selected according to the following rules: a. If one player chooses rock and the other player chooses scissors, then rock wins.(The rock smashes the scissors.) b. If one player chooses scissors and the other player chooses paper, then scissor wins. (Scissors cuts paper.) c. If one player chooses paper and the other…Q2: Write a program in C++ to read ten students' name and degrees then calculate the average degree for each student if all his degrees above or equal 50. If a student has a degree less than 50, do not calculate the average degree for him. then print the result as shown below: Ahmed Ali Degrees= Math Drawing. 66 66 Ali Assad Degrees= Math Drawing........ 40 50 Name Result Average Ahmed Ali Pass 66 Ali Assad Not pass Note: each student has 7 classes.