e. Administrator. Command Prompt c:\cxcrcisc>java Excrcisci0_26 "4+5" 4 + 5 = 9 C:Nexercise>java Exercise10_26 "4 + 5" 4 + 5 = 9 c:\exercise>java Exercise10_26 "4 + 4 + 5 = 9 5" c:\exercise>java Exercise10_26 "4 * 4 * 5 = 2 5" C:\exercise>
Q: Question (1): Write a program that asks the user to enter an integer greater than zero and store it…
A:
Q: Question (1): Write a program that asks the user to enter an integer greater than zero and store it…
A: I have given an answer in step 2.
Q: Implement the following: 1) Request an integer user input, password, from the console. 2) Use the…
A: Given:
Q: 1. First you should ask for the number of tasks to perform. 2. Then you should create a list of…
A: Program description: The python program prompts the user to enter a number of tasks as input to…
Q: using System; class Program { publicstaticvoid Main(string[] args) { int number = 1; while (number…
A: We can get three random numbers between 1 and 88 instead of one by running a loop three times either…
Q: PS: Please answer number 1 and 2 as they are all linked altogether with the subparts correctly.…
A: Answer: We have written a java program to shown the intentional error in it. and how to fixed the…
Q: Provide a complete explaination about this source code below: #include using namespace std; string…
A: Basic elements of a program: Header files : These are files which conation basic function to be…
Q: Which of these data types requires the least amount of memory? O double O float O short O byte…
A: Q10. The correct option is (d) One byte is 8 bits One double is 16 Bytes One float is 8 Bytes One…
Q: The file DebugFour2.cs has syntax and/or logical errors. Determine the problem(s), and fix the…
A:
Q: Your Name Week 4 PA User Entry of Age Please enter your age: twenty System. FormatException: Input…
A: Answer: Algorithms: Step1: we have taken user input from the of age Step2: First we have…
Q: P2a: Whats printed in main? int main() { char a = 'h'; char b - 't'; char c= 'x'; char d = 'w'; char…
A: OUTPUT will be: twix
Q: Customer Name: Salim ITEM PRICE Sales Tax+ VAT Sub-Total Fresh Milk 1.0 OMR 0.05 1.05 OMR Apple two…
A: Array to store information in C++ programming that is quite easy to implement
Q: 6. Write a program that reads in the radius and height of a cone and computes the volume using the…
A: According to bartleby guidelines we need to solve only first question please post remaining…
Q: QUESTION 10 Which is the output of the following code segment? int e = 5, f= 10; iffe <f|f<0)…
A: Code: using System;class HelloWorld { static void Main() { int e = 5,f=10;/*initialising…
Q: I need help Note: it`s Python Implement the following: 1) Request an integer user input, password,…
A: algorithm:- read a number if number==400 display password correct else display password…
Q: please i need confert this code to compiler using System; class HelloWorld
A: //Corrected program: using System;using System.Collections.Generic;using System.Linq;using…
Q: Which of the following statements accurately describe the C++ code except below ? int* arr =…
A: According to the information given:- I tried the above code to run. It is compiling with out error.
Q: 1. Create a console program that will perform the following: Ask the user to enter the pieces of…
A: Since programming language was not mentioned , so I chosen C++ I have provided C++ CODE along with…
Q: program: Name of the program must be WritingToIO; The program uses two variables named emplNum and…
A: In this program, we need to create a class WritingToIO, to save the program with name…
Q: Question (1): Write a program that asks the user to enter an integer greater than zero and store it…
A: Note: Since no programming language is mentioned. I am attempting this in python. if you need it in…
Q: A programmer created this code for a client: def divide (numerator, denominator): quotient =…
A: The Correct Answer is " OPTION - C " " C.) Programmer didn't test for a 0 value in the…
Q: ** 12.20 (Remove package statement) Suppose you have Java source files under the direc- tories…
A: Programming approach Importing the required packages in the program. Obtain the file path as…
Q: a) At what time will the statement S1 execute? b) At what time will L be updated? c) At what time…
A: Please check the step 2 for solution
Q: n java eclipse Assume a method called "readFile" exists that takes one parameter, a String…
A: Dear Student, To call a method in Java the following syntax is used - variable =…
Q: item. This operator can be used anywhere you can use an unsigned integer, including in mathematical…
A: Please find the answer below :
Q: please only write the code in your solution goes here part do not change anything else C++ #include…
A: In this question we have to complete the CoordTransform function to change the coordinated and the…
Q: Please make me a script or explanation on how this source code functions and what are the codes it…
A: The program is written in C++. Check the program screenshot for the correct indentation. Please…
Q: Starting address of the following aray named īVar is OXFECO7. [0] [1] [2] [3] 2 58| 6 iVar What is…
A: The array iVar contains:- int iVar[] = {2, 5, 8, 6} The memory address of iVar is 0xFEC07.
Q: Which line of code reserves space in memory and which line puts a value into memory? LINE 1: int x;…
A: Please find the answer below :
Q: What is the primary reason to use a constant rather than a variable? O Constant values cannot be…
A: Constant values cannot be moved into variables, but variables can be moved into constants.
Q: 8.1: FrequencyDesign and implement an application that reads an arbitrary number of integers that…
A: Take an array to store the numbers. Sort the array. Make a copy of the first number of an array. Use…
Q: Program10.java Write a Java program that prompts the user to enter a security code that matches a…
A: Step 1: Prompt and accept the security code from the user. Step 2: Store the pattern in the object…
Q: QUESTION 3 Given f(x) = x+ x2/2+ x3/3+. x"/n. Using do-while, write a program to compute f(x) for…
A: import java.util.Scanner; public class Q3 { public static void main(String[] args) { //create…
Q: First you should ask for the number of tasks to perform. Then you should create a list of tasks…
A: Program description: The python program is to prompt the user to enter the number of tasks to…
Q: 9. Write Swift code to do the following: Show your code and a screen shot of your output. Ask the…
A: print("Enter temperature in Fahrenheit : ", terminator: "")if let input = readLine() { if let…
Q: The files provided in the code editor to the right contain syntax and/or logic errors. In each case,…
A: Given program: File Name: “DebugTwelve4.java”: import java.util.*; public class DebugTwelve4 {…
Q: CHALLENGE ACTIVITY 9.3.2: Input parsing: Reading an entire line. Write a single statement that reads…
A: Given: We have to write a single statement that reads an entire line from string. Assign…
Q: In this project you will implement a program that simulates a simple text editor with the undo/redo…
A: Answer #include<stdio.h>#include<string.h>#include<stdlib.h>char data[100][100];…
Q: Finding Errors. Identifying the line/s containing errors that can cause the program not to run.…
A: The solution to the given problem is below.
Q: 13. What is Math.floor(3.6)? a. 3.0 b. 3 с. 4 d. 5.0 14. Which of the following assignment…
A: Math.floor(double a) :- it returns the largest double value that is less than or equal to the…
Q: using System; class Program { publicstaticvoid Main(string[] args) { int number = 1; while (number…
A: By using an array you can store more than one element. So here we use an array of randNo instead of…
Q: Whenever I create an input text file and run the application I get this error message.…
A: The code is perfectly fine :) The regex value is incorrect. That is all.
Q: The file DebugSix02.cs has syntax and/or logical errors. Determine the problem(s), and fix the…
A: DebugSix02.cs : // Program averages four numbersusing static System.Console;class DebugSix02 //C#…
Q: In Java, please comment and comment with output please This programming assignment involves…
A: The below program is written in Java and complete code is provided below:
Q: Suppose you have Java source files under the directorieschapter1, chapter2, . . . , chapter34. Write…
A: Programming approach Importing the required packages in the program. Obtain the file path as…
Q: 12.20 (Remove package statement) Suppose you have Java source files under the direc- tories…
A: Here is the solution of the above program:
Q: 1)Write a shell scriptthat calculate electricity bill.The rates of electricity per unit are as…
A: In first question error is there units condition must be <= 300 beacuse >=300 is covering in…
Q: 30. int a[5] = {1,2,3} %3D What is the value of a[4]? A. O 3 B. O 1 C. O 2 D. O 0 E. O Garbage Value
A: Given:
Calculator.java, to accept an expression as a
string in which the operands and operator are separated by zero or more spaces.
For example, 3+4 and 3 + 4 are acceptable expressions. Here is a sample run:
Step by step
Solved in 2 steps with 3 images
- solve in c++ Create an application for a supermarket owner. The owner would like to storeup to 50 items. Each item is represented by an ID and a price.The program should ask the user if he/she wants to do one of the followingtasks:1. Enter an item ID and price2. Retrieve the price of a specific item3. Display all items within a specific range of prices4. Delete an item5. Display all items6. Delete all itemsNote: The items should be stored in memory sorted based on price. The six tasks should be implemented as functions.The program should run continuously until the user presses 'e' to exitQ!: Code written using language A Code writen using language B Line l: x-3 Line 2: funcl 0(print 'x;} Line 3: func2 0{ Line 4: int x-9; Line 4: funcl; Line S: x-45) Line 4: funcl Line 5: func2 Line 1: 13 Line 2: funcl 0( print 'X;} Line 3: func2 ({ Line 4: int x-9; Line 4: funcl; Line S: x45} Line 4: funcl Line 5: func2 Line 6: funcl Line 6: funcl Output: Output No compilation errors. Runing: 3 Ruming: 3 3 Eror x is int and assigned a float value 45 Compare betweenlanguage A and language Bin tems of being 1) compiled vs.interpreted 2) imperative vs. declarative 3) object-oriented vs. non-object-oriented 4) weakly yped v srongly tyed 5) staticaly scoped vs. dynamically soped [12 pl)Topic : Multiple Selection Control Structure Instruction : 1. Save your java file name same as your class name in the coding. Example : Save as : Munirah_S3BT20.java Class name for coding : class Munirah_S3BT20 Problem Description : Maths Tuition Centre asked you as a senior programmer to develop a Java program. The program is to calculate the total fee to be paid for each student. Each student must pay RM10 for the learning module. Tuition centre also gives the discount based on total charge. Below are the charge rate provided by tuition centre: Hour Charge Discount First hour RM15 per hour 3% Next 5 hours RM10 per hour 7% 7 hours and above RM5 per hour 12% *Total fee will be granted with one-time discount only The program will allow users to enter student's names and total hours. Then, the program will calculate the total fees including the learning module and total charge. Begins your code with name, class, matric number, and problem description as a comment. Use 2 decimal point…
- Project Name: ActivitiesClass name: Dollar_Conversion Write a Java program that will accept theamount of US Dollar and convert to PhilippinePeso. The current exchange rate is 1 dollar is to 49.75pesos. Convert 50 dollars to peso. Display the converted value using three (3)decimal places. Using blueJInteger userValue is read from input. Assume userValue is greater than 10000 and less than 99999. Assign thousandsDigit with userValue's thousands place value. Ex: If the input is 26498, then the output is: The value in the thousands place is: 6 #include <iostream> using namespace std; int main() { int userValue; int thousandsDigit; int tempVal; cin >> userValue; /* Your code goes here */ cout << "The value in the thousands place is: " << thousandsDigit << endl; }Intro to Python Programming: ATM Application When you use an automated teller machine (ATM) with your bank card, you needto use a personal identification number (PIN) to access your account. If a user failsmore than three times when entering the PIN, the machine will block the card.Create the ATM Application.The application asks the user for the PIN no more than three times, and does thefollowing:• If the user enters the right PIN, the application should ask the user to choose anaccount (checking or savings), and display its balance.• If the user enters a wrong PIN and, if the application has asked for the PIN lessthan three times, it should ask for it again.• If the user enters a wrong PIN three times, the application should print amessage saying “Your bank card is blocked”.Assume that the user’s checking account balance is $1450.56 and his/her savingsaccount balance is $10. Also assume the user’s PIN is “9554”. SAMPLE RUNEnter your PIN: 1353Enter your PIN: 9555Enter your PIN:…
- Hello, I am having the most difficult understanding the solution to this problem: It is programming problem number 4 from C# 5th edition Tony Gaddis 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: B D A A C A B A C D B C D A D C C B D 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…Develop a C# program using Visual Studio that has the following interface: The program must allow the user to two numbers. When the compute button is clicked, the program must compute the sum of the two numbers and output it to a Message Box The program must also handle the FormatException and should output an error (in a MessageBox) if the user tries to enter a number in the wrong formatcreate 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…
- (3) Write a C# .NET Core Console App that asks the user to enter a number and then displays a string with the original number followed by the reverse of the number. For example, if the user entered 123 as an int you program should create a string "123321" and display it on the screenCommand line arguments are passed to int main(int argc, char** argv) as arguments argc and argv. You should assume that argc is at ebp+8 and argv is at ebp+12. This program is invoked from the command line as shown: ./program 5 7 The procedure named what is called from main, and returns to main with the value: Options: a) 11 b) 66Functionality Write Java program to convert numbers in one number system to others. Requirement Write Java program to implement functions to: convert binary number to decimal and hexadecimal number convert decimal number to binary and hexadecimal number convert hexadecimal number to binary and decimal number (You cannot use any Java build-in functions/methods to perform conversion) The program will repeatedly display the following menu: Binary to hexadecimal and decimal Hexadecimal to binary and decimal Decimal to binary and hexadecimal Exit User enters a number (1, or 2, or 3) to select one item from the meu to perform conversion: once a menu item is selected, user is prompt to enter a number (in string). If this number is valid, the program will convert it to other 2 number systems. Display these 3 values. For example, if menu item 1 is selected, user will be prompt to enter a binary number (in string). This number will be converted to decimal number and hexadecimal…