Kivy
Q: Create a file with the name car.py to store information about a single Car Class. The Car object…
A: Algorithm: START Create a Car class in a car.py file with name, vin, and make attributes. In the…
Q: The focus of this assignment is to create a class that displays ASCII an image stored in a 2D array…
A: Seed the random number generator with the current time. Define the image data as a 2D array of…
Q: Ggg
A: Hi and thanks for your question! Unfortunately it looks incomplete. Please resubmit the question…
Q: Need help with coding this in python using tkinter Write a GUI program to let the user enter a…
A: import java.awt.Dimension;import java.awt.FlowLayout;import java.awt.event.ActionEvent;import…
Q: A text file called hours.txt has been provided. Copy the text file into the folder of the project.…
A: Here is the c++ code to read the file and populate the arrEmp struct array.…
Q: Create a Python Gui Llike the photo here:
A: Answer: Python Tkinter GUI Source Code: from tkinter import * root = Tk()root.title("LabExer…
Q: f given a file that had an image, how would you read the file to get the image and change the size.…
A: import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import…
Q: JAVA PPROGRAM ASAP Please Modify this program ASAP BECAUSE IT IS HOMEWORK ASSIGNMENT so it passes…
A: The issue with your program is that it does not correctly handle files that do not exist. The break…
Q: using static System.Console; class AddBooks { } static void Main() { } Book book1= new Book ("Silas…
A: There are a few errors in the code you provided: In the Book constructor, the variables Title,…
Q: Write a program that creates a Date object, sets its elapsed time to 10000, 100000, 1000000,…
A: Code: public class Date { public static void main(String[] args) { long i = 0;…
Q: Q1. Use Python (GUI Programming Using Tkinter) to develop a "Student information form" You have to…
A: Introducing Tkinter : Although there are other GUI development alternatives in Python, Tkinter is…
Q: a program that demonstrates a label that includes a graphi es the string "Hourglass" and shows the…
A: 'Vb.net Program Code Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object,…
Q: write a java code in which user can open edit save and close a txt file. For this design a GUI…
A: import java.awt.BorderLayout;import java.awt.Container;import java.awt.event.ActionEvent;import…
Q: You are working in a doctors’ office and have been tasked with creating an application to maintain…
A: Java follows oops concept and is platform independent
Q: Write a C# program WritePatientRecords that allows a doctor’s staff to enter data about patients and…
A: Create a Patient class that contains fields for ID number, name, and balance owed to the doctor’s…
Q: Android question (In Java): Develop a piece of code that is responsible for executing a method…
A: Program ApproachDesign an AsyncTaskActivity Android Activity.Set the content view to R.layout in the…
Q: Create a project and class named Project3 in BlueJ. • Download the files "names.txt" and "wins.txt"…
A: This is an implementation of a Java program that reads the names of 10 hockey coaches from a file…
Q: Write a program that will add and remove the following name and phone number list. (List on image…
A: The class name is Contacts. So commands to run will be javac Contacts.java and then java Contacts.…
Q: When submitting this lab, submit a .java file called FormLetter, and create the following structure…
A: The JAVA code is given below with output screenshots
Q: a GUI using python langauge. I am trying to create a gui where data is stored in a external…
A: It is defined as a type of user interface through which users interact with electronic devices via…
Q: Write a program in Python that uses tkinter to display a window with 3 fields asking a user for…
A: Python provides the Tkinter toolkit to develop GUI applications. Now, it’s upto the imagination or…
Q: Create 5 objects of class Product, input its product code, name and quantity and write into the…
A: In C++, files are managed by utilizing classes ofstream, fstream, ifstream, in headerfile…
Q: Write (JAVA) methods for Browser button and Paste button.
A: Click to select the JFileChooser in the Navigator window, and then edit its properties in the…
Q: I'm trying to use: import java.io.File; in java using Visual Studio Code. I write this line: File…
A: Answer is given below-
Q: write a program in NetBeans a- Prepare an interface to provide the information required to create…
A: Answer: Java GUI Source Code(Netbeans): NewJFrame.java: /* * To change this license header, choose…
Q: Create a program that uses classes, polymorphism, and enums to monitor blizzards in Europe, with…
A: This particular question belongs to Computer Science and Engineering. Computer Science is an…
Q: Bagel
A: Answer is in given below:-
Q: The TidBit Computer Store (Chapter 3, Project 10) has a credit plan for computer purchases. Inputs…
A: CodeCode screenshotOutput
Q: Write a program that lets the user click ona pane to dynamically create and remove points (see…
A: Program Plan: Import Javafx Application library this library provides GUI for the Application.…
Q: #This is the class class ConvertCSVToJSON: def __init__(self, headings, ID, linesFromFile,…
A: There are several errors in your code. The corrections you need to make to successfully convert a…
Q: There is a csv file called Air_Quality.csv. It has 12 columns and 17,000 rows. One column titled…
A: We are given a same CSV file named "Air_Quality.csv" that contains air quality data for different…
Q: ValueError: invalid literal for int() with base 10: 's'
A: You can cast the input from string to int by specifying the variable enclosed in int() This can be…
Q: write a program that lets a user display and modify pictures, add 4 button so that clicking a…
A: The answer is given below:-
Q: Design a JavaScript+Jquery application to read the PAN Number and Name of an Employee. If the PAN…
A:
Q: When you are finished, submit both Main.py and Question.py.
A: question.py : #question.pyclass Question: #question is the question passed to…
Q: Create a simple Java application to manage student information. The application should have a…
A: Below is the java code to create a simple java application to manage the student information: -…
Q: Write a class name FileDisplay with the following methods: Constructor: takes the name of a…
A: import java.io.File;import java.util.Scanner;import java.io.FileNotFoundException;import…
Q: A class can be thought of as a/an for creating objects.
A: Required: A class can be thought of as a/an ___ for creating objects.
Q: Can you implement a module named inventory that will be responsible for managing the players…
A: Creating a Module Inventory: Create an empty folder Inventory using mkdir Execute Following…
Create a program that has a simple graphical interface using "Kivy", an environment cross-platform by Python.
When this program starts up, it will load a file (“users.csv”) that for each line will have a user and the SHA1 of the password, with the following format:
"user": "passwordinSHA1"
The graphical interface will have only two text fields, "username" and "password" (in plain text, but hidden when typing) and a "check" button. If the user exists and the password is correct, it will display an "OK" message. Otherwise, an "ERROR" message.
Step by step
Solved in 2 steps
- create an image file programmatically. Your image file should be called OnTheFlyPy.ppm and the code you write to create should be in a public static void makePPM() method defined in the provided Main.java class. Your OnTheFlyPy.ppm should be be 100 pixels wide and 100 pixels tall and the PPM header lines should be correct. The first two rows and last two rows in the OnTheFlyPy.ppm should be red (Red=255, Green=0, Blue= 0). The first two columns and last two columns in the OnTheFlyPy.ppm (except for the part that overlaps with the red pixels you created in the previous part) should should be blue (Red=0, Green=0, Blue= 255). The remaining pixels in your OnTheFlyPy.ppm image should be white (Red=255, Green=255, Blue= 255). Here is a picture of what your final image should look like: import java.io.*; public class Main{ public static void main(String[] args) { makePPM(); } public static void makePPM() { } }For the following program in phyton : Pay CheckWindow CostWrite an interactive program to calculate the cost of glasswork and metalstripping for rectangular windows. All windows, no matter what size, use thesame quality of glass and aluminum strips. Prompt the user for his/her name,age, length, and width of a window, then calculate the costs shown based on theinformation read in from the windowinfo.txt file which contains the materialstypes and costs (you cannot change this file at all). There is a discount on thetotal cost of 10% if the total area is over 1000 square inches, and 15% if it isover 1500 square inches.*Be sure to include a try/except and any and all string methods you might need*No conditional loops can be used at all**This is the info you will see in the text file, remember you mustread this in and store it:Glass: 80 cents per square inch (unit area)Aluminum: $1.25 per inch (unit length) This is the sample output. Write it to both the screen and a text file…In Java, create a user interface that has a top bar that includes a menu. The menu should have four items. When the user selects the first menu option, then the date and time should be printed in a text box. When the user selects the second menu option, then the text box contents should be written to a text file named "log.txt." When the user selects the third menu item then the frame background color changes to random color hue of the color green. The menu option should display the initial random hue each time selected for a single execution of the program. See https://www.w3schools.com/colors/colors_picker.asp When the user selects the fourth menu option then the program exits. Thank you
- Write a program that declares two LocalDate objects, jan31 and dec31, and assign values that represent January 31 and December 31 in the current year. Display output that demonstrates the dates displayed when one, two, and three months are added to each of the objects. An example of the program is shown below: First date 2021-01-31 Second date 2021-02-28 Third date 2021-03-31 Fourth date 2021-04-30 First date 2021-12-31 Second date 2022-01-31 Third date 2022-02-28 Fourth date 2022-03-31Create a C# program named ConferencesDemo for a hotel that hosts business conferences. Allows a user to enter data about five Conference objects and then displays them in order of attendance from smallest to largest. The Conference class contains fields for the following: group - The group name (as a string) date - The starting date (as a string) attendees - The number of attendees (as an int) Include properties for each field. Also, include an IComparable.CompareTo() method so that Conference objects can be sorted in order from least to greatest attendees. Your output for each conference should match the following: NAME Conference starts on DATE and has ATTENDEES attendeesJAVA PPROGRAM ASAP Please Modify this program ASAP BECAUSE IT IS HOMEWORK ASSIGNMENT so it passes all the test cases. It does not pass the test cases when I upload it to Hypergrade. Because RIGHT NOW IT PASSES 1 OUT OF 7 TEST CASES. I have provided the failed the test cases as a screenshot. The program must pass the test case when uploaded to Hypergrade. import java.io.File;import java.io.FileNotFoundException;import java.util.Scanner;public class Main { public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); String fileName; while (true) { System.out.println("Please enter the file name or type QUIT to exit:"); fileName = keyboard.nextLine().trim(); if (fileName.equalsIgnoreCase("QUIT")) { break; // Exit the loop when "QUIT" is entered } File file = new File(fileName); if (file.exists()) { int wordCount = countWords(file);…
- Create a new Python file in your project named FullName.py. In this module, create a class named FullName. When creating a FullName object, the client will pass a string for first name and a string for last name, which the constructor will assign to two attributes. Your class should have the following methods: __init__, __str__, and __gt__. __gt__ will compare two FullName objects using the following logic: If person A’s last name comes after person B’s last name alphabetically, person A is “greater than” person B. If their last names are equal, check their first names to see which is greater. Hint: The > and < operators are already overloaded for string objects, so your __gt__ method should be relatively simple. In your main.py file, demonstrate creating a few FullName objects and calling these methods on them.According to the below screenshot of an app, build an Android App that has a set of java files that implement an adapter with RecyclerView. The details of the java files you need to create are described below. The first java file should contain a data field which is in this case: Movie_name, Director_name, Production_year. The second java file contains MovieViewHolder. The third java file contains the MovieAdapter which is act as a bridge between the data items and the View inside of RecycleView. The Mainactivity java file will contain some samples data to display.C++ I have a code, but it doesn't work well. Please help me fix it. The code read 2 file, Punchcards.txt as a key (for password) and Tuple.csv as the password. Punchcards.txt --------------------------------------------------------------------------------Y 00000000000000000000000000000000000000000000000000000000000000000000000000000000X 000000000000000000000000000000000000000000000000000000000000000000000000000000000 100000000000000000000000000000000000000000000000000000000000000000000000000000001 010000000000000000000000000000000000000000000000000000000000000000000000000000002 001000000000000000000000000000000000000000000000000000000000000000000000000000003 000100000000000000000000000000000000000000000000000000000000000000000000000000004 000010000000000000000000000000000000000000000000000000000000000000000000000000005 000001000000000000000000000000000000000000000000000000000000000000000000000000006 000000100000000000000000000000000000000000000000000000000000000000000000000000007…
- Write a ONE java program to implement the following requirements: Design 3 classes: Shape8, Circle8, Square8 and 1 interface ComputeData as shown below. Shape8 is an abstract class ComputeData is an interface Italicized methods mean abstract methods Shape8 -color: String ComputeData + getDiagonal (): double note: diagonal = Math.sqrt(width*width*2) -area: double + Shape8(String color) + getArea ():double + setArea (area: double):void +getColor():String +compareto(o: Shape8): int +toString(): String Square8 -width: double Circle8 -radius: double | +Circle8(color: String, radius: double) +toString(): String + Square8( color: String, width: double) +toString(): String ..necessary methods note: area=radius*radius*Math.PI ·..necessary methods note: area=width*widthWrite a java application that handles a student report card. The application shall save the marks of computer science, math and English. Each subject has a total of 50 marks. If a student obtains at least 75/150 marks, an event will trigger and show a congratulation message on passing the exam. Otherwise, it will display an “F” grade.Write an application named, Lab14.java. This application will do the following: 1. Display an introductory message 2. Choose a random word from the file, wordlist.txt, and display it 3. Disguise the selected word, and display it 4. Ask the user whether to continue, i.e., whether to repeat steps 2, 3, and 4, or quit the application Once the user chooses to stop the application: 5. Display the total number of vowels hidden 6. Display the total number of consonants hidden 7. Display termination message The user will be asked whether to continue playing and will indicate that another game is to be played by answering ‘y’ or ‘Y’ in response to the question, “Want to play again?” asked by the program after displaying each chosen word and its disguised version. If the user’s response is any character other than ‘y’ or ‘Y’, the totals are displayed and then the application termination message is displayed. See examples below. About randomly choosing a word from the file, wordlist.txt, found on…