PYTHON:
From this list:
lista=[['Harry_Potter 1 2345 0 1', 'The_Matrix 1 034X 4 1', 'Black_mirror 0 45XX 3 1', 'Avenger 1 04XX 2 1', 'Cinderella 1 36XX 0 1', 'Snow_white 1 36XX 0 1', 'Rapunzel 1 36XX 0 1', 'Anne_with_an_E 0 24XX 0 0', 'Invented 0 1267 1 0', 'Invented2 1 67XX 4 1']
How do I create a function that return the table below with for/while loops (excluding the movie type genre....row):
I tried to use for loop to extract each category into a list but I cannot locate the element after the movie name (e.g: 1 for Harry_Potter, 1 for The_Matrix, 0 for Black_mirror...)
Any help would be appreciated. Thank you!
PYTHON: From this list: lista=[['Harry_Potter 1 2345 0 1', 'The_Matrix 1 034X 4 1', 'Black_mirror 0...
PLEASE COMPLETE THE CODES. package javaprogram; import java.io.PrintStream; import java.util.ArrayList; import java.util.Scanner; /** * Movie class definition. * * @author David Brown * @version 2019-01-22 */ public class Movie implements Comparable { // Constants public static final int FIRST_YEAR = 1888; public static final String[] GENRES = { "science fiction", "fantasy", "drama", "romance", "comedy", "zombie", "action", "historical", "horror", "war" }; public static final int MAX_RATING = 10; public static final int MIN_RATING = 0; /** * Converts a string of...
Need help for C program. Thx #include <stdio.h> #include <string.h> #include <ctype.h> // READ BEFORE YOU START: // This homework is built on homework 06. The given program is an updated version of hw06 solution. It begins by displaying a menu to the user // with the add() function from the last homework, as well as some new options: add an actor/actress to a movie, display a list of movies for // an actor/actress, delete all movies, display all movies,...
QUESTION Z What is the output of the following code: int list[] = {1, 2, 3, 4, 5, 6}; for (int i = 1; i < 6; i++) list[i] = list[i - 1]; for (int i = 0; i < 6; i++) cout << list[i] << ""; 0 1 2 3 4 5 6 0 2345 61 0 111111 0 234 566
Need a program in python. Asterix and Obelix want to store and process information about movies they are interested in. So, you have been commissioned to write a program in Python to automate this. Since they are not very computer literate, your program must be easy for them to use. They want to store the information in a comma separated text file. Using this they would need to generate a report – see all items AND show a bar chart...
C++ Write a C++ program that user is able to choose the function of their wanting from this menu : Users will be asked to enter the movies they like along with the Genre and one Actor/Actress per movie. the entering process should look like this: Note that if the user enters yes, the program should start entering the next movie with its properties. Available movies must be entered as follow: The program should enter as many available movies as...
using Python --- from typing import List THREE_BY_THREE = [[1, 2, 1], [4, 6, 5], [7, 8, 9]] FOUR_BY_FOUR = [[1, 2, 6, 5], [4, 5, 3, 2], [7, 9, 8, 1], [1, 2, 1, 4]] UNIQUE_3X3 = [[1, 2, 3], [9, 8, 7], [4, 5, 6]] UNIQUE_4X4 = [[10, 2, 3, 30], [9, 8, 7, 11], [4, 5, 6, 12], [13, 14, 15, 16]] def find_peak(elevation_map: List[List[int]]) -> List[int]: """Return the cell that is the highest point in the...
Wrile He eva hions 2 3 4 S 2345 12 34$6 3-2-1 Sxetch each of the folowing wave ferm Evaluate 1-2 of 2
Define a function called cuentaVocales(palabra) that recive a word. The function returns: 1)Number of vowels and a list of their position. 2) The number of consonants and a list of their position. Using Python 3 . Problema 5 (18 puntos). Define una función llamada cuentaVocales(palabra) que recibe una palabra. La función regresa: 1) el número de vocales y una lista de sus posiciones, y 2) el número de consonantes y una lista de sus posiciones. Por ejemplo: In [51] cuentaVocales("numero")...
IN PYTHON Implement a function printSeqs() that accepts a list of name lst and prints the following sequences. The sequences are printed by the for loops found in the function. The information below shows how you would call the function printSeqs() and what it would display: Write a for loop that iterates through a list of names and print a greeting for each name in the list. Request from the user a positive integer n and prints all the positive...
I need help with certain questions. Please. 18. 4 points For each Rental, list the Rental ID, Rental date, customer ID, customer first name, customer last name, and count of disks rented; sort by Rental ID. Show the Rental date formatted as ‘mm-dd-yyyy.’ Hint: use a GROUP BY clause. 19. 4 points List the disk ID, title name, rating, format description, and fee amount for all copies rented in Rental 3; sort by disk ID. Show the fee amount formatted...