mov al, 3 mov loc3, al mov loc2, al 13: call keyin add al, locl mov loc1, al dec loc3 jnz 13 14: sub al, loc2 inc loc3 cmp al, loc2 ins 14
Q: Write a program that asks the user to enter a 1st color choice from a set of options: red, yellow or…
A: In this program we have to enter a 1st color choice from a set of options: red, yellow or blue,…
Q: Write a program that prompts the user to enter the x- and y-coordinates for the three points p0, p1,…
A: As no specific language is mentioned in the question so writing it in JAVA language. Code: import…
Q: Write a program that prompts the user to enter the number of students and each student’s name and…
A: Since the coding language is not given, I have done the code in Python. Algorithm : Step 1 : ask for…
Q: Using C++ Write a program that can be used to assign seats for a commercial airplane. The airplane…
A: Program Instruction The program prompts the user to enter Ticket type as FC for first class, BC…
Q: Consider the Bubble Sort algorithm we developed in class. It works, but it may waste some activity.…
A: Bubble sort is a kind of sorting algorithm where the sorting is done on the basis of comparing…
Q: import javax.swing.*; import java.awt. *; public class MyProgram {//begin of class public static…
A: in your code using JFrame, there are two buttons are added to display in container inside JFrame.…
Q: Write a program that prompts the user to enter the radius of the rings and draws an Olympic symbol…
A: Define module turtle. Define object for turtle as p. Define thickness of then pen p as 6. Define…
Q: Instructions Follow these instructions to complete your assignment: 1. Write a flowchart (or…
A: 1) Declare the variables we can use this for the start and the end of the flowchart we can use this…
Q: Write a program that prompts the user to enter the length of the star and draw a star, as shown in…
A: Program code: #importing turtle import turtle #defining required variables #reading input from the…
Q: In this assignment you will write a program that shows the valid moves of chess pieces. Your program…
A: C++ Code : bool isValid(int c[][MAX], int n){ int a[] = { 0, -1, 0, 1 }; int b[] = { 1, 0, -1, 0…
Q: Constant Real GRAVITY = 9.81 Display "Rates of acceleration of an objet in free fall:" Display…
A: Answer: Declare Real pi Set pi 3.14159265 Display "The value of pi is ", pi # Correct the following…
Q: This code is incorrect. It does not match the output pictured in the original question. Please…
A: Task : Given the code and the output. The task is to find the output as per the given picture.
Q: ate the volume of a sphere whose radius is provided by the user. Use Math.pow() to solve this…
A: Q. Q. Write a program to calculate the volume of a sphere whose radius is provided by the user.…
Q: The following program loads and displays an image. Complete the draw_lines function to draw a green…
A: You can write the draw_lines function like this way:
Q: Write a program that prompts the user to enter the center of a rectangle, width, and height, and…
A: Program Plan: • Create a python file with name 2_25PE.PY. In the file, Get input from user. It is…
Q: Listed below are number in the table. If the user want to search for 65, what will be the display of…
A: Sequential search is also called as linear search in which target element is searched linearly from…
Q: Write a program that prompts the user to enter the numberof students and each student’s name and…
A: Program: import java.util.*; public class Main { static void LowestScores(String name[], float…
Q: Write a program that prompts the user to enter the center and radius of a circle, and then displays…
A: Using C Graphics The circle() function in the graphics.h header file draws a circle with a given…
Q: Using C++ Write a program that can be used to assign seats for a commercial airplane. The airplane…
A: The program prompts the user to enter Ticket type as FC for first class, BC for Business Class, EC…
Q: ShowCurrentTime.py, gives a program that displays the current time in GMT. Revise the program so…
A: Code to copy:- import time print("This Program Displays The Time In The Specified Time…
Q: Write EXACTLY what is printed by the code.
A: Code public class Main{ public static void main(String[] args) { int x=1; String res="";…
Q: Write a program that asks the user to enter five colors. Once the user has entered the colors, your…
A: 1) Since you have not specified programming language, I have written program in python. 2) Below is…
Q: A For the following Graph, which of the below statements is true? с O B E D Select one: O a. Graph…
A: We need to find the which option is true.
Q: Write a program that prompts the user to enter the center x-, y-coordinates, width, and height of…
A: JAVA Program to determine whether the second rectangle is inside the first or overlaps with the…
Q: The Research team led by Bernadette Wolowitz at Cal-tech University has discovered a new Amoeba that…
A: Explanation: Include all the necessary header files. Declare the necessary variables. Take the user…
I need to know what will show on the screen if the
Step by step
Solved in 2 steps
- • Use a while loop • Use multiple loop controlling conditions • Use a boolean method • Use the increment operator • Extra credit: Reuse earlier code and call two methods from main Details: This assignment will be completed using the Eclipse IDE. Cut and paste your code from Eclipse into the Assignment text window. This is another password program. In this case, your code is simply going to ask for a username and password, and then check the input against four users. The program will give the user three tries to input the correct username-password combination. There will be four acceptable user-password combinations: • alpha-alpha1 • beta-beta1 • gamma-gamma1 • delta - delta1 If the user types in one of the correct username-password combinations, then the program will output: "Login successful." Here are a couple of example runs (but your code needs to work for all four user-password combinations): Username: beta Type your current password: beta1 Login successful. Username: delta Type…qq3The instructions is on the right side.
- : Download the Flowgorithm file HometownPartial.fprg and complete the program for Hometown Bank. The program determines a monthly checking account fee. Input includes an account balance and the number of times the account was overdrawn. The output is the fee, which is 1 percent of the balance plus 5 dollars for each time the account was overdrawn. The program will ask the user to enter the account balance and the number of times the account was overdrawn, calculates the fee, and then displays the fee to the user. Save the completed flowchart as HometownComplete.fprg.2. Write an application that will calculate the Cummulative Grade Point Average [CGPA] using While Loop for 3 students. You have to enter the GRADE POINT of 5 different subjects for a student. You have to enter the CREDIT for each of the 5 subjects for a Student. GRADE POINT can take any value as given [5,6,7,8,9,10] CREDIT can take any value as given [2,3,4] CREDIT POINT = GRADE POINT * CREDIT CGPA = CREDIT POINT / Sum of the CREDIT values of all the 10 semesters. Display all the 5 subjects GRADE POINT Display all the 5 subjects CREDIT Display the CREDIT POINT Display the Total of all the CREDIT values Display the CGPA Do the above program for 3 students totally. Save your Shell script as cgpa.shFor this interactive assignment, you will 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: B 2. D 3. A 4. A 5. B 6. A 7. B 8. A 9. C 10. D 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 a list. The program should read the student’s answers for each of the 20 questions from a text file and store the answers in another list. (Create your own answer text file to test the application.) After the student’s answers have been read from the text 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…
- The output of the Operation: >>formatlong>> 200/6 a. 3.3333333333334e+01 b.33.3333 c.33.333333333333336 d.33.33333333333331. Create a VB.NET Console Application that uses the While loop to display all leap years between 2010 and 2050. A leap year between 2010 and 2050 is a year that is an integer multiple of 4 (i.e., year Mod 4 = 0). For example, 2020 and 2040 are leap years.create a Python application that makes use of repetition control structures in Python. Scenario: You are creating an application that will simulate the functions of an ATM for a bank. The user will be able to open the application, check their balance on their account, withdraw a specific amount that does not exceed their balance or deposit specific amounts into their account. The user should be able to do all these functions in succession without having to restart the application over and over. The application should first ask for a command from the user when started, the user can do 4 different commands on the application: Check Balance: The user will be able to check their current balance on their account. This should show the most updated balance if the user has made a withdrawal or deposit to the account. The account starts off with a balance of 100.00 PHP. Withdraw Money: The user can input an amount to withdraw from their account. This should not exceed the total balance that is…
- Print "Censored" if userlnput contains the word "darn", else print userlnput. End with newline. Ex: If userlnput is "That darn cat.", then output is: Censored Ex: If userlnput is "Dang, that was scary!", then output is: Dang, that was scary! Note: If the submitted code has an out-of-range access, the system will stop running the code after a few seconds, and report "Program end never reached." The system doesn't print the test case that caused the reported message. 1 import java.util.Scanner; 2 3 public class CensoredWords { public static void main (String [] args) { Scanner scnr = new Scanner(System.in); String userInput; 4 5 7 8 userInput scnr.nextLine(); 9. 10 /* Your solution goes here */ 11 } 13 } 12Reza 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 tellsthe 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.. Test your application with the following ticket numbers: - 123454; is a valid ticket number - 147103; is a valid ticket number -…Please do only java file (FamilyName_CommodityCode.java) containingthe code and 4 image files (Sample1, Sample2, Sample3, and Sample4) containingdifferent sample input/output of the program.