ys, then prompt the user for a day. Display business hours for the chosen day. Create your own business hours stored in an array; however, every day of the week should have different hours. Although companies do not normally have different business hours every day of the week, programming yo
Q: You have 20 bottles of pills. 19 bottles have 1.0 gram pills, but one has pills of weight 1.1 grams.…
A: Introduction Given, You have 20 bottles of pills. 19 bottles have 1.0 gram pills, but one has pills…
Q: low many constructors does the following class have? widget double - weight - color: int + Widget():…
A: How many constructor widget class has
Q: Which operation will change the list a = [1, 2, 3] to a = [1, 2, 4, 3]? a.append(4) O a.append(4, 3)…
A: Python is an object oriented programming language.
Q: Make a detailed Proposal of a project named " Xilinix based Real-time Traffic light controller…
A: Abstract of the project Using an FPGA coded on the Spartan 3E platform and a microcontroller…
Q: Gradient descent is ... Group of answer choices computing the integral and making a step in the…
A: Gradient descent is a popular optimization approach for training machine learning models and neural…
Q: Create the data structures for a standard deck of cards. Describe how you would To implement…
A: I give the code in Java along with the output and code screenshots
Q: You are given a dataset of customer reviews and a task of creating a model that will perform…
A: Answer:
Q: You are given a dataset of various texts in English and their translation into German. You are…
A: correct answer is option b) Recurrent neural network (RNN)
Q: Briefly explain and define “public space.”
A: Public are the ordinary people within a country. Let's define Public space and how it is used.
Q: Write a void method called rollLeft that takes an array of int as its parameter. The method should…
A: ALGORITHM:- 1. Pass a 1D array to the method named as rollLeft. 2. Display the initial state of the…
Q: Rewrite the code below to display one column called "Customer Full Name" (In which the first and…
A: Solution: Given, Rewrite the code below to display one column called "Customer Full Name" (In…
Q: Launch of Apple M1 Chips, the performance of CPU has a drastic upgrade. Compare any 2 old Chips used…
A: Note as per over gridlines we will solve one question at that time remaining question post…
Q: 1. Find context-free grammars for the following languages: (a) L = a"b", n is even. (b) La"b", n is…
A: Introduction A formal grammar called context-free grammar is used to produce each potential string…
Q: Assume the following code segment in the main function has been executed: CircularArrayQueue q(5);…
A: Queue uses the concept of FIFO i.e. First In First Out for inserting and deleting elements in it.
Q: Briefly describe the many sorts of interruptions and provide an example of how each type is an…
A: interrupt type: When a process or event demands urgent attention, hardware or software, usually I/O…
Q: UI should say: the number of miles driven in the three hours is 190 miles (if hour 1 entry is 70,…
A: Dear Student, The source code, implementation and expected output of your program is given below -
Q: (Written in Java or Python) Write a program that allows a user to select 3 points on a graphics…
A: We have done the solution using Python programming. Please refer to the following step for the…
Q: at creates a dictionary containing twenty (only twenty) States of the United States and their State…
A: Dear Student, The source code, implementation and expected output of your program is given below -
Q: In Linux code: Write egrep/grep reg expressions and or full cmd line for the following: To display…
A: Linux is an OS(operating system) for developers to build applications. Linux is an open-source and…
Q: Build the astable 555 circuit on TinkerCAD, where the output is an LED.
A: The 555 timer IC's Bistable Multivibrator way is like the most basic; unlike Astable Multivibrator…
Q: If building your I/O system which I/O architecture would you choose ?And Why?. Please provide a…
A: The answer is given in the below step
Q: . Data mining can help in several tasks; of these: (choose all that applies) A.…
A: Data mining can be two types: Predictive type Descriptive type Predictive type is further split…
Q: 4. The original HTTP protocol used TCP/IP as the underlying protocol. For each page, graphic, or…
A: Let's see the answer:
Q: As an example of the difference between these two for loops, let us find the maximum value from a…
A: The main difference between the while and for loops is the way they are constructed. A while loop…
Q: Question 10 Create a class that implements a compressed trie for a set of strings. The class…
A: A method in java is used to perform a task. It is basically a block of code that only execute when…
Q: Explain why a request for proposal should be used to get desired computer system and software…
A: Utilization of a request for proposal in the process of information acquisition pertaining to…
Q: 6. SIP is usually associated with Voice over IP, but SIP doesn't carry voice data. Why is it…
A: 1) The Session Initiation Protocol (SIP), a popular internet telephony protocol, forms the…
Q: You are working on a model that will analyze a collection of articles from the web and predict which…
A: A token is a specific instance of a series of characters in a document that have been put together…
Q: Can you create a variational autoencoder model where the decoder has a different architecture than…
A: An autoencoder is a neural network architecture capable of discovering structure in data to produce…
Q: WHAT CAN I USE TO SORT WITHOUT USING PANDAS, LAMBDAS OR ITEMGETTER? import csv manufacturerList…
A: You could define the key function with a def. Instead of line inventoryList = (sorted(list, key=1)),…
Q: 2 • / 6x √/ x²-3 16. Evaluate - 3 dx
A: A computer is a digital electronic machine that can be programmed to automatically perform a series…
Q: C# CODE USING A BITARRAY TO WRITE THE SIEVE OF ERATOSTHENES
A: The programme we created receives a numeric value from the user, determines its primacy, and…
Q: Question 14 papa .The best method of selecting a kth smallest element from a sequence of n integers…
A: The correct answer for the best method of selecting Kth smallest element is:
Q: 3. What function does the 3-way handshake in TCP actually perform?
A: A computer network refers to interconnected computing devices that can exchange data and share…
Q: A child class(subclass) inherits only behaviors of parent class inherits all data and behaviors of…
A: Behaviors means methods Data means attributes
Q: Loop: Exit: addi x9, X9, 1 sub X14, X13, X9 addi X10, X10, 4 sub X11, X10, X9 CBNZ X14 Loop Which…
A: An assembly language statement which refers to the one it is a line of text that translates into a…
Q: Please rewrite this C program in 2019 Visual Studio where it works the same but looks completly…
A: If length, width and height are the dimensions of the cube then the volume of the cube is calculated…
Q: In almost every window command buttons are present. When the user exit the application or begin…
A: INTRODUCTION: In a graphical user interface that allows for several viewing regions, each of these…
Q: What is the purpose of an activation function applied to an artificial neuron? -To add non-linear…
A: Question- Activation function is basically used to define the output of node as per input. Neuron is…
Q: ASAP PLS Given the following class: class FullName{ string lastName; char Middle; string…
A: In order to have as few implementation dependencies as feasible, Java is a high-level, class-based,…
Q: Look at the idea of utilizing Structured English to describe activities that are beyond the purview…
A: Introduction:- Structured English is used: Structured English is the use of the English language in…
Q: Create a Python application that uses object-oriented principles to help Sunrise Rentals Inc., a car…
A: Please find the answer below :
Q: Write a function definition called shoppingCart that takes a BookType array and its size. The…
A: Note :- You have not mention the language of the program so i'm answering your question in C++…
Q: Creating a class involves creating new instancesof objects defining class attributes changing values…
A: The solution is given below for the above given question:
Q: When may it be useful to pause hardware or software, if at all?
A: Interrupts are instructions sent by software or hardware to the central processing unit (CPU) to…
Q: absolutely ans Let Σ = {0,1}. Design an NFA to accept the language L= { (01)^n | n>0}. b) Convert…
A:
Q: C++ (C plusplus) Requirements: Use the given class “User” (below) All data members must be…
A: Define a new exception class named “BadValueException” class BadValueException : public…
Q: Two integers, babies 1 and babies2, are read from input as the number of babies of two turtles.…
A: Here is your solution step by step -
Q: 1. Delete MOROCCO. After deleting this node, which node has an imbalance? 2. After the first…
A: When Morocco is deleted, it's parent Poland will have 2 nodes at right side and 0 nodes at left…
Q: p1 = Person("John", 36) p1.age = 40 p1.myfunc() O 40 O Hello my age is 40 36
A: The question creates a class named Person with two instance variables, namely name and age. It also…
JAVA
Create an application that contains an enumeration (enum) that represents the days of the week.
Display a list of the days, then prompt the user for a day. Display business hours for the chosen
day. Create your own business hours stored in an array; however, every day of the week should
have different hours. Although companies do not normally have different business hours every
day of the week,
coding errors.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images
- JAVA Write an application containing three parallel arrays that hold 10 elements each. The first array hold four-digit student ID numbers, the second array holds first names, and the third array holds the students’ grade point averages. Use dialog boxes to accept a student ID number and display the student’s first name and grade point average. If a match is not found, display an error message that includes the invalid ID number and allow the user to search for a new ID number.Write an application containing three parallel arrays that hold 10 elements each. The first array hold four-digit student ID numbers, the second array holds first names, and the third array holds the students’ grade point averages. Use dialog boxes to accept a student ID number and display the student’s first name and grade point average. If a match is not found, display an error message that includes the invalid ID number and allow the user to search for a new ID number. java programWrite a java application which initializes an array with ten random integers between 1 and 6. Write two methods: 1. arraySwap: this method should accept an integer array and swap the first and the last item. 2. findMinimum: this method should accept the array and return the minimum value of that array You should comment and follow javaDoc for both methods. Your main method should test each of these methods.
- Create an array of objects of the Person class, of size 4. Create three objects of the Person class, with values, and assign the objects to the array. Loop through the array and print the name, job, and email of all Personobjects. (using the Netbeans application (Java)In java Write a program that uses a 2-D array to store the highest and lowest temperatures for each month of the year. The program should output the average high, average low, and highest and lowest temperatures of the year. Your program must consist of the following methods with their appropriate parameters:a.) getData: This method reads and stores the data in the 2-D array.b.) averageHigh: This method calculates and returns the average high temperature of the year.c.) averageLow: This method calculates and returns the average low temperature of the year.d.) indexHighTemp: This method returns the index of the highest temperature in the array.e.) indexLowTemp: This method returns the index of the lowest temperature in the array.Use the following input:High temp for each month: 30 40 45 60 70 90 89 95 79 90 70 40Low temp for each month: 10 -10 20 30 50 75 85 79 50 80 30 20Code an exam in Java that repeatedly asks the user to enter the capital for a province in Canada. Then, the program should report whether the answer is correct. Eventually, you must display how many answers the user guessed correctly.The requirements are as follows: - Use a 2D array to hold the provinces and their capitals (as implied by the table below)- Answers are not case-sensitive (e.g. Toronto and tOrOnto are considered the same)
- Write a Java Console application in which you initialize an arraylist with 10 String values. For example, 10 colour names, or fruit names, or veg names, or car names, etc. Display all the values in the list in a neat tabular format. Randomly select a value from the array. Now allow the user 3 chances to guess the value. After the first incorrect guess provide the user with a clue: the first letter of the randomly selected word. After the second incorrect guess provide the user with another clue: the number of letters in the word. Once the user correctly guesses the word, remove that word from the list. Display the number of items in the list. The user must have the option to play again.Use the Account class created in Programming Exercise9.7 to simulate an ATM machine. Create 10 accounts in an array with id 0,1, . . . , 9, and an initial balance of $100. The system prompts the user to enteran id. If the id is entered incorrectly, ask the user to enter a correct id. Once anid is accepted, the main menu is displayed as shown in the sample run. You canenter choice 1 for viewing the current balance, 2 for withdrawing money, 3 fordepositing money, and 4 for exiting the main menu. Once you exit, the systemwill prompt for an id again. Thus, once the system starts, it will not stop. Enter an id: 4 ↵EnterMain menu1: check balance2: withdraw3: deposit4: exitEnter a choice: 1 ↵EnterThe balance is 100.0Main menu1: check balance2: withdraw3: deposit4: exitEnter a choice: 2 ↵EnterEnter an amount to withdraw: 3 ↵EnterMain menu1: check balance2: withdraw3: deposit4: exitEnter a choice: 1↵EnterThe balance is 97.0Write a Java application to simulate the rolling of two dice. The application should use an object of class Random once to roll the first die and again to roll the second die. The sum of the two values should then be calculated. Each die can show an integer value from 1 to 6, so the sum of the values will vary from 2 to 12, with 7 being the most frequent sum, and 2 and 12 the least frequent.Your application should roll the dice 12 times. Use a one-dimensional array to tally the number of times each possible sum appears. Display the results in tabular format. */
- this java program computes the sale of flowers. Name of flowers: daisy, pansy, rose, violet, carnation Flowers are stored in the flowers arrayprices = daisy = $2, pansy = 4, rose = 9, violet = 3, carnation = 7. Ask the user what kind of flower would you likeVerify the user has entered a valid flower name by comparing the entry with the elements of flowers; for an invalid flower name, display a message and exit the programFor a valid flower name, ask the user the quantity and compute the total. Ask the user if he or she has a coupon, if y, subtract the coupon value from total, if the total is greater than the coupon; display total; otherwise, tell the user the coupon could not be applied because the min purchase was not met and display total, without applying the coupon.Create an application that contains an enumeration (enum) that represents the days of the week. Display a list of the days, then prompt the user for a day. Display business hours for the chosen day. Create your own business hours stored in an array; however, every day of the week should have different hours. Although companies do not normally have different business hours every day of the week, programming your code with this difference will help in finding and fixing coding errors. java programWrite a Java application and use a two-dimensional array that will store the five top artist sales for 2017. The application must also hold the artist sales for CDs, DVDs and BLU RAY items.Your program must: Q.1.1 Create a two-dimensional array to contain the three sale items for five different artists. A single array must be used to store the artist names. Q.1.2 Allow a user to enter in a number, ranging from 1 to 5, which will represent the artist position with regards to the album sales.Q.1.3 Printout the artist name including the CD, DVD, BLU RAY sales amounts and total sales.