Task 4: Amazon wants to find out the most and the least bought items. It likes to increase the sale of least bought item by bundling it with the mos bought item and ready to give special 10% discount for this bundle. The output should be the one as below. In [30]: 1 from IPython.display import Image 2 Image(filename = 'Screenshot_67.jpg") out[30]: Nest bought Iten is StockCode 21731 with 458 in purchased quantity. Least bought iten is StockCode 21165 wdth 1 in purchased quantity overall.These tvo itens can be bundled and previde 1e discou nt on this bundle to increase the sale of Stackcode 21166 In [ ]: 1 #HOw to get the Nost bought items in the stockCode and how many was it in pythor
Q: Excel File l/O The attached Distances xlax file contains a spreadsheet with the pairwise distances…
A: The language was not mentioned so I did it in matlab.
Q: CLIP PERMANENTLY DELETES ALL OF THE CLIPPED LINES. (T/F)
A: I have given an answer in step 2.
Q: Write .m file to create 3D rose flower with background as red and rose color as cyan. Attach code…
A: Write Matlab Code to create a 3D rose flower in Matlab having red background color and color of…
Q: Which PYTHON statement prints the last field in each row of the csv file? a. with…
A: Which PYTHON statement prints the last field in each row of the csv file? Answer: with…
Q: 4 (x), h,(x), h,(x) are defined as e* -e* e* +e¯ e* -e -x e* h, (x) = 2 -, h,(x) = = (x)Yy° e* +e¯*…
A: numpy need to be used to solve this ploblem.
Q: 2. In the attached file, you will find the oil production for all countries that produce more than…
A: We have to use a pie chart and bar chart to show the percentage of production for each of them.…
Q: You have a backpack that can carry at most 15 kg of stuff (following image). There are ten boxes of…
A: You have a backpack that can carry at most 15 kg of stuff (following image). There are ten boxes of…
Q: 02 - Rectangular Prisms Prompt the user for three integers representing the sides of a rectangular…
A: EXPLANATION: - Rectangular Prism Volume: length * width * height; Surface Area: 2 * (length *…
Q: 22-When adding numbers to the pages of the document, we use the path (insert-page numbers). carrect…
A: DOC files use a . DOC extension and differ from text files.
Q: For each of the exercises below, assume you are starting with the following people array. and use…
A: As per the Guidelines of Bartleby we are allowed to solve 3 subparts please post other parts…
Q: 8-To search for a missing word we use the path (page Home - Search). O right O wrong 9-To replace a…
A: 8) To search for a missing word we use path Page Home -> search (used for web search) 9) To…
Q: I am trying to make a code that creates a PPM file that outputs the same image that is in the…
A: All you're doing is constructing a character string like this: 1 0 0 0 1 0 0 0 1 1 1 0 1 1 1…
Q: Excel problem: in an excel file, use the following numbers ( 1,4,9,16,25,36,49,64,81,100). In the…
A: First we have to write the number in a column in the excel sheet Then we have to calculte the…
Q: Use the python CSV module's csv.DictReader() approach to read the data from the file. Read the…
A: The programming language Scheme is multi-paradigm. It's a Lisp dialect that allows you to write in…
Q: in m.file when code run, it must Create a flower and put a leaf right next to this flower. Pick a…
A: It is defined as a script, which contains a set of commands exactly as you would type them at the…
Q: Write an R program, using the corrgram library, to plot the Average_Daily_Traffic_Counts.csv…
A: 5. answer import matplotlib.pyplot as plt import numpy as np import pandas as pd data =…
Q: 1-) I was able to come halfway through my project I need help for the other half 2-) You…
A: Given: To write a C++ program to realize the game of chance as a C ++ console application. Note: As…
Q: import image def rotate(pic): '''Returns an image rotated 90 degrees''' pass #You can leave this or…
A: Note: Please maintain proper code spacing (indentation). And importing all necessary…
Q: Below is the work I have done so far that is required from the image but I have not been able to…
A: #include <stdio.h> #include <stdlib.h> typedef struct{ char fname[21]; char…
Q: 1.In Microsoft Publisher, ruler guides are used for _________________________ objects in the…
A: Microsoft publisher is an editing software developed by Microsoft which provides various page layout…
Q: in phython langauge: Write a program which reads the number of blocks the builders have,and outputs…
A: Program approach: Inputted blocks from user. Initialized height with 0 and initialized raw with 1.…
Q: 02 - Rectangular Prisms Prompt the user for three integers representing the sides of a rectangular…
A: Note: Programming Language not mentioned in code. Java is chosen as a programming language.…
Q: Please Assist me to complete the Python Code: Data frames can be subset by a chosen value using…
A: Here below i am writing to print the shape of new data frame:…
Q: Python expert needed just to insert flag of country from tkinter import* w=Tk() w.title("North…
A: Note: edited code is given below. Please change the following lines, with your image location in…
Q: PerfectPaint, a program for creation and manipulation of images. So far, she has created an image…
A: PerfectPaint, a program for creation and manipulation of images. So far, she has created an image…
Q: File Home Insert Page Layout Formulas Data fx [ e Insert AutoSum Recently Financial Logical Text…
A: To perform logical, mathematical and statistical operation in excel some formula is used, that is…
Q: The grayscale2 function is already written, you just need to write inside it how to convert an image…
A: The complete code with convert logic is given below.
Q: 02 - Rectangular Prisms Prompt the user for three integers representing the sides of a rectangular…
A: Java Program: //importing Scanner class import java.util.Scanner; //Main class public class Main…
Q: Write a stylesheet (person.xsl) file to produce the following output Personal Information Name: Amy…
A: The Code is written in HTML and CSS. Please check step 2 for the program.
Q: dataframes using python . For example I have a student grade csv table, first, I need to read the…
A: We need to read in the data frame after that we need to perform logical indexing.
Q: Create 1000 x 1000 random square matrix, and save it into a CSV file. Then, read the CSV file and…
A: Code: import numpy as npimport pandas as pd # generating 1000x1000 random matrix and converting it…
Q: Need a different function in python that reads the data file and round the code below (see attached…
A: The function readFromFile() reads data line by line. Each line is stripped of any new line character…
Q: def get_line(board: str, dir: str, col_or_row: int) ->
A: <?php// PHP program to check whether a given // tic tac toe board is valid or not // This matrix…
Q: Please impelement one of the point processing techniques below. Use phython3 /Jupyter Notebook.…
A: Lets see the solution in the next steps
Q: Extend the program to display which player has the highest batting average (hits / atBats) and that…
A: Program description: C++ program will read an input file, stats.txt that contains the name, number…
Q: 6. Display catcnt.txt, but with all lines in reverse order (the last line first).
A: Since you have asked multiple question, we will solve the first question for you. If youwant any…
Q: Create 1000 x 1000 random square matrix, and save it into a CSV file. Then, read the CSV file and…
A: Define libraries numpy and pandas. Define variable array and create a random integer matrix of size…
Q: I need a python program that takes in an element and gives out another element found in the same…
A: In this question, we have to write a python program in which we have to read csv and perform…
Q: import image def draw_border(pic): '''Returns an image with a black border around it''' pass #You…
A: Actually, python is a easiest programming language. It is a dynamically typed programming It has a…
Q: Write a function that counts how many concentric layers a rug has. Examples countLayers ([ "АААА",…
A: function countLayers(rug) { let layerCount = 0; let layerTracker = []; for(let i = 0; i <…
Q: Task 3: In this problem set we want to make the real-world images look like they are genuinely from…
A: In This program We are going to learn images filtering and how we can turn a images into cartoons…
Q: How to search through the rows of a CSV file with thousands of data and select the rows that has a…
A: import java.util.*;import java.io.*;public class Main{ public static String…
Q: import image def modify(pic, m): '''Multiply each pixel by m to darken or brighten an image''' pass…
A: Pixel:- In digital imaging, a pixel, pel, or picture element is a hypothetical, theorized square…
Q: Write an app/program to scan through a given webpage, and display a single consolidated top 10…
A: The task is to count the most frequent words, which extracts data from word pairs(two words in the…
Q: You need to read data from input.txt file, store it into array of items (called items) and write it…
A: Code: //Header file section #include <iostream> #include <iomanip> #include…
Q: 2. In the attached file, you will find the oil production for all countries that produce more than…
A: Code: X = [11567000,10503000,10225000,4656000,4260000,3969000]; X=[X…
Q: please create a python script for the practice exercise with an explanation. I provided my starter…
A: Program to generate emailId and temporary password given a students' full name for funnyville high…
Q: Submit your code solution in .asm files. Please also submit a screenshot showing that you ran the…
A: Answer is written below ?
Trending now
This is a popular solution!
Step by step
Solved in 3 steps
- Now, using your program from #1, put double quotes around the variable in your print statement. In my example it would be number. Save it as a new file, yourName_LAB2_2. py. , and run the program again. Your code should look like this: print(“My favorite number is “, "number") Capture the output and save it as an image file named yourName_LAB2_output2.jpg. Do you see the different between the two outputs? Submit the .py file and both .jpg files. In your submission box on Canvas, include a short explanation on why the two outputs are different.22- When adding numbers to the pages of the document, we use the path (insert- page numbers). correct Error 23- In order to convert the document in the form of consistent columns, we use the path (insert -columns). carrect Error 24- To insert a cover page for the file we use the path (insert cover page). correct Error 25- For the footer we need the path (Layout Page - Insert - Footer). correct Error 00Assume that the 52 images for a deck of cards are in a DECK folder, with the file naming scheme .gif. Thus, for example, the image for the Ace of Hearts is in a file named 1H.gif, and the image for the King of Spades is in a file named 13S.gif. Furthermore, there is an image file named B.gif for the backside image of all the cards. This will be the card’s image if its faceup variable is False. Using the DiceDemo program as a role model, write a GUI program that allows you to deal and view cards from a deck. Be sure to define a helper method that takes a Card object as an argument and returns its associated image, and remember to turn the cards as you deal them.
- Powerpoint VBA code that does this: If the "Add List of Slide Titles" Checkbox is checked, a list of all of the slides Titles should be added to the new slide. (This is on Shapes(2) on the new slide.) ***The answer should be VBA code***Computer Science I imported the file from Excel and made a csv file, but when I tried making it a dat file, it didn't recognize the csv file. I know you probably don't have the data file (you might not need it), but if you could help with the commands, I would be grateful. Thank you. Open the "Goals Data" file. Save the "Data" sheet into its own *.csv file. Import the *.csv file into an R data frame. Name the data frame "Sales." Summarize the "Sales" data frame using an appropriate R command(s) to ensure that the data was imported. Perform the following commands to load the "Export Tables to LaTeX" or "HTML" package: install.packages("xtable") followed by: library("xtable"). Using an appropriate command from the xtable package, export Sales to an *.html file. Name the file "Sales.html."x = zeros(uint8(5,5)); for i = 1:5 for j = 1:5 a = 5/i; x(i,j) = 255/a; end end Which of the following best describes the black and white image x? 1. The columns of x will get lighter from left to right 2. The rows of x will get lighter from top to bottom 3. The rows of x will get darker from top to bottom 4. The columns of x will get darker from left to right
- Fulfill the test case in the provided notepad++ image Note: do not replace anything in the notepadd++ image Here is "w04c_ans.py" follow the function constrainst in the provided image and make sure to run "w04c_test_public" with the same folder with "w04c_ans.py" and check if the test case is fulfilled def print_frame(): pass def is_valid_num(): return False def main(): while True: num_frames = input('Enter number of frames from 2 to 10 inclusive: ') if not is_valid_num(num_frames): print('Entered input is either not a number or is not between 2 and 10 inclusive. Please try again.') continue num_frames = int(num_frames) print_frame(num_frames) break if __name__ == '__main__': main() This is not a graded assignment. I just need some helpIn Python: The Broadway dataset contains data for Broadway shows' Capacity (percentage of the theatre filled) and Gross Potential (maximum amount that can be earned) for multiple shows in a specific month and year. Given a CSV file name read from user input, write a program that performs the following tasks: Read in the CSV file as a dataframe. Insert a new column labelled "Size" at the end of the dataframe. The "Size" column contains values in column "Gross Potential" divided by 2. Output the dataframe using the print() function. Create a scatter plot of "Gross Potential" vs "Capacity" with the following marker styling parameters: markers: 'x' color: orange size: values in column "Size" Add the x-label ("Capacity", fontsize = 10), y-label ("Gross Potential", fontsize = 10), and title ("Gross Potential vs Capacity", fontsize = 16) to the figure. Add gridlines to the figure using '--' as linestyle. Save the figure as output_fig.png. Click here to view Input and Output ExampleUPVOTE WILL BE GIVEN. Please take a screenshots and copy paste here the codes. Use https://www.onlinegdb.com/ for coding. Create a Pseudocode and Program in the following problem : Personal Information (You may type any informations) A. Design a program that displays the following information: • Your name . Your age • Your address, with city, and ZIP • Your telephone/cellphone number • Your college major
- Create a data entry JFrame to store student profile using file input and output. Allow student to type the name and age in two JTextField(s), and the students need to choose gender for male or female using two JRadioButton(s). When the user clicks a JButton, write the record to a file named profile.txt. Read data from the textfile to find how many female and male in the class. After the calculation, update textfile named female.txt with current number of female and textfile named male.txt with current no of male. On top of that, capture time and date of student registration using date format(). Refer to Figure 1 below as a reference. Name *student data - Notepad File Edit Format View Help Age Ali 24 male Siti 18 female Male female Abu 20 male Chin 18 male Rashika 26 female Save Figure 1: Gui.java and profile.txtWhat function is required after you have made changes to the pixels[] array. updatePixels() loadPixels() accessPixels() createPixels()Write a C program called: ./database CMD OPT1 OPT2 OPT3 OPT4 Where: ● CMD is a command that performs a specific operation. OPTi are optional arguments depending on CMD. The source file is called: database.c The executable file is called: database The CSV file is called: database.csv The argument CMD can have the following values: SHOW DELETE ADD displays all the records from the database. - OPT1 = ID, that record in removed from the database. - OPT1=ID, OPT2=NAME, OPT3=AGE, OPT4=GPA, a new record with these fields are added to the database. The structure of the CSV file is: ID, NAME, AGE, GPA Spaces can exist between the commas, but are not required. In other words, your program should handle both cases. If a space comes after or before a comma, then it is not considered to be part of the field. For example, database.csv could look like this: 10, bob, 18, 3.5 15, mary, 20, 4.0 5, tom, 17, 3.8 Notice the record "tom" has spaces before and after some of the commas. These spaces are not…