Java Program:
Make an application called that stores at least four different movies, a showtime (such as "11:00am"), and the movie rating (such as "PG-13") in a two-dimensional array. Movies with multiple showtimes should be in the 2d array multiple times, once for each showing. Prompt the user for a movie name and output all showtimes for that film, or a message indicating it was not found.
Java Code:
import java.util.*;
public class Main
{
public static void main(String[] args) {
String
movies[]={"batman","spiderman","superman","ironman"};
String
ratings[]={"PG-13","UA-12","SN-56","NS-65"};
String shows[][]={{"11:00
am","02:00 pm"},{"09:00 am","04:30 pm"},{"03:00 am","04:00
pm"},{"06:00 pm","08:00 pm"}};
Scanner sc=new
Scanner(System.in);
System.out.print("Enter movie name
: ");
String
movieName=sc.nextLine();
int i;
for(i=0;i<movies.length;i++){
if(movies[i].toLowerCase().equals(movieName.toLowerCase())){
System.out.println("Show Times :
"+Arrays.toString(shows[i]));
break;
}
}
if(i==movies.length){
System.out.println("Movie Not
Found");
}
}
}
Output:


Java Program: Make an application called that stores at least four different movies, a showtime (such...
Java program. Mike's Movie Theater is a local cinema showing the latest Hollywood hits. Create a class called Movie that stores basic information about a single movie: the title, the running time or length of the film (in minutes), the showtimes (as a single string, such as "11:00,3:15,7:30"), and the film's rating (R, PG-13, PG, or G). Include get and set methods for each; the setter for rating should check that the value is one of the four valid options...
Netflix Database - PROGRAMMED IN JAVA PLEASE :) In this program, you will build a Netflix movie database using the provided file, netflix.csv. The file contains more than two hundred records of movies and TV programs, with each record consisting a title, a rating, a release year, and a user rated score. There are three classes that you will need to implement: Movie, NetflixHandler, and NetflixApp. Class: Movie Movie - title: String - rating: String - year: int - score:...
Write a java program that stores the following information in a HashMap: Sue is friends with Bob, Jose, Alex, and Cathy Cathy is friends with Bob and Alex Bob is friends with Alex, Jose, and Jerry After storing the information, prompt the user to enter a name. If the name that is entered is Sue, Cathy, or Bob, print out the name and the list of friends. Otherwise print a message indicating that the name is not in the HashMap.
Java. Create a program called StatesArray that begins by asking the user how many states they wish to enter. Create an array of that size which stores USAState objects. Use a loop to get input necessary to create USAState objects and put them in the array. Then, do the following - Output a list of all capital cities in the array. - Prompt the user for a state name, then report whether or not the state is in the array.
Weather Program Create an application to interacts with a web service in order to obtain data. Program must prompt the user for their city or zip code and request weather forecast data from OpenWeatherMap (https://openweathermap.org). Program must display the weather information in a READABLE format to the user. Requirements: Create a header for your program just as you have in the past. Create a Python Application which asks the user for their zip code or city. Use the zip code...
public static double[] getVolumes(double[] base, double[] height, double[] length) Write a Java program called TriangularPrisms which does the following: In the main method: Use a for loop which repeats three times. Within the loop, a. prompt the user to enter the base of the triangular prism and store the value in a double array called base b. prompt the user to enter the corresponding height and store the value in a double array called height c. prompt the user to...
Please write a Java program that does the following: Create an array of 100 integers. Store 100 random integers (between 1 and 100) in the array. Print out the elements of the array. Sort the array in ascending order. Print out the sorted array. Prompt the user to enter a number between 1 and 100. Search the array for that number and then display "Found" or "Not Found" message. Display each number from 1 to 100 and the number of...
Write an application that stores at least five different college courses (such as CIS101), the time it first meets in the week (such as Mon 9 am), and the instructor (such as Johnson) in a two-dimensional array. Allow the user to enter a course name and display the corresponding time and instructor. If the course exists twice, display details for both sessions. If the course does not exist, display Invalid Entry: No Such course. Use the following values: Course Time...
Java Programming Use a one-dimensional array to solve the following program. Write an application that inputs six numbers [Keep the numbers in an array]. The numbers must be between 20 and 200, inclusive. If the number is not between 20 and 200, ask for another input. When a number is entered, display the number only if it is not a duplicate of a number already entered. If it is a duplicate of a number already entered, display a message that...
***Please give the java code for the below and add comments for different areas for a dummy to understand*** This java program will combine the techniques of handling arrays, decision control statements, and loops. Your program should accomplish the following: Build an array that holds characters (size 35) Load the array with random capital letters (use random generator) Your program should present a menu to the user allowing for the following “actions”. To “search” for a target letter of the...