Write a program that takes in an integer in the range 11-100 as input. The output is a countdown starting from the integer, and stopping when both output digits are identical. Ex: If the input is: 93 the output is: 93 92 91 90 89 88 Ex: If the input is: 11 the output is: 11 Ex: If the input is: 9 or any value not between 11 and 100 (inclusive), the output is: Input must be 11-100 Use a while loop. Compare the digits; do not write a large if-else for all possible same-digit numbers (11, 22, 33, ., 99), as that approach would be cumbersome for larger ranges.
Q: 2. When hydrogen gas reacts with iodine gas at elevated temperatures, the following equilibrium is e...
A: Solution ::
Q: For the give memory interfacing schematic find out the starting and ending address of EPROM and RAM.
A: EPROM Starting address = 0000 Ending Address = 03FF (In Hexadecimal )
Q: Given a line of text as input, output the number of characters excluding spaces, periods, exclamatio...
A: txt = input("Enter the text: ") #Taking the input text from usercount=0 #counter variable to count...
Q: A number 428 in duodenary (base 12) is to be added to C10 in tredenary (base 13), what is their diff...
A: Here in this question we have given two number in base 12 and 13 i.e (428)base12 (C10)base13 and we ...
Q: What is the catastrophe recovery process's principal objective?
A: Introduction: Catastrophe recovery/ Disaster recovery: Disasters such as fire, flooding, terrorist a...
Q: Topic: Application in AI 1-Pick one application in AI that you interested and elaborate it. for exam...
A: The capacity of artificial intelligence to reason and execute actions that have the highest possibil...
Q: number repeats), both terminated by a -1. The size of each sequence can vary (maybe sequence-1 has f...
A: The given problem is related to merging a list of numeric sequences in a new list having an ordered ...
Q: ncoding technique solves the loss of synchronization because of long 0’s and 1’s? A. Manchester B....
A: given - Which encoding technique solves the loss of synchronization because of long 0’s and 1’s?
Q: Q5: For the Binary search tree given below. 30 15 60 7 22 45 75 17 27 In-order Travetrsal Pre-Order ...
A: 1.Inorder Traversal: Traverse the left Subtree Then visit the root Then visit the right subtree
Q: Draw the DFS and BFS spanning trees for the above graph starting from vertex A.
A:
Q: Fetch and decode Instruction Boolean condition RTL name Fetch TO)L: AR<--PC, SC<-- 0 TI)L: IR<.- M[A...
A: RTL I E AC DR IR PC AR M[AR] Initial Value 0 0 3024 3015 3015 314 ...
Q: Provide a brief description of the AllocConsole function.
A:
Q: What is the most efficient approach to start a programme in full-screen mode?
A: Introduction: The simplest way to go full screen in an application or game is to use the Alt + Enter...
Q: 1. (a) 1 A) Design an algorithm that inputs two lists of numbers, A, and B, of lengths n and m re...
A: Given The answer is given below.
Q: How soon before or after the main window shuts does the message box that was triggered by WM CLOSE a...
A: Answer : Milliseconds
Q: What is the effect of ROLLBACK if you give it immediately after a COMMIT?
A: Effect of ROLLBACK after COMMIT
Q: What is the process through which a virtual network interface card (VNIC) obtains a MAC address?
A: Defined the process through which a virtual network interface card(vNIC) obtains a MAC address
Q: Your employer has charged you with implementing a risk management program. The CEO has requested you...
A: Security is prevention of unauthorised access into system. Exposure of holes in source code is respo...
Q: summery on INTERFACES design and issues.
A: Interface design and issues
Q: a) With respect to Lehman's laws of software evolution, state the two most fundamental laws and expl...
A: Note: as per company guidelines, only first question answer can be given if multipart question are p...
Q: 1. Why is packet switching efficient? Explain your response. 2. Compare implicit allow and implicit...
A: Packet Switching Packet Switching is a method of transferring data in the form of packet. Packet sw...
Q: What technological innovations in the fields of software engineering and computing have occurred bey...
A: Introduction: Software engineering refers to creating computer programs by using engineering princip...
Q: Compile a list of the eight most important user interface design principles. In what order would you...
A: INTRODUCTION: The process through which designers create user interfaces in software or digital dev...
Q: Given the machine code, identify the instruction line or command line. Use CAPITAL LETTERS . No spac...
A: SUMMARY: - Hence, we discussed all the points
Q: Write a program that replaces each line of a file with its reverse. For example, if you run java Rev...
A: The required java program is provided below in the next step.
Q: By using the Big-O definition and formal proof, show and prove that a function y=n*+3 can't belong t...
A: For a given function g(n), we have set O(g(n)) = { f(n) : there exist positive constants c and n0 su...
Q: PCH; OH_ Y CH;OH PcoP y coy p²
A:
Q: What is the output of the following Python code? myList = {} myDictionary = [] myList[0] = "chegg" m...
A: Insert function inserts element at particular index in list.
Q: date man date file/ man -k password man-f passwd Man 5 passwd Info dațe Date -help Ls /usr/share/doc...
A: Here are the functions of above commands on Linux :- 1)date:- this command is used to display the sy...
Q: Scenario: You are tasked with the development of an E-Scooter ride-share system. It allows registere...
A: Scenario: You are tasked with the development of an E-Scooter ride-share system. It allows registere...
Q: Discuss Big Data and how corporations are using it these days, as well as why they are doing so.
A: The answer of this question is as follows:
Q: ecution for each line using "call by need" an
A: Draw the run-time stack after the execution for each line using "call by need" and "call by name". A...
Q: Which operating system having n a time.
A: given - Which operating system having multitasking capabilities, so that user can run more than one ...
Q: Brenda secured her bicycle with a number lock. The problem was she forgot the exact arrangement of t...
A: There will be total 24 combination for code number containing 1,3,4,7. The combination of all types ...
Q: a. b && (x == 0) b. b || (x == 0) c. !b && (x ==
A:
Q: CREATE A FLOWCHART OF BINARY SEARCH TREE
A: The flowchart for finding an element in a binary search tree is given below.
Q: Write an application that prompts the user for two integers and then prompts the user to enter an op...
A: Here is the program screenshot in java:
Q: of g(x), c, 5 and k) in the next section. For the following code segments below, count the operation...
A: f(x) = 1 (as it only has one basic process)
Q: (20pts) Write the parse tree for the following CTL formulas: a) EGp b) AG(p -> EGq) c) A (p U EFq) d...
A: ANSWER:-
Q: of g(x), c, 5 and k) in the next section. For the following code segments below, count the operation...
A:
Q: What is the difference between a heuristic and an algorithm ?
A: Introduction: Heuristic - It is a technique for determining the best path based on a heuristic value...
Q: Using C Language, write a program: PROGRAMMING EXERCISES 7-5 Write a program that takes nouns and ...
A: The Answer is
Q: A Q B a) Write Boolean expression for the above logic circuit. b) write a truth table
A: Given logic circuit contains three variables A, B and C. The circuit consists of three gates that ar...
Q: Describe in fully the advantages of distributed systems.
A: Introduction: A distributed system is a computing environment in which various components are spread...
Q: Consider an array arT = {12, 14, 17,18, 23, 24, 28, 33, 43}. Show using diagram how element 12 can b...
A:
Q: A3 In early 2018 Samsung began the NPD process for the Galaxy S11, with the goal of taking market sh...
A: Between stages, a gate is used to determine whether the team should move to the next stage or an ite...
Q: the valid operand options that can be used with x86 mnemonicsi ING DrC
A: Given :- The x86 mnemonics operand is listed in options in the above given question Need to choose...
Q: Create a Python application that makes use of inputs, outputs, and sequence structures in Python.
A: import random """*************************Lists in Python******************************"""phone_bran...
Q: How do SR latches work?
A: How do SR latches work?
Q: A number 428 in duodenary (base 12) is to be added to C10 in tredenary (base 13), what is their diff...
A: Given The answer is given below
pyhon explain
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 4 images
- Q2) Write a program that reads a one-line sentence as input and then displays the following response: If the sentence ends with a question mark (?) and the input contains an even number of characters, display the word "Yes". If the sentence ends with a question mark and the input contains an odd number of characters, display the word "No". If the sentence ends with an exclamation point (!), display the word "Wow". In all other cases, display the words " you always say "followed by the input string enclosed in quotes" ". Your output should all be on one line. Be sure to note that in the last case, your output must include quotation marks around the echoed input string. In all other cases, there are no quotes in the output. Your program does not have to check the input to see that the user has entered a legitimate sentence. Sample Input#1: Please enter a one line question or statement. How are you? Sample Output#1: Yes Sample Input #2: Please enter a one line…L 1:01 In Excel, each sheet in a workbook is displayed as* Floating Point Arrow Tab Marker Down Pointing Arrow To assign a letter grade to the score in Cell * A3, you will write an if function If Score is Greater than 9 Then return Scores From 80 to 89 45 From 70 to 79 90 From 60 to 78 Less than 60 =IF(A2>89,"A",IF(A2>79,"B", IF(A2>69,"C",IF(A2>59,"D","F"))) =IF(A3>89,"A",IF(A3>79,"B", IF(A3>69,"C",IF(A3>59,"D","F"))) =IF(A4>89,"A",IF(A4>79,"B", IF(A4>69,'C",IF(A4>59,'D","F"))) =IF(A1>89,"A",IF(A4>79,"B", IF(A4>69,"C",IF(A4>59,"D","F")))) * ?What's wrong with the formula in cell B10 IILAB: Countdown until matching digits zyBooks catalog Help/FAQ 15.16 LAB: Print string in reverse 5.17 LAB: Countdown until matching digits Write a program that takes in an integer in the range 11-100 as input. The output is a countdown starting from the integer, and stopping when both output digits are identical. Ex: If the input is: 93 the output is: 93 92 91 06 89 88 Ex: If the input is: 11 67°F search 近
- PP 6.4 Write a program that prints the first few verses of the traveling song “One Hundred Bottles of Beer." Use a loop such that each iteration prints one verse. Read the number of verses to print from the user. Validate the input. The following are the first two verses of the song: 100 bottles of beer on the wall 100 bottles of beer If one of those bottles should happen to fall 99 bottles of beer on the wall 99 bottles of beer on the wall 99 bottles of beer If one of those bottles should happen to fall 98 bottles of beer on the wallThree numbersa. Write a program that reads three numbers and prints “all the same” if they are allthe same, “all different” if they are all different, and “neither” otherwise.b. Write a program that reads three numbers and prints “increasing” if they are inincreasing order, “decreasing” if they are in decreasing order, and “neither”otherwise. Here, “increasing” means “strictly increasing”, with each value largerthan its predecessor. The sequence 3 4 4 would not be considered increasing.c. Repeat part b. but before reading the numbers, ask the user whetherincreasing/decreasing should be “strict” or “lenient”. In lenient mode, thesequence 3 4 4 is increasing and the sequence 4 4 4 is both increasing anddecreasingThank you
- 3.12 LAB: Seasons Write a program that takes a date as input and outputs the date's season. The input is a string to represent the month and an int to represent the day. Ex: If the input is: April 11 the output is: Spring In addition, check if the string and int are valid (an actual month and day). Ex: If the input is: Blue 65 the output is: Invalid The dates for each season are:Spring: March 20 - June 20Summer: June 21 - September 21Autumn: September 22 - December 20Winter: December 21 - March 19 247772.2002516.qx3zqy73.4 LAB: Seasons Write a program that takes a date as input and outputs the date's season in the northern hemisphere. The input is a string to represent th month and an int to represent the day. Note: End with a newline. Ex: If the input is: April 11 the output is: Spring In addition, check if the string and int are valid (an actual month and day) Ex. If the input is Blue 65 the output is Invalid. The dates for each season in the northern hemisphere are: Spring: March 20-June 20 Summer June 21-September 21 Autumn September 22- December 20 Winter December 21- March 19Part a:Finding Pythagorean Triples with OpenMPWrite a program that calculates Pythagorean triples using nested for loops. The Pythagorean Theorem states the following:?2 + ?2 = ?2Where a, b, and c are whole numbers. Part b: Modifying the Pythagorean Theorem Modify the Pythagorean Theorem by either adding or subtracting a times b on the left-hand-side, and run the program again. Are there integer solutions for this??2 + ?2 + ??= ?2
- 2увooks c 8.12 LAB: Divide by x Write a program using integers user_num and x as input, and output user_num divided by x three times. Ex: If the input is: 2000 2 2 Then the output is: 1000 500 250 Note: In Python 3, integer division discards fractions. Ex: 6 // 4 is 1 (the 0.5 is discarded). 312198.2042412.qx3zqy7 0/ 10 LAB 8.12.1: LAB: Divide by x ACTIVITY Load default template.. main.py 1 ''' Type your code here. '7) The ideal gas law allows the calculation of volume of a gas given the pressure(P), amount ofthe gas (n), and the temperature (T). The equation is:V = nRT / PSince we only have used integer arithmetic, all numbers will be integer values with nodecimal points. The constant R is 8.314 and will be specified as (8314/1000). This givesthe same result. Implement the idea gas law program where the user is prompted for andenters values for n, T, and P, and V is calculated and printed out. Be careful toimplement an accurate version of this program. Your program should include a properand useful prompt for input, and print the results in a meaningful mannerQ2/ If x from (1-10) write a program to print the summation of every two consecutive even numbers (2+4) (4+6) (6+8) .. برنامج بلغة الفورتران لطباعة مجموع كل رقمين زوجي ين متعاقبي ين ل لأعداد المحصورة بين 1 إلى 10 اكتب