What’s the output of the following programs?
Q: What is the output of the following C ?program
A: C is a general-purpose, procedural computer programming language supporting structured programming,…
Q: output of the following * ?program
A: According to the question we need to find the output for the 2 Programs:…
Q: Complete the following program by writing its functions:
A: We need to define the methods abs(),Prime(),Find(),Power() and Max() as per the given description.
Q: * Find the result of the following program
A: Define header files <iostream> and <iomanip> for io and manipulation of data operations.…
Q: What is the output of the following program? Explain why?
A: Program Explanation: Define a class for boy with the instance variable age having a default value…
Q: What is the number of execution times of the following program?
A: What is the number of execution times of the following program? label1: MVI B, O INR A loop label1…
Q: What is the correct output from the following program?
A: Program: // Include Header file #include <iostream> using namespace std; // Main function int…
Q: What is the output of the following program
A: The given code is a sample of using inheritance in C#. It has two calles in inheritance as below:…
Q: What does the following program do? Explaln why.
A: #include <iostream> using namespace std; class A{ //create class A public:…
Q: What the following program does?
A: START: LDA 2050HMOV B,ALDA 2051HCMP BJC OTHERSTA 2052HJMP ENDOTHER: STA 2053HEND: HLT
Q: ld you please explain the following program with detai
A: include<stdio.h> standard input-output library. struct is the keyword and clientData is the…
Q: What is the output of the following C++ code?
A: while loop is an iterative statement which iterates till condition is satisfied. syntax of while…
Q: What will be the output of the below program:
A: Output of the above code is in step2.
Q: what is the output of the following program
A: Program: #include <iostream>using namespace std; int substract(int x ,int y, int z=2 ){ return…
Q: What is the output of the following * ?program
A: Please find the answer below :
Q: What would be the output of the following program?
A: The given program is:- tt = ['c', 'o', 'r', 'k']tt = ['m', 'a', 'c', 'h', 'i', 'n', 'e'] + tttt[0] =…
Q: Which of the following is not accomplished with the print function?
A: LET US SEE THE ANSWER : The print() function outputs the message to the normal output device, such…
Q: /*Question: what is the output after executed the following Program*/
A: The output after executing the above program is as follows:
Q: What is the value of x and y after executing the following program?
A: The output will be: 15&10. Where x = 15 and y = 10
Q: What is the output of the following * !program
A: A computer program is a collection of instructions that can be executed by a computer to perform a…
Q: What is the output of the following ?program
A: Please find the answer below :
Q: what is the output of the following ?program
A: The answer of this question is as follows:
Q: /*Question: what is the output after executed the following Program*/ #include
A: Required: I need the answer as soon as possible
Q: 5]
A: Below the output of the following program
Q: What does the following code print out?
A: Step 1:- The given program in the java programming language. Given Program:- public class…
Q: What is the output of the following program
A: The output is as follows: 0 1 2 3 1 2 3 4 2 3 4 5 3 4 5 6 4 5 6 7
Q: What does the following code output?
A: Given code is- #include <iostream> using namespace std; int main(){ int y = -5, x = -8;…
Q: What would be the output of the following program
A: Given recursive implementation of hen with 1-9 having base case and more than that will be recursive…
Q: The output of the following program is :-
A: Output:
Step by step
Solved in 2 steps
- 99 question Reza Enterprises sells tickets for buses, tours, and other travel services. Because Reza frequently mistypes long ticket numbers, Reza Enterprises has asked his students to write an application that shows if a ticket is invalid. Your application/program tells the ticket agent to enter a six-digit ticket number. Ticket numbers are designed so that if you lose the last digit of the number, then divide by 7, the remainder of the division is exactly the same to the last dropped digit. This process is shown below: Step 1: Enter the ticket number; for example 123454 Step 2: Remove the last digit, leaving 12345 Step 3: Determine the remainder when the ticket number from step 2 is divided by 7. In this case, 12345 divided by 7 leaves a remainder of 4. Step 4: Display a message to the ticket agent indicating whether the ticket number is valid or not. If the ticket number is valid, save the number to a .txt file called “tickets.txt” and.Driver’s License Exam The local driver’s license office has asked you to create an application that grades the written portion of the driver’s license exam. The exam has 20 multiple-choice questions. Here are the correct answers: 1. B 2. D 3. A 4. A 5. C 6. A 7. B 8. A 9. C 10. D 11. B 12. C 13. D 14. A 15. D 16. C 17. C 18. B 19. D 20. A Your program should store these correct answers in an array. The program should read the student’s answers for each of the 20 questions from a text file and store the answers in another array. (Create your own text file to test the application.) After the student’s answers have been read from the file, the program should display a message indicating whether the student passed or failed the exam. (A student must correctly answer 15 of the 20 questions to pass the exam.) It should then display the total number of correctly answered questions, the total number of incorrectly answered questions, and a list showing the question numbers of the incorrectly…def print_num_pattern(num1, num2): if num1 <=0: print("0", end="") return print(num1, end="") print_num_pattern(num1 - num2, num2) print(num1, end="") if __name__ == "__main__": num1 = int(input()) num2 = int(input()) print_num_pattern(num1, num2)
- Pig Latin Create an application that accepts a sentence as input and converts each word to “Pig Latin.” In one version, to convert a word to Pig Latin you remove the first letter and place that letter at the end of the word. Then you append the string "ay" to the word. Here is an example: English: I SLEPT MOST OF THE NIGHT Pig Latin: IAY LEPTSAY OSTMAY FOAY HETAY IGHTNAYSearching for a student’s details and status. from this pseudocode startdeclarationsnum studentNumnum studentTempnum numOfStudentsnum maxOfStudents = 300num timeOfDaynum maxTemp = 38 degreesnum studentNumArray (maxStudents)String studentNameString studentStatusstring nameArray (maxStudents)string QUIT "ZZZ"while numOfStudents < maxStudentswhile quit <> "ZZZ" studentScreening()tempMonitor()timeMonitor()studentArray()numOfStudents = numOfStudents + 1studentSearchDetails()endwhileendwhilestop studentScreening()output "Enter student number"input studentNumoutput "Enter student name"input studentNameoutput " Student Temp"input studentTempoutput "Enter time"input "time"returntempmonitor()if studentTemp >maxTemp = 38 degreesoutput studentStatus = "Not Admitted"status = Not Admittedelsestatus = Admittedoutput studentStatus = "Admitted"end ifreturntimeMonitor()output "Enter Time of Screening"input timeOfDayif timeOfDay > 12status = "Not Admitted"output studentStatus =…Web page bill calculator. User inputs the "item name" and "item amount" on the webpage. The webpage will return the total money he need to pay. If the payment is more than 30 dollars, the user can have a 10% off discount. Bill = (item cost )* (# of items) Item cost apple orange peach $1.2 $2
- ProductParser Product #productld:String="?" #quantity:int=0 +parseString ToProduct(line ToParse : String) Product #unitPrice:double=0.0 #totalCost:double=0.0 +Product(String, int, double) +getProductid0:String +toString( ):String +computeTotalCost():void Assignment5 +main(String]):void +printMenu):void Clothing Food -name: String="?" -damageRate: double=0.0 -expirationDate: String="08.20.2015" -size: String -color: String +Food(String, int,double,String,double, String) +toString):String +Clothing(String,int,double,String,String) +toString):StringFill in the places with underscores. B4: =IF(B3>B_ „IF(B3>=B ,"OK","No") =IF(AND(B3>=B_,B3<=B_)," _","_")) 11 11 -MadLib Game bigGame.py Write a program that plays a MadLib game with the user. The program should ask the user to enter the following words: A plural noun (PNOUN1) A person’s first name (FNAME) A noun (NOUN1) A person’s last name (LNAME) A second plural noun (PNOUN2) A place (PLACE1) A third plural noun (PNOUN3) Another place (PLACE2) A fourth plural noun (PNOUN4) A second noun (NOUN2) An adjective (ADJECTIVE1) A second adjective (ADJECTIVE2) A verb (VERB) A third adjective (ADJECTIVE3) After the user has entered these items, the program should display the following story, inserting the user’s input into the appropriate locations: Hello there, sports PNOUN1!This is FNAME, talking to you from the press NOUN1in LNAME Stadium, where 57,000 cheering PNOUN2Have gathered to watch (the) PLACE1 PNOUN3take on (the) PLACE2 PNOUN4.Even though the NOUN2 is shining, it’s a/an ADJECTIVE1cold day with the temperature in the ADJECTIVE2 20s.We’ll be back for the opening VERB -off after a few…
- Strictly java code Write an application for Limpopo’s Car Care Shop that shows a user a list of available services: oil change, tire rotation, battery check, or brake inspection. Allow the user to enter a string that corresponds to one of the options, and display the option and its price as R250, R220, R150, or R50, accordingly. Display an error message if the user enters an invalid item.Rock, Paper, Scissors Game Create a application using (C#) in Microsoft Visual Studio 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. (Do not display the computer’s choice yet.)2. The user selects his or her choice of rock, paper, or scissors. To get this input you use clickable PictureBox controls displaying some of the artwork that you will find in the student sample files.3. The computer’s choice is displayed.4. A winner is selected according to the following rules: •If one player chooses rock and the other player chooses scissors, then rock wins. (Rock smashes scissors.)•If one player chooses scissors and the other player chooses paper, then scissors wins.…Microsoft Visual C# 7th edition Create a program for Smalltown Regional Airport Flights that accepts either an integer flight number or string airport code from the options in Figure 8-33. Pass the user’s entry to one of two overloaded GetFlightInfo() methods, and then display a returned string with all the flight details. For example, if 201 was input, the output would be: Flight #201 AUS Austin Scheduled at: 0710 (note that there should be two spaces between 'Austin' and 'Scheduled'). The method version that accepts an integer looks up the airport code, name, and time of flight; the version that accepts a string description looks up the flight number, airport name, and time. The methods return a message if the flight is not found. For example, if 100 was input, the output should be Flight #100 was not found. If no flights were scheduled for the airport code entered, for example MCO, the message displayed should be Flight to MCO was not found. Here is my code, and I am having this…