Create a Vehicle class for keeping current set of coordinates and calculating the distance to new destination. The main class will have two vehicle objects, scan 5 sets of coordinates for 5 different deliveries and print which vehicle is chosen for it in the following format: x1 y1 vehicle number n x2 y2 vehicle number m etc Deliverables Submit a zip file of all of the NetBeans directory of your project. Incomplete projects, projects from different IDE, or separate code files will not be evaluated.
Q: This is the question I am stuck on - A. Create a CollegeCourse class. The class contains fields for…
A: public class CollegeCourse { private String courseId;private int creditHours;private char…
Q: 3.14 (Date Class) Create a class called Date that includes three instance variables-a month (type…
A: import java.util.*; //Date class class Date{ int month; int day; int year;…
Q: Create a class called Quadratic for performing arithmetic on and solving quadratic equations. A…
A: # include<iostream> using namespace std; class quadratic { private: double a; double b;…
Q: You are given a super class called Animal and a sub-class (derived class) called Reptilian. The…
A: the ans is an D
Q: Create a class MyTime which has the datamembers as follows: 1. hour: integer (1 to 12) 2. minute:…
A: #include <iostream>using namespace std; class MyTime{ private: int hour; int…
Q: Next, create class Lab14A with a main method or driver which should do the following: • Create two…
A: Solution: Given,
Q: Create database of the student with the details such as (name, registernumber, cgpa, age,…
A: Database means , Information can be saved and manage with the help of different way.…
Q: Define and implement a class named animal that has the following constructor and attributes:…
A: Inheritance : Inheritance is a concept that acquires the properties from one class to other classes;…
Q: panyName, color, maxSpeed (Not more than 150) and category. Use appropriate data types and access…
A: Create a class Car with parameters companyName, color, maxSpeed (Not more than 150) andcategory. Use…
Q: The TManager class will contain only one property - the array of 18 TBooking objects. Write the…
A: An array of objects can store N number of objects of a class. Each object can be referenced using an…
Q: Write a program contained a class Student which has firstName, lastName, mark, grade. The program…
A: **Note: Save the code in a file named "Student.java" otherwise it will not compile. This is because,…
Q: (The Rectangle class) Following the example of the Circle class in Section 8.2, design a class named…
A: UML diagram for the class Rectangle:
Q: is needed to create a new instance of the class? O A field O An instance attribute OA constructor A…
A: A class is a collection of attributes and methods which act as a template to create different…
Q: The project uses a class named GridWriter to display circles and rectangles in a text grid. The…
A: Answer :-
Q: his C++ question is about a grid writer and no code is needed to be written, questions just need to…
A: 1. this is a pointer used to refer to the object of the class. To access its own address, every…
Q: Write another class named Patient that contains: A private integer data field called id. A private…
A: package com.company;import java.io.*;import java.util.Scanner;public class Patient { private…
Q: 10. Write a class for 'LabRoom'; it will have member fields for no of chairs, no of tables, no of…
A: I give the code in java along with output and code screenshot
Q: Which statement is the most accurate for the code below? class A: def _init__(self, i = 0): self.i =…
A: When a class inherited other class, then it acquire all the data fields and methods present in the…
Q: Create a class Employee with parameters name, id, designation, and basicSalary. Use appropriate data…
A: Since programming language is not mentioned to programming language used is Java. Create Employee…
Q: Create a class called Student that models a student at Carleton University. A student's state…
A: public class Main { public static void main(String[] args) { Student s = new Student("cat",…
Q: Create a class called FinalGrade that is used to represent the points obtained in the letter grade…
A: Since Programming Language choice is not specified, we will be answering this question using C++…
Q: 1. Implement a class named Appointment that contains: • A private String data field named…
A: The code with the output is given below :
Q: Write a program that creates a class named BankAccount and contains: • Private attributes: o id (an…
A: Actually, Java is a generic, class-based, object-oriented programming language designed to have…
Q: 5.12 Online shopping cart (Java) Create a program using classes that does the following in the…
A: Complete answer in Java is Below:
Q: 1. Create a class named Student that has fields for an ID number (idNumber), number of credit hours…
A: NOTE: SINCE THE LANGUAGE OF THE CODE IS NOT MENTIONED, I HAVE USED JAVA FOR THE SOLUTION. Import…
Q: Create a class called Airport that models an airport. An airport's state consists of its name…
A: We need to create an Airport class in Java that has 3 data members as- name, code, and list of…
Q: You are required to write a program that uses objects. Declare a class and create object(s) from the…
A: Basic knowledge of OOPs and Exception Handling is required to solve this problem. Follow the code…
Q: write a java program for Driving license test..The local SAAQ (Société de l’Aassurance automobile du…
A: class DriverExam contains the main function, get_score and passed functions, where the entire logic…
Q: You are required to write a program that uses objects. Declare a class and create object(s) from the…
A: #include<iostream>using namespace std; int main(){ float speed,acceleration,length;…
Q: QUESTION 5 Suppose there is a class named anotherClass that has an array attribute named books of…
A: GIVEN:
Q: Create a program using classes that does the following in the zyLabs developer below. For this lab,…
A: ItemToPurchase.java file public class ItemToPurchase { private String itemName; private int…
Q: his is the question I am stuck on - A. Create a CollegeCourse class. The class contains fields for…
A: The, code has given below;
Q: 1. Create a class called Student, with the following attributes/variables: a. studentName (String)…
A: Answer: Our instruction is answer the first three part from the first part and . I have done code in…
Q: A. Create a CollegeCourse class. The class contains fields for the course ID (for example, CIS 210),…
A: Note: a) Create three java files (CollegeCourse.java, Student.java, InputGrades.java) b)…
Q: Write a Temperature class to hold the data, partially listed below, in a named tuple. The class…
A: note :-- #import namedtuple from collectionsfrom collections import namedtuple # class defination…
Q: You have been provided with a QTCreator project called Project7_Student. Open the project…
A: Objective: This program implements a Student class along with certain instance variables like name,…
Q: In this question you will complete the FootballTeam class, which is constructed with name, number of…
A: EXPLANATION Below is the program for the given question. Hope you understand it well. If you have…
Q: XYZ Airport has two currency exchange offices. ABC Conversions services the north and e side of the…
A: Please find the cpp code below:
Q: In the following questions, you will write a class called Patient that uses a class called…
A: import java.util.ArrayList; public class Patient { private int id; private String name;…
Q: Next, create class Lab14A with a main method or driver which should do the following: Create two…
A: The program for the above given question is given below:
Q: Create an 'array2D' class that encapsulates the above. Your class should contain the following…
A: Required:
Q: Create a CollegeCourse class. The class contains fields for the course ID (for example, CIS 210),…
A: public class CollegeCourse { private String courseID; private int credits; private char…
Q: Create AutomaticCar class that shall have private model, year, speed and gear attributes.…
A: import java.util.*;class AutomaticCar { private String model; private int year; private int speed;…
Q: Create a program using classes that does the following in the zyLabs developer below. For this lab,…
A: Solution: The java code for given problem is mentioned below.
Q: Create a new class called Post and fill in the comment details. This class represents a single…
A: Post.java: public class Post { // Attributes private String name; private String…
Q: Creates a class called College with 6 attributes: a. maxStud: a maximum number of Student into the…
A: Note: As no programming language is mentioned. So I am using Java to answer this question.
Q: Create a class named Player with a default name as "player", a default level as 0, and a default…
A: - Create a class named Player with a default name as "player", a default level as 0, and a default…
Q: Required program is java Create a class called DuplicateRemover. Create an instance method called…
A: Program Instructions:In class DuplicateRemover, declare a set of Strings and create methods remove()…
Q: 5.11 Online shopping cart (Java) Create a program using classes that does the following in the…
A: Given: 5.11 Online shopping cart (Java) Create a program using classes that does the following…
Q: You have been provided with a QTCreator project called Project7_Student. Open the project…
A: // iostream in C++ is the standard library which implement stream based input/output capabilities…
In java using netbeans
Step by step
Solved in 2 steps with 4 images
- A company has several employees, all with different names, who perform interviews with job applicants (one applicant is interviewed by one employee). The job applicants also have different names. The interviewer makes appointments for interviews with the applicants. Each applicant may be interviewed at several occasions, possibly by different interviewers, but in that case the interviews take place during different days. The company has special interview rooms. Each interviewer uses the same room for all interviews during a day. A room may, however, be used by different interviewers during a day, as long as the interviews don't collide in time. The reservation of interview appointments is to be computerized. The database devel- oper has decided to use a single relation for all data, with the following schema: Interviews(interviewer, applicant, day, time, room) a) From the text, find functional dependencies in the relation. b) Find the keys of the relation. c) Show that the relation is…A Rajesh teaches a cooking class. The course is attended by NN students, numbered 11 to NN. The cook must participate in the presence before each class, i.e. call out the names of the students one by one and indicate which students are present. Each student has a first and last name. To save time, Rajesh only wants to call up students' first names. However, if there are multiple students with the same first name, the Rajesh must call out the full names (first and last names) of all those students. For any student who does not share a first name with any other student, the cook can still only call that student's first name. Help the Rajesh decide for each student whether to call that student's full name or just their first name. Note: Please Answer in java language only. Input 1 1 hasan jaddouh Output hasanScenario:One of the renowned supermarket in Dhaka City, “Shwapno” is celebrating their firstanniversary of opening. They have become very popular among people in a short amount oftime. As a method of celebration they have designed three interesting and exciting offer for theircustomers for that day only!! The offers are described as follows:Offer 1: This offer says, if the name of any customer starts with “S” OR ends with “o”, theywill receive a gift which contains 1 kg miniket rice and 1 litre soyabean oil. This offer isdedicated from their name, Shwapno.Offer 2: This offer says, if one customer have taken products and his/her total product weightis less than 1.50 kg, then Shwapno will give all the products to the customer for free. If the totalweight is 1.50 kg or more, the customer will have to pay the full amount.Offer 3: This offer says, if a customer is aged less than 15, then he/she will receive chocolates.If aged 15 or more, then no gifts for the customer.Implementation:Create…
- On a chess board of r rows and c columns there is a lone white rook surrounded by a group of opponent's black knights. Each knight attacks 8 squares as in a typical chess game, which are shown in the figure - the knight on the red square attacks the 8 squares with a red dot. The rook can move horizontally and vertically by any number of squares. The rook can safely pass through an empty square that is attacked by a knight, but it must move to a square that is not attacked by any knight. The rook cannot jump over a knight while moving. If the rook moves to a square that contains a knight, it may capture it and remove it from the board. The black knights. never move. Can the rook eventually safely move to the designated target square? The figure illustrates how the white rook can move to the blue target square at the top-right corner in the first sample case. The rook captures one black knight at the bottom-right of the board on its way. Rok nd kight lcoes by Chunen Input The first line…A local charity has set up a carnival for small children in a park with existing walkways and they need to create a map and advertising campaign. (a) Draw a simple graph that models the walkways and attractions of the carnival given the following information: • the entrance is an attraction because of the funny clowns that perform • from the clowns you can go to the slide, food truck, or carousel • the food truck is also connected to the petting zoo, ice cream cart, and ring toss • you can get to the petting zoo from the slide as well • from the carousel you can go to the face painting station or the ice cream cart, but there is also a direct path between the ice cream cart and face painting station too • the ice cream cart and ring toss both lead to the fishing game (b) To advertise the event, (i) Can the charity claim each attraction can be visited exactly once? (e.g. does the graph have a Hamilton circuit? or a Hamilton path?) If so, give one example, as proof. (ii) For members of…A robot is a programmable machine that can carry out a series of automated tasks. The final lab for the semester is to build a robot of your own design. Your robot should contain at least two sensors, and two output mechanisms that work together to perform a task. Sensors can be something like a temperature or light sensor. Output mechanisms can be things like servo motors or lights. In order to make sure that the task your robot performs is sufficiently complex to meet the objectives of the course you will need to write a proposal that answers the questions below.1. Describe the purpose or goal of your robot. Answer the question, “Why does this robot exist?” What problem does it solve? What are some of the challenges to solving that problem?2. Describe how your robot will solve the problem. What sensors will it use? How will it behave based on the inputs and how will it overcome the challenges presented?3. How will you know if your robot successfully meets its goals? What tests will…
- The Youth Bowling Clubs Association (YBCA) is a loose group of children’s ten-pin bowling clubs that compete with inter-club competitions regularly throughout the year. It is run on an amateur basis, and each week volunteers from each of the clubs present at a competition provide a referee and scorer for the competition. As the clubs are affiliated with bowling alleys, each club takes it in turns to host the competitions, and there is a rule that no club can have a scorer or referee at a competition they are participating in. The Managing Committee of the YBCA have been organising the competitions informally for many years, and now want to put the officiating on a formal basis, which will be auditable by the Australian Bowling Association (ABA). They have passed a set of by-laws, and to ensure that the process works properly, and is fair, they have decided to commission a computer system – Official-Eze. The Committee wants the Official-Eze system to automate the process of…Bus timetables specify to the second the exact arrival and departure time of each bus on each stop. You need to pay for the full fare of every bus you ride and different bus lines charge different fees , but they are flat fees (independent of distance travelled on the line) A travel plan is a sequence of stop-time pairs where stop is a location of a bus stop and time is when we arrive at that stop. The plan is feasible if for any two consecutive pairs (a, t) and (b, t′) in the plan there exists a bus that departs after t and arrives at b at exactly t′. That is, a travel plan does not allow us to walk between stops. Assuming that no two buses arrive at the same time at the same stop, a feasible plan uniquely identifies the bus lines that we need to take to realize the plan. The cost of the plan is the sum of the fares we need to pay. Your task is to design an efficient algorithm that given a departure time t, an arrival time t′, an origin stop a and a destination stop b, finds the…Three prisoners have been sentenced to long terms in prison, but due to over crowed conditions, one prisoner must be released. The warden devises a scheme to determine which prisoner is to be released. He tells the prisoners that he will blindfold them and then paint a red dot or blue dot on each forehead. After he paints the dots, he will remove the blindfolds, and a prisoner should raise his hand if he sees at least one red dot on the other two prisoners. The first prisoner to identify the color of the dot on his own forehead will be release. Of course, the prisoners agree to this. (What do they have to lose?) The warden blindfolds the prisoners, as promised, and then paints a red dot on the foreheads of all three prisoners. He removes the blindfolds and, since each prisoner sees a red dot (in fact two red dots), each prisoner raises his hand. Some time passes when one of the prisoners exclaims, "I know what color my dot is! It's red!" This prisoner is then released. Your problem…
- There are 2016 passengers about to board a plane, numbered 1 through 2016 in that order. Each passenger is assigned to a seat equal to his or her own number. However, the first passenger disregards instructions and instead of sitting in seat number 1, chooses and sits down in a randomly chosen seat. Each subsequent passenger acts according to the following scheme: if their assigned seat is available, they will sit there; otherwise, they will pick at random from the remaining available seats and sit there. What is the probability that the 1512th passenger ends up sitting in their assigned seat? A. 1/2016 B. 1/2 C. 5/8 D. 3/4 E. None of the aboveThe annual snake festival is upon us and all the snakes of the kingdom have gathered to participate in the parade. The chef was tasked with reporting on the parade, so he decided to watch all the snakes first. When he sees the snake first, it will be his head, so he marks the "H". Snakes are long, and when they see the snake finally scurry away, they mark its tail with a "T". In the interim, when the snake is moving around it, or in the time between one snake and the next snake, it marks a '.'. Since the snakes come in a procession and one by one, a valid message would be something like "..H..T...HTH....T.", or "...", or "HT", while "T ...H..H.T", "H..T..H", "H..H..T..T" would be invalid messages (see explanation below). Formally, a snake is represented by an 'H' followed by some (possibly null) '.' and then 'T'. A valid message is one that begins with the (probably zero-length) string '.' and then some (possibly zero) snakes, with some '.'s in between, and finally some (possibly zero)…A produce dealer has a warehouse that stores a variety of fruits. He wants a machine capable of sorting the fruit according to the type. There is a conveyor belt on which the fruit is loaded. It is then passed through a set of sensors which measure 3 properties of the fruit: shape, texture, and weight. The sensor system is somehow rather primitive: • Shape sensor :-1 if the fruit is round and 1 if it is more elliptical • Texture sensor :-1 if the surface is smooth, 1 if it is rough • Weight sensor :-1 if the fruit is > 500g, 1 if is < 500g The sensor output will then be input to a Neural Networks based classifying system. As an Al Engineer you are supposed to design (draw the architecture and determine the optimal weight W and bias b) a simple neural network (could be a single perceptron) that can be used to recognize the fruit so that it can be directed to the correct storage bin. As a startup case, the simple network will only be used for two type of fruit i.e. banana and apple.…