PYTHON: The command 6 % 3 will give you: a. 2 b. 1 c. 2.0 The command abs(-4,4) will give you: a. 4.4 b. -4 c. 0.4
Q: When using the 7th option, you should create a personnel using their name and surname. When using…
A: Code is given in next steps:
Q: write a java program which Create a Product object: “Laptop”, $799.99• Create a Product object:…
A: Below are the java program and its approach: - Approach: - Creating a class product and declaring…
Q: mand did you use? 2 - devel
A: please help me to answer the following question use ibm as 400 1 - develop a new Library called…
Q: In Python, we don't need to define the data type. So our objective is to ensure that 'a' has an…
A: a= 19/2 a= 19.0/2.0 a= float(19/2) a= 19.0//2.0 These all are belong to class float. if you want…
Q: Create a detailed Java code that implements a cipher, where the user would have to input any string…
A: To create a detailed Java code that implements a cipher plaintext: It is the input meesage given by…
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: 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: Chap 5 In Class Exercise • Create a Java Project called C.5EX • Create a driver program called Order…
A: Please refer below code and screenshot for your reference: import java.util.*;public class…
Q: Create a Java program Please kindly attach output SS. The pandemic has caused a global suffering.…
A: Given: The pandemic has caused a global suffering. Cooperate sectors, social lifes, and…
Q: The following membership functions are defined based on the speed of the athletes. (0.9 1 1.01 10 15…
A:
Q: I need a prompt and GUI that allows the user to log in as a teacher, the password for the teacher…
A: package GUI; import java.awt.*;import java.awt.event.*; import javax.swing.*; // Defines class…
Q: import java.util.Scanner; import java.io.FileWriter; import java.io.IOException; // Import the…
A: please refer below code and output : Language used is JAVA: import java.util.*;import…
Q: Write a Java program that prompts the user to enter a password that matches a specific pattern using…
A: Answer: Algorithms: Step1: we have initialized the dc, sc, upc ,upcc, loc and pas all the variable…
Q: make a script explaining the python code line by line class Course: course_count = 0 def…
A: Please refer to the following step for the complete solution to the problem above.
Q: Shared library
A: libjpg.so.8.0.3 is probably a
Q: Administrator: Command Prompt C:\exercise>java 4 + 5 =9 C:\exercise>java Exercise10_26 "45" 4 + 5 =9…
A: Introduction Java class: The classes & objects in Java, along with their characteristics &…
Q: In the first part you will have to write a pseudo code (or in a language of your choice) with your…
A: Answer: I have given answered in the handwritten format in brief explanation
Q: how to fix this error code
A: Required:
Q: Write a complete C# app to prompt the user for the double radius of a sphere, and call method…
A: using System;class HelloWorld { static void Main() { //asking user to enter Radius…
Q: write a code for a rasperberry pi that allows Brightness Controlled Led using photo resistor here…
A: For python, we need to use RPi.GPIO library. import RPi.GPIO as GPIOimport…
Q: How could i go about checking wheather the input information is contained in the user.json file ?
A: --> I have written a Javascript code to validate your fetch from JSON data…
Q: Create a detailed Java code that implements a cipher, where the user would have to input any string…
A: To create a detailed Java code that implements a cipher plaintext: It is the input meesage given by…
Q: Chapter 9. PC #14. Word Separator (modified *** Read carefully ***) Write a program that prompts the…
A: The scope of the question pertains to the behavior and output of the provided Java program,…
Q: Write program: prompt user to enter 2 double numbers which are the radius of 2 circles. Save values…
A:
Q: 1. Naming agreement: In order to insure compliance of all projects done for this course with my…
A: Answer: Step 1 Here our task is to create 2 classes that will manipulate some geometrical objects.…
Q: Writing the following method to select a shape with Java code? SELECT [any shape number from 1..n]…
A: For selecting from a given list, we use switch-case. Switch-case uses the case type for checking the…
Q: (1) Write Java program to implement functions to: a. convert binary number to decimal and…
A: Required java code is given below :
Q: Program 4 - Student account Code the following program in Java. Only submit the source files. There…
A: We will solve the given problem in Java Language.
Q: 6. A cube has a side of 21 cm. a) Determine the radius of a sphere that has the same surface area as…
A: Cube has a side of 21cm a) the radius of sphere r is:= 4(pi)r^2=> 6*21^2 r^2=6*21^2/4(pi)…
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: Based on the given UML create the classes and upload your py file. pick an interest rate for your CD…
A: Basically, a scenario is given in the above UML diagram which is implemented in python. A class…
Q: Create a detailed Java code that implements a cipher, where the user would have to input any string…
A: To create a detailed Java code that implements a cipher plaintext: It is the input meesage given by…
Q: Write an Arduino sketch (code) along with the comments to display the temperature data from a…
A: Introduction: Arduino supports multiple platform languages. We can use functions from C, C++ and…
Q: .io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.util.Scanner;…
A: The main problem with the provided program is its logic to format the sentences. The current…
Q: JAVA Create a program that allows a teacher and student login which grants access to the grade…
A: Note: Program written contain all the modules and file I/O, but on online compiler they cannot be…
Q: Extract e-mails and passwords from several .txt files from a path to the folder to be searched and…
A: The question presents a scenario where you need to extract email and password pairs from several…
Q: Suppose that we removed the line labeled #11, that is the call to Foo. __init_ from within Bar.…
A: The given below program is in python with the as it is given with some few changes.
Q: gram, please show the output of the program. Thank youuu!!
A: Program Approach: 1- Import all the necessary packages like io. util, etc.2- Create the object of…
Q: 3. Write a Java program that displays the files name from desktop which has [txt] or [docx]…
A: Please find the answer below :
Q: The statement y = round( abs (-14.8)); disp(y), displays one of the following on the -:command…
A: y=round(abs(14.8)); print(y) which option is correct select a one option
Q: Create a detailed Java code that implements a cipher, where the user would have to input any string…
A: To create a detailed Java code that implements a cipher plaintext: It is the input meesage given by…
Q: The command to enter your UCF GPA: gpa input ("Enter GPA") Your GPA can be between 0.00 and 4.00.…
A: This approach ensures that the entered GPA is within the specified range and provides feedback to…
Q: Create an application of currency converter as given below using Java. Pl apply currency conversion…
A: The following code to create currency converter using java programing
Q: I need help implementing this Add file i/o to my program Any help and or assistance would be…
A: #include <stdio.h> #include <stdlib.h> #include <string.h> #define EMPS_SIZE 20…
PYTHON:
The command 6 % 3 will give you:
a. 2
b. 1
c. 2.0
The command abs(-4,4) will give you:
a. 4.4
b. -4
c. 0.4
Answer:
Step by step
Solved in 2 steps with 1 images
- Computer Science Write a script called divisors that prints all the positive divisors of a positive integer specified by the user. The user may specify the integer in one of two ways: As a command-line argument, or When prompted by the script. The script should only print the integers if the user's number is in the range 1 to 100 (inclusive). Your script will first check to see if the user entered a positive integer in the correct range on the command line. If so, the script will print the positive divisors. If not, your script will prompt the user for the number. If the user does not enter a number from 1 to 100 (inclusive) when prompted, your script should only output an error message indicating that the user's number is not in the correct range. Here are four sample runs. Your script should run as follows (what I enter is in bold): oksun8$ divisors Please enter an integer from 1 to 100: 3 1 3 oksun8$ oksun8$ divisors 24 1 2 3 4 6 8 12 24 oksun8$ divisors 2999 Please enter an…Using Data Encapsulation in Python, give the output of the Pseudocode: class Computer: def __init__(self): self.__maxprice = 900 def sell(self): print("Selling Price: {}".format(self.__maxprice)) def setMaxPrice(self, price): self.__maxprice = price c = Computer() c.sell() c.__maxprice = 1000 c.sell() c.setMaxPrice(1000) c.sell()First you should ask for the number of tasks to perform. Then you should create a list of tasks with that many entries. Ask the user if they have completed each task. Report the tasks that have yet to be completed. linux[0]$ python3 hw3_part1.py How many tasks do you have? 3 Enter next task: Eat Lunch Enter next task: Feed Pupper Enter next task: Write Homework Here are your tasks: 1. Eat Lunch 2. Feed Pupper 3. Write Homework Have you completed "Eat Lunch"? (yes/no) no Have you completed "Feed Pupper"? (yes/no) yes Have you completed "Write Homework"? (yes/no) no A remaining task is Eat Lunch A remaining task is Write Homework linux[1]$ python3 hw3_part1.py How many tasks do you have? 0 That's either negative or zero
- Select all true statements import java.io.File; import java.util.Scanner; public class DirectorySize { public static void main(String[] args) { // Prompt the user to enter a directory or a file System.out.print("Enter a directory or a file: "); Scanner input = new Scanner(System.in); String directory = input.nextLine(); // Display the size System.out.println(getSize(new File(directory)) + " bytes"); } public static long getSize(File file) { long size = 0; // Store the total size of all files if (file.isDirectory()) { File[] files = file.listFiles(); for (int i = 0; files != null && i < files.length; i++) { size += getSize(files[i]); // Recursive call } } else { // Base case size += file.length(); } return size; } } a. The length() method returns the size of a file. b. The listFiles() method returns an array of File objects and excludes each directory.…33Hello,the code does work but it seems there is an error with the system i am using.
- Extract e-mails and passwords from several .txt files from a path to the folder to be searched and rewrite them in a symbolic .txt file : in Python code (do it in Visual Studio Code and run it)Example: hey... email: username+123@example.com, password: 627hsjwu* these are my company's credentials... See you later Now I want to put in a result.txt the email and the password separated by the symbol :JAVA PROGRAM ASAP Please give me a new program even ASAP BECAUSE the program down below does not pass all the test cases when I upload it to hypergrade. I have provided the correct test case as well as the failed test case as a screenshot. It must pass all the test cases because it says 0 out of 2 passed when I upload it to Hypergrade. The program must pass the test case when uploaded to Hypergrade. Thank you Chapter 9. PC #16. Morse Code Translator (modified *** Read carefully ***) Morse code is a code where each letter of the English alphabet, each digit, and various punctuation characters are represented by a series of dots and dashes. Write a program that asks the user to enter a file name containing morse code, and then converts that code to text and prints it on the screen. The Morse code table is given in a text file morse.txt. When printing resulting text, display one sentence on each line. There should be no extra spaces at the beginning and at the end of the output.…1. ponder_orb_density One of the most important questions to ponder about an orb is: what is the density of this orb? Here we will assume a spherical orb and calculate (ponder) its density as a function of its radius and mass. Recall that density is mass/volume, and recall (or look up) that the volume of a sphere is 4/3 * pi * r3. Sample calls should look like: >>> ponder_orb_density(1, 1)0.23873241463784303>>> ponder_orb_density(1, 10)2.3873241463784303>>> ponder_orb_density(2.5, 200)3.0557749073643907
- In the python code below, Allow the user to chose which manner they want the results displayed. A GUI window, Print on-screen or Save to text file import randomclass Circle(): def __init__(self, radius=1.0): self.__radius = radius self.__area = self.find_area() def get_radius(self): return self.__radius def set_radius(self, radius): self.__radius = radius def find_area(self): self.__area = 3.14159265 * self.__radius ** 2 return self.__area def display(self): self.find_area() print('Circle, Area of Circle: {:.2f}'.format(self.__area))class Square(): def __init__(self, side=1.0): self.__side = side self.__area = self.find_area() def get_side(self): return self.__side def set_side(self, side): self.__side = side def find_area(self): self.__area = self.__side ** 2 return self.__area def display(self): self.find_area() print('Square, Area of Square:…Java Program ASAP ************This program must work in hypergrade and pass all the test cases.********** The text files are located in Hypergrade. The program down below does not work in Hypergrade and does not pass the test cases. Please modify it or create a new program so when I upload to hypergrade it passes the test cases. Thank you! For Test Case 1 first print out Please enter the file name or type QUIT to exit:\ then you type text1.txtENTER and it displays Stop And Smell The Roses./n there needs to be nothing after that. For test case 2 first print out Please enter the file name or type QUIT to exit: then you type txt1.txtENTER then it reads out File 'txt1.txt' is not found.\n Then it didplays Please re-enter the file name or type QUIT to exit:\n after the test file is not found. then you type in text1.txt and it displays stop and smell the roses.\n. For test case 3 first print out Please enter the file name or type QUIT to exit: then you type text2.txtENTER and it…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…