java ------------------- Write a calculator program which shows the user a menu to select from : Add, Subtract, Multiply, Divide, Exit. Write functions for each operation. After completing the operation, the program should show the menu again. Your code has to be clear and organized. Comment your code where needed. Write your code in the space provided.
Q: Using JAVA Application and Netbeans Create a simple program that Accepts and Display the Following:…
A: Import java.util.Scanner class. Define Main class. Define main function. Define scanner object sc.…
Q: eed help writing the code in Java language. Allow a user to enter any number of double values up to…
A: Actually, java is a object oriented programming language. It is a platform independent.
Q: Using codes snippets briefly explain how the Scanner class can be used to accept data from the…
A: Use of Scanner class for accepting data from keyboard In order to scanner class, the class should…
Q: Make a program that has several food items on the menu with prices. The user will select the items…
A: You can add features to the program like getting money and giving change, asking for more money if…
Q: Formulate a technique for reducing the value of two counters from 10,000 to 1 and then displaying…
A: Introduction: Assume the purchase price of a fixed asset is $11,000, the scrap value is $1,000, and…
Q: Python exercice. consider the atttached file for further details. Old-fashioned photographs from…
A: Old-fashioned photographs from the nineteenth century are not quite black and white and not quite…
Q: 1:56 .l LTE O A online.claflin.edu CSCI 206 Lab Date: 24 March 2020 Lab Activity 7: Nested whiles…
A: Program code: //define a class Main class Main { //define the main() method public static void…
Q: The sample input will have to be in Text File (.TXT) 2. By using the first function, this program…
A: Algorithm: Start Read file name Define a method readFileValues() which takes filename as argument…
Q: Rap 1 Рop 2 Classical 0 Hip Hop 2 Rock 2 Lo Fi 0 c. The returned array should contain the follow…
A: Given Rap 1 Pop 2 Classical 0 Hip Hop 2 Rock 2 Lo Fi 0 c. The returned array should contain the…
Q: Need help designing a program with python. Here's what I'm trying to make. A menu-driven modular…
A: Please refer to the following steps for the complete solution to the problem above.
Q: can be used to read DVD titles from a text file. You do not have to write to the file, only write…
A: Q. Design an application that can be used to read DVD titles from a text file. You do not have…
Q: A semicolon at the end of MATLAB statements is used to? O Display the results. O Suppresses printing…
A: Here, I have to choose an option for the above question.
Q: Write a program in Java that takes an integer value as input from the keyboard and prints a pattern…
A: Firstly you need to take user input for this so for that you can use the scanner class to take the…
Q: Write a Java application that can perform the above expression. Create a method that takes two…
A: java code for expression evaluation: Code: import java.util.*; public class…
Q: Your problem is to develop an application that will implement the classic board game "Battleship!".…
A: Battleship game in python code
Q: Please help me I need as searching algorithm for the program below
A: The complete code with correct syntax and proper indentation is shown below. The Algorithm is…
Q: ng questions about it: Problem Description: A car dealership allows customer to purchase their new…
A: Java is a class-based, object-oriented programming language and is designed to have as few…
Q: PLS help in JAVA. I need a code that makes a calculator. This calculator should have the basic…
A: Answer is given below-
Q: There are 100 light bulbs lined up in a row in a long room. Each bulb has its own switch and is…
A: Please find the detailed approach below.
Q: Loop, input, and variable review: objects not required. Write a Java program that can make change…
A: Solution: Given,
Q: Java programming please type the code thanks This problem set will test your knowledge of System…
A: ReverseInput Java application accepts user input from the console and then prints the reverse of the…
Q: Discount Insurance provides motor vehicle insurance to its customers. The company is introducing a…
A: Actually, given information regarding: Discount Insurance provides motor vehicle insurance to its…
Q: AVA Programming Problem 1 – High School Locker A locker for a high school student has a locker…
A: Answer
Q: language: JAVA Color Mixer The colours red, blue, and yellow are known as the primary colours…
A: Java is a programming language originally developed by James Gosling at Sun Microsystems (which is…
Q: Create C a program that will Register the user from the library. The program should determine if the…
A: Program code: #include <stdio.h>#include <stdlib.h>#include <string.h>#define…
Q: Java programming language with following concepts: The following are the specifications for the…
A: Java is a high level object oriented language. In this program swith case is used.
Q: Description: Create (Java Program) a phonebook directory that will store the contact numbers of N…
A: А teleрhоne direсtоry, соmmоnly саlled а teleрhоne bооk, teleрhоne аddress bооk, рhоne bооk, оr the…
Q: Exercise to be Graded Your task is to create a GPA Calculator. Start by creating a Python script…
A: The Code is given below.
Q: the sales of an employee the user should be presented with an option to enter the employee name and…
A: Thanks for the question. Below is the code you will be needing, I have used descriptive names for…
Q: Write an application that determines whether a phrase entered by the user is a palindrome. A…
A: Input : str = "madam Im adam" Output : Sentence is palindrome. Input : str = "welcome to java"…
Q: Discount Insurance provides motor vehicle insurance to its customers. The company is introducing a…
A: Answer is given below .
Q: JAVA CODE is needed for this answer. Please you cannot import java.util.Scanner. You can only import…
A: Procedure Followed: Import header files. Start Class CarMin Start the main method. Declare carType…
Q: create a Python application that makes use of repetition control structures in Python. Scenario: You…
A: Find the required code in python given as below and output :
Q: In Python Chack the picture and fix code please. This is the Required Output example: Menu…
A: import pickle#dictionary to store recordsdictionary=dict()def add_record(name,…
Q: 2. (Sentinel.java) Write a program that reads several numbers, determines how many positive and…
A: As per guidelines we are supposed to answer only one question. Kindly repost the other questions as…
Q: Part 1: Create a simple Calculator using the JavaScript Arithmetic operators & if statements, your…
A: Introduction of Program: The javascript program takes two numbers in the textbox and then performs…
Q: RAM DESCRIPTION: You will create a C++ program that will allow the user to play the game Hangman.…
A: C++ program is given below trying to implement hangman figure in every wrong guess
Q: Write, compile, and test a class that uses the command window to display the following statement…
A: code is written below- // Comments class public class Main { //Main method public static void…
Q: 1. Complete an algorithm, code and compile the following program. Save the program as mathTutor.py.…
A: #math tutor program import random #function to display main menudef main_menu(): print("\n1.See…
Q: 8. Property Tax A county collects property taxes on the assessment value of property, which is 0u…
A: Since here, no programming language is specified. So, we are providing a solution in C++. The…
Q: In a statement: Scanner keyboard = new Scanner (System.in); it reads user input by means of a…
A: According to the information given:- We have to find the correct output to satisfy the code.
Q: Build an application that will receive a guess and report if your guess is the random number that…
A: Required Java code Provided Below:
Q: 5. SVD In this question, you will use SVD to compress your image. Take a picture of yourself and…
A:
Q: ISP-Java Taking what you learned over the last 8 weeks, it is now your turn to create a program of…
A: As per the given question we have to design ANY Java program that uses at least the following : •…
Q: java program that asks the user to enter a number to be tested for repeated digits. For each input…
A: Description: 1- In this assignment, need to take the input from the user using the java scanner…
Q: C++ Election Day Write a program that compiles the result of an election. You will read the…
A: PROGRAM: //Header files #include <iostream> #include <string> #include <iomanip>…
Q: Java programming please type the code thanks This problem set will test your knowledge of System…
A: given data is Java programming please type the code thanks This problem set will test your knowledge…
Q: te a JAVA PROGRAM as a Currency Converter program. The program performs Currency Exchange operation…
A: I have the code below:
Q: Instructions: Input one number (integer or decimal), an operator (+, -, *, /), and another number…
A: Java printf statement to print the value up to two decimal values. For a float or double decimal…
Q: Please help me with this JAVA practice. You are making a guest list for your big company event.…
A: I give the code in java that sort on basis of their name along with the output screenshot and code…
java
-------------------
Step by step
Solved in 3 steps with 4 images
- JAVA: Debit Card Reader (interfaces) "CashRegister.java" is the ONLY FILE the can be edited!!!! No other files that are given below can be edited!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!$^$%&%^&$%^ Many machines are able to make use of debit cards in order for people to make transactions using the money in their bank accounts. One piece of a debit card's security is its PIN number, which must be entered correctly for a transaction to proceed. The main() program below defines a cash register and a debit card with the pin 1234, and then accepts a PIN number as input. The entered PIN number is passed to the cash register along with the debit card object to verify that the entered PIN was correct. Given main(), a DebitCard class, and a DebitCardReader interface, complete the definition for the CashRegister class. The CashRegister class should provide a definition for the abstract method from the interface it implements. The program will be complete once this abstract…Python Programming only please no java Create a PollMachine class that can be used for a simple poll for users. Your program must perform the following actions: Method to clear the machine state Method to agree/Disagree to 3 options of your choice for example (I enjoy being a student Agree(A)/Disagree(D)) Get tallies of all agrees and disagrees for each answer Keep asking for users to enter answers until the user ends the program. Print the following to the console: Display the results after the poll has ended. Make sure to use a try-except block and include the finally block. Describe the data you print. Do not just print numbers to the screen explain what each number represents.Java ( OOP ) Given programming code and corresponding outputs. You are required to either complete the missing part of the code or correct errors and rewrite the code as mentioned in each statement.
- Python exercice. consider the atttached file for further details. Old-fashioned photographs from the nineteenth century are not quite black and white and not quite color, but seem to have shades of gray, brown, and blue. This effect is known as sepia, as shown in the figures below. Original Sepia Original Image & Sepia Image Write and test a function named sepia that converts a color image to sepia. This function should first call grayscale to convert the color image to grayscale. A code segment for transforming the grayscale values to achieve a sepia effect follows.Note that the value for green does not change. (red, green, blue) = image.getPixel(x, y)if red < 63: red = int(red * 1.1) blue = int(blue * 0.9)elif red < 192: red = int(red * 1.15) blue = int(blue * 0.85)else: red = min(int(red * 1.08), 255) blue = int(blue * 0.93) images.py To instantiate an image from a file, enter image = Image(aGifFileName) To…write in assembly language Divide by two numbers In this assignment, you are required to make an application using assembly code that takes two numbers from the user and returns the result of dividing the first number by the second number. Important notes: 1- You should allow the user to Enter to digits number "For the first number only" 2- You should allow two-digit results if necessary. Stretch goal "optional": Handle the remain of the division process and print it on the screen. Submission: Provide two files (.asm and screenshot). Use your university ID for files naming. Submission status(Racing car) Write a program that simulates car racing, as shown in Figure 9.29b– d. The car moves from left to right. When it reaches the right end, it restarts from the left and continues the same process. Let the user increase and decrease the car’s speed by pressing the Up and Down arrow keys.Figure 9.29(a) The programs display a fan and (b–c) a moving car. (d) You can redraw a car with a new base point. Use Python
- JAVA LANGUAGE 4. Operation: Operation by CodeChum Admin You have been cordially invited to partake in Operation: Operation. Your mission, should you choose to accept it, is to take the two numbers and the operator given then perform the operation successfully. Instructions: Input one number (integer or decimal), an operator (+, -, *, /), and another number (integer or decimal). Print the result of the operation between the two numbers, up to 2 decimal places. Instructions Input one number (integer or decimal), an operator (+, -, *, /), and another number. Print the result of the operation between the two numbers, up to 2 decimal places. Input The first line contains the first number. The second line contains the operator. The third line contains the second number. 5 + 0.70 Output A line containing a decimal/float containing two decimal places. 5.70Problem Description Write a JAVA program that will read all words from a passage and store them in BST. The program then will display a menu and perform the following task: Delete a word. If a word exists, update the word frequency otherwise print word not exist. Search a word. If a word exists, print the word and its frequency otherwise print not exist. Add a new word. If the word is in the passage, update its frequency. Print all words and their frequency in ascending order. Input The input of this program is a passage. A passage consists of N words and symbols. Symbols that will be considered in the passage are full stop (.), comma (,), question mark (?) and exclamation mark (!). The passage will have M unique words, where the M is less than or equal to N. Followed by the input code and the required data as specified in the sample input-output. Input Stay at home, stay safe and stay healthy. Practice social distancing at work and at home. Help reduce the risk of infection…26. IN PYTHON A shop needs to be stocked with items that can be purchased. This component isused to create different types of items that the shop stocks. It is also used toincrement the number of each item that it has in stock. Items may have expirationdates that are set when they are created, so this system will remove expired itemsfrom stock when requested to do so.• In this component a user is presented with an items main home screen withoptions/buttons to allow users to: “add items” and “view all items”.• The “add items” screen will take the following input: item name, item type(dropdown with the following options: luxury, essential, gift) and expirationdate. All fields are mandatory. An add button will add the item to a list. Whenan item is added it gets a unique id and the number of items (quantity) of thisitem type are incremented. A return button/option (if no GUI) will bring theuser back to the items main home screen.• The “view items” screen will display all items in stock…
- Write in Assembly Language Programming show code and submit output screenshot make it run with visual studio and other famous compilers. Q) write the programs in Assembly Language A) Write a program that calculates a car's gas mileage. The program should ask the user toenter the number of gallons of gas the car can hold and the number of miles it can bedriven on a full tank. It should then calculate and display the number of miles per gallonthe car gets.B. Write a program that asks the user to enter their monthly costs for each of the followinghousing-related expenses: rent or mortgage payment utilities phones cable The programshould then display the total monthly cost of these expenses and the total annual cost ofthese expenses.C. A bag of cookies holds 30 cookies. The calorie information on the bag claims that thereare 10 "servings" in the bag and that a serving equals 240 calories. Write a program thatasks the user to input how many cookies they actually ate and then reports how…Machine Problem:Write a Java or C++ program that will display the given menu: -----A Simple Library System----1. Add a Student2. Add a Book3. Display All Students4. Display All Books5. Search a Student6. Search a Book7. Borrow a Book8. Display Borrowed Books9. Return a Book (optional)10. Exit ➢ When 1 is chosen, ask the user to enter the student’s information(5-digit ID number,surname, first name, age, and sex)➢ When 2 is chosen, ask the user to enter the book’s information(5-digit book number,Title, Author’s name(Surname, first name), date of purchase, and status (available/notavailable))➢ When 3 is chosen, display list of all students(5-digit ID number, surname, first name,age, and sex)➢ When 4 is chosen, display list of all books(5-digit book number, Title, Author’sname(Surname, first name), date of purchase, and status (available/not available)➢ When 5 is chosen, ask the user if he wants to search the list by Surname or IDnumber. If record is found, display the corresponding…Python question please include all steps and screenshot of code. Also please provide a docstring, and comments throughout the code, and test the given examples below. Thanks. Implement function heads() that takes no input and simulates a sequence of coin flips.The simulation should continue as long as 'HEAD' is flipped. When the outcome of a flipis 'TAIL', the function should return the number of 'HEAD' flips made up to that point.For example, if the simulation results in outcomes 'HEAD', 'HEAD', 'HEAD', 'TAIL', thefunction should return 3. NOTE: Recall that random.choice(['HEAD', 'TAIL']) returns'HEAD' or 'TAIL' with equal probability.>>> heads()0 # TAIL is the outcome of the first coin flip>>> heads()2 # The coin flips were HEAD, HEAD, TAIL>>> heads()1 # The coin flips were HEAD, TAIL>>> heads()5 # The coin flips were HEAD, HEAD, HEAD, HEAD, HEAD, TAIL