Make a python program that reads a csv file and graph the annual sales variation of some vehicles. Allow the user to choose which vehicles to display on the graph (determine a maximum number of vehicles to display between 3 and 6). For example, you can define that it will display a maximum of 4 vehicles, ask the user which ones he wants to display and select 4 out of 10 options that you display to the user.
Q: Write a program that draws line segments using the arrow keys. The line starts from (100, 100) in…
A: Answer is given below .
Q: Write a program that will print a rectangle outline. Read a height and width from the user and print…
A: #include<iostream>using namespace std;//method to print rectangle outline//takes height and…
Q: Write a program that coverts a zip code to a bar code. The bar codes use large and small bars. We…
A: Since no programming language is mentioned we will use Java to implement solution to this problem.…
Q: Write a program (Lab8_ex4_ld.py) that generates a random even positive integer less than 10 and…
A: Generate random number from 1 to 5 and multiply with 2 and then we can print the series
Q: Can a python programmer write a program that takes a picture of its own source code and then hides…
A: Python is a general purpose, interpreted, high level programming language that is used for…
Q: programming Write a program using Matplotlib that will ask the user to create a pie chart with some…
A: It is defined as a powerful general-purpose programming language. It is used in web development,…
Q: Write a program that reads a sequence of input values and displays a bar chart of the values, using…
A: print ('******************')print ('************************************')print…
Q: Write a program that will assign a suitable name to a given RGB triplet. Your names must be a hue…
A: # # Write a program that will assign a suitable name to a given RGB triplet. Your names must be a#…
Q: Write a program that displays twocircles with radius 10 at location (40, 40) and (120, 150) with a…
A: Program: import javafx.application.*;import javafx.scene.*;import javafx.scene.layout.*;import…
Q: write a Java program that reads a grid of letters and a specified word from the user, counts how…
A: Here's the algorithm that needs to be followed :- Input all the necessary data Traverse through the…
Q: Create a program which the final grade is calculated from an input like the image. So with use of…
A: According to the information given:- We have to calculate the average grade from where the final…
Q: Write a program that displays a checkerboardin which each white and black cell is a Rectangle with a…
A: Program Plan: Import the necessary packages create a class check board extends application class…
Q: Write a program that can be used by a small theater to sell tickets for performances. The theater’s…
A: Introduction: In this question, we have to write a program that asked for the prices of each seat of…
Q: Write a program that animates a pendulum swinging,as shown in Figure . Press the up arrow key to…
A: Let us consider a program to create a pendulum motion by using the Up/Down arrow keys to increase…
Q: Write a program that displays a random coordinate in a rectangle.The rectangle is centred at (0, 0)…
A: The given criteria is written in Java programming language as follows, File name: “Sample.java”…
Q: Write a program that displays allthe numbers from 100 to 200, ten per line, that are divisible by 3…
A: Let us consider a java program that displays all the numbers from 100 to 200 ten per line, that are…
Q: Modify the SmallO.java program (image attached) so that it: a) Keeps and displays a running total…
A: The program reads complete line each time till the while...loop is not terminated explicitly by…
Q: Write a program that displays, ten numbers per line, all the numbers from 100 to 1,000 that are…
A: Program code: #declaring required variables num = 1 #for loop for i in range(100, 1001): #if…
Q: Write a program that can be used by MG-Train to purchase tickets. The train has three cars. Car #1…
A: Answer :
Q: Write a program that reads the user's first name and last name, and then use them to create a UPM…
A: NOTE : AS THE QUESTION IS NOT SPECIFIC ABOUT THE PROGRAMMING LANGUAGE TO BE USED , SO PYTHON HAS…
Q: Write a python program that takes a string as an input from the user and checks if there are any…
A: 1) Below is program that takes a string as an input from the user and checks if there are any groups…
Q: using java language Scanners are handy for reading input that is stored in a file. For this…
A: The below given Java program will obey the following rubrics: Including necessary data packages. In…
Q: Write a program that prints the number of palindromes in this file ..../englishWords (tips , open…
A: Note: since programming language is not mention we are providing solution in python programming…
Q: Write a Java program using at least one for loop that prints pictures of piles of counters of…
A: Given: Write a Java program using at least one for loop that prints pictures of piles of counters of…
Q: Write a program that prompts the user to enter thecenter x-, y-coordinates, width, and height of two…
A: Since, programming language is not mentioned in the question, we will answer this question in Java…
Q: Write a program to process a collection of the speeds of vehicles. Your program should count and…
A: The program includes instructions for solving the problems and outputs the results. The program's…
Q: write a program that reads a line of text and then displays the line, but with the first occurrence…
A: Given below program reads the first occurrence of “hate” and displays “love “ in place of “hate”.
Q: Write a JavaFX program that acts as a short survey a. Include 3 Questions i. Ask for favorite Color…
A: Actually, java is a object oriented programming language. It is a platform independent.
Q: Write a python program that takes a string as an input from the user and checks if there are any…
A: Start input # vowels stringvowel="aeiou" if any vowel encountered and there exists two more…
Q: Write a program that coverts a zip code to a bar code. The bar codes use large and small bars. We…
A: Solution:#Define the functiondef checksum(zip): #Declare the empty variable sum = 0 #Loop…
Q: Create a python program in Physics and Materials Science. In physics, chemistry, and materials…
A: In mathematics, percolation describes the connected-ness of random graphs, and hopefully some…
Q: Write a program in python that defines a function to illustrate 20 random polygons with 3-11 sides,…
A: program in python that defines a function to illustrate 20 random polygons : def draw_polygons():…
Q: To draw a rectangle with side length of 100 pixel on yo graphics screen, use the function * O…
A: Answer: rectangle(100,100,50,100)
Q: Write a program in Python using the OpenCV library that: A) Gets the name of a color image from the…
A: Answer: I have done code and also I have attached code as well as code screenshot.
Q: Write a program that displays, ten numbers per line, all the numbers from 100 to 200 that are…
A: Write a program that displays, ten numbers per line, all the numbers from 100 to 200 that are…
Q: Write a python code that can put 3 images randomly from in one white 200X200 background frame. The…
A: ans is given below
Q: Write a program that displays a tic-tac-toe board, asshown in Figure . A cell may be X, O, or empty.…
A: Since programming language is not mentioned in the question, we will answer this question in the…
Q: Write a program that plots the sine function in red and the cosecant function in blue. Hints: The…
A: The java program for only the first part of the question has been attempted i.e. the sine curve due…
Q: Given two strings ransomNote and magazine, return true if ransomNote can be constructed by using the…
A: def canConstruct(ransomNote: str, magazine: str) -> bool: if len(ransomNote) >…
Q: Write a program that displays the classic BINGO game, displays a BINGO card (5x5 square), and tests…
A: I have solve the problem in C++ code with comments for easy understanding :
Q: Write a python program that will print the numbers in a square shape matrix according to user…
A: required: python program to print a matrix in form of a spiral as given in the screenshot. all the…
Q: Write a program to allow the user to calculate the distance between cities on a map. Sounds pretty…
A: Since programming language is not mentioned in the question, we will answer this question in the C++…
Q: Write a Python program that prompts the user for a word. If the word comes between the words…
A: START INPUT word IF word > "apple" and word < "pear" then print "valid" ELSE print "out of…
Q: Write a program that can arrange a group of pebbles into its designated position. We have 4 types of…
A: import java.util.*;public class Main { public static String repeat(char ch, int val){…
Q: Please can you help me solve this problem in Python. Darkening an image requires adjusting its…
A: source code from images import Image # from operator import add def colorFilter(image, rgbTriple):…
Q: Write the python program using only the import CSV to display the following: Count and display the…
A: Here is the Code import csv import sys f = open('countrycities.csv') csvread = csv.reader(f) h = []…
Q: Write a program that displays all the numbers from 300 to 400, 5 per line, that are divisible by 3…
A: Since the programming language is not mentioned, so we'll do it in java. The programming methodology…
Q: Write a python program to read a string from the user. The pattern of the string should be as given…
A: Python Program :
Q: Write a python program for a pig game that has two players that alternate turns rolling dice. In…
A:
Make a python
Allow the user to choose which vehicles to display on the graph (determine a maximum number of vehicles to display between 3 and 6). For example, you can define that it will display a maximum of 4 vehicles, ask the user which ones he wants to display and select 4 out of 10 options that you display to the user.
Step by step
Solved in 3 steps with 2 images
- I need a python program that takes in an element and gives out another element found in the same row. For example, a .csv file contains the image attached. Input: Enter Month Number: (the user will input a number) 9 Output: "The profit from toothpaste during month 9 is 6100."for my python class I am to write a program to modify immages. the image format being used is a PPM. the PPM image format is encoded in human readable plan text. PPM image has two parts (1. header and 2. body PPM BodyBelow the header is the body of the PPM file. Each pixel has a red,green, and blue value as indicated by an integer number between 0 and255. For example, the pixel with a RGB value of (255, 0, 0) representsthe color Red.Example PPM ImageDownload the PPM image of the NY sky line. You can open theimage with a PPM image reader software such as Ifranview. The imagefile can also be opened as plain text in a text editor, which allows us toedit the image.Tasks:Write a program to modify a PPM image in the following ways:1. Negate the colors in the image2. Apply a high contrast to the image3. Apply a gray scale to the image4. Remove a primary color (red, green, blue) from the imageYour program should follow the steps below:1. Prompt the user to enter the input PPM file name, the…Write a Python program that prints the (x, y) coordinates for an M by N image (with M=10 and N=5). Write Python program that will ask the user to enter a lower and upper range values and a divisor. Then the program must print all the integer numbers in that interval (including both bounds) that are divisible by the divisor. Write Python program that will ask the user to enter positive numbers, to end the program the user will enter a negative number. When this occurs, print the average of the positive numbers rounded to 2 decimal places. Write a Python program that uses a for-loop to print all integers between 300 and 600 (inclusive) that are divisible by both 3 and 5.Print how many of these numbers were found.
- in python Write a program that will open a file .csv, read its contents and print them out. Your output should look like this: .csv (look the image) the file looks like these image First Last Age Wagejane Smith 21.00 21.50Jack Jones 20.00 19.50Edgar Martinez 22.00 22.75Zanab Sayegh 21.00 21.75Can you write a new code in Java language with the values I sent you, just like this output? There are two files named group1.txt and group2.txt that contain course information and grades of each student for each class. I will calculate each course average for each group and show in simple bar graph. Use "*" and "#"characters for group1 and group2, respectively. I will see the number -999 at the end of each line in the input files. This value is used for line termination and you can use it to verify that you have arrived at the end of the line. The averages of each group should also be calculated and printed at the end of the file. Group 1: CSC 80 100 70 80 72 90 89 100 83 70 90 73 85 90 -999 ENG 80 90 80 94 90 74 78 63 83 80 90 -999 HIS 90 70 80 70 90 50 89 83 90 68 90 60 80 -999 MTH 74 80 75 89 90 73 90 82 74 90 84 100 90 79 -999 PHY 100 83 93 80 63 78 88 89 75 -999 Group 2: CSC 90 75 90 75 80 89 100 60 80 70 80 -999 ENG 80 80 70 68 70 78 80 90 90 76 -999 HIS 100 80 80 70 90 76 88…Write a program in python that defines a function to illustrate 20 random polygons with 3-11 sides, each side ranging in length from 10-50, located at random position (x, y). Select a color at random from red, green, blue, black, or yellow. Produce the code and the output in .ipynb and .html
- Write a program that coverts a zip code to a bar code. The bar codes use large and small bars. We will use : as a small bar and | as a large bar. Each digit has its own bar pattern. 1 is :::|| 2 is ::|:| 3 is ::||: 4 is :|::| 5 is :|:|: 6 is :||:: 7 is |:::| 8 is |::|: 9 is |:|:: 0 is ||::: The barcode also includes a check digit. The final digit added to the bar code verifies the previous numbers are correct. To Determine the checksum: Add all the digits together Determine what needs to be added to make the total a multiple of 10 The bar code also always starts and ends with a large bar. This is used by the scanner to align the letter. Drexel's Zip Code is 19104 The check digit is 5. The sum of the digits is 1+9+1+0+4 = 15. To make 15 a multiple of 10, we need to add 5. The bar code will be |:::|||:|:::::||||::::|::|:|:|:| The majority of work in this problem is done by digit. It makes sense to store the zip code as a string, not as an integer. Write the function checksum(zip)…Write a program that coverts a zip code to a bar code. The bar codes use large and small bars. We will use : as a small bar and | as a large bar. Each digit has its own bar pattern. 1 is :::|| 2 is ::|:| 3 is ::||: 4 is :|::| 5 is :|:|: 6 is :||:: 7 is |:::| 8 is |::|: 9 is |:|:: 0 is ||::: The barcode also includes a check digit. The final digit added to the bar code verifies the previous numbers are correct. To Determine the checksum: Add all the digits together Determine what needs to be added to make the total a multiple of 10 The bar code also always starts and ends with a large bar. This is used by the scanner to align the letter. Drexel's Zip Code is 19104 The check digit is 5. The sum of the digits is 1+9+1+0+4 = 15. To make 15 a multiple of 10, we need to add 5. The bar code will be |:::|||:|:::::||||::::|::|:|:|:| The majority of work in this problem is done by digit. It makes sense to store the zip code as a string, not as an integer. Write the function checksum(zip)…Write a program that enables the user to drag thevertices of a triangle and displays the angles dynamically as the triangle shapechanges, as shown in Figure .
- Write a Python program that can create four different patterns of different sizes. The size of each pattern is determined by the number of columns or rows. For example, a pattern of size 5 has 5 columns and 5 rows. Each pattern is made up of the character P and a digit , which shows the size. The size must be between 2 and 9. The following shows the four different patterns for size 5. Pattern 1 5PPPP PPPP5 PPPPP PPPPP P5PPP Pattern 2 PPP5P PPPP5 5PPPP PP5PP PP5PP Pattern 3 PPP55 55PPP PPP5P P5PPP PP555 Pattern 4 555PP PPPP5 5PPPP P5555 5555P Your program should display a menu and ask the user to choose a pattern and a size. Your program must be robust; it must prompt the user to an option between 1 and 4 or 15 , and a pattern size must be between 2 and 9. Has to use at least 4 functions in which each function represents one pattern and has to use Switch, for, and while loopsWrite a program that displays five texts vertically, as shown inFigure a. Set a random color and opacity for each text and set the font of eachtext to Times Roman, bold, italic, and 22 pixels.can you solve this please? Adopt appropriate Java animation code to implement the video in the file “test4.wmv” and given that the parametric equation for a circle. x=r*cos(t) y=r*sin(t) with t in range [0, 2p] and r is the radius of the circle. (the circle goes in a loop like in the images, i did my best to try to explain it , please try to do it ) and here is a sample of what they want me to use : package javaapplication1;import java.awt.*;import java.awt.event.*;import javax.swing.*;import java.awt.geom.*;import java.util.Random;import javax.imageio.*;import java.io.File;import java.io.IOException;import java.awt.image.BufferedImage;import java.awt.event.*;import java.util.Calendar; public class JavaApplication1 extends JApplet { public static void main(String[] args) { JFrame frame=new JFrame(); frame.setTitle("hello"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JApplet applete =new JavaApplication1(); applete.init();…