Write a Java program that computes how high the ball will be above the ground after x seconds in the above example? Where x is an input provided by the user. Step 1. Create an algorithm (either flowchart or pseudocode) that you will use to write the program. Place the algorithm in a Word document. Step 2. Code the program in Eclipse to compute the time. Inputs: The program should prompt the user for the height of the building, the initial speed, and the time the ball has traveled (i.e. flight time). The building height should be an integer variable, while the initial speed and flight time are double variables. Create a separate method from main to calculate the height of the ball.
Q: A Full Adder Circuit is shown in Figure 1 utilizing two Half Adders and an OR Gate. The major input ...
A: The solution to the given question is: C program to simulate a Full adder #include <stdio.h> v...
Q: What strategies might be employed to decrease the overhead imposed by page table shadowing?
A: INTRODUCTION: Shadow page table: A shadow page table is a virtual page table contained within a comp...
Q: What exactly is a chipset, and how does it function?
A: Answer: Chipset A chipset is a set of motherboard chips based on one or more integrated circuits tha...
Q: Describe the three fundamental distinctions between industrial and consumer IoT.
A: Given: Describe the three fundamental distinctions between industrial and consumer IoT.
Q: What year did the first computer mouse appear?
A: According to the question the mouse trackball and the related pointing device changed into invented ...
Q: Justify the lack of support for instructions set architectures by virtual computers.
A: The answer is given in the below step.
Q: MicroStrategy employs Intelligent Cube Technology in what ways?
A: INTRODUCTION: Cube Technology is a provider of comprehensive information technology solutions. We su...
Q: var id = document.getElementById var pass = document..getElement. if ((id == null ; id == "") && ale...
A: Below the right code
Q: A _______ LAN allows several LANs to be connected. a. backbone b. wireless c. wired Computer ne...
A: Introduction: A _______ LAN allows several LANs to be connected. a. backbone b. wireless c. wired C...
Q: Find the compliment 1 (A+B')C' = ?
A:
Q: Which sorting method is said to be the fastest? Why?
A: A sorting algorithm is an algorithm that puts elements of a list into an order. The most frequently ...
Q: Write the output of the following code which is part of a complete Visual Basic Programme: Dim z, su...
A: When I run your code it will give the following code. Correct Code which produces the correct output...
Q: Using MSI (i.e. functional blocks), show how can you design a circuit that has two n-bit unsigned in...
A: #include <stdio.h> #include <stdlib.h> #include <math.h> int main() { intn, A, B,...
Q: Write a simple JavaScript program to calculate the average mark and to calculate the grade of a stud...
A: Program: script.js script.js // function for calculateAverageMarkfunction calculateAverageMark(...ar...
Q: Cache memory is a modest but critical component of modern computers. Justify the existence of cache ...
A: Introduction: Cache memory stores frequently used instructions/data that the CPU may demand next, an...
Q: 1- A) What kind of books -------ike reading? B) Horror stories and science fiction. 2- A) What --the...
A: 1A) What kind of books do you like reading? 2A)What is the teacher doing?
Q: Identity theft, in which people steal personal information, continues to be a serious threat for bot...
A: Introduction: Theft - obtaining personal information: The majority of thefts occur in order to get p...
Q: Define and explain what is Data Science?
A: Let's see what is data science
Q: Who invented the abacus, and when was it invented?
A:
Q: Develop a program which deciphers the string "Wg ngeb3i3rtiw3y h2no dnt1e eh7f ni3psim2ddn2" which i...
A: The full JAVA code is given in next step along with output:
Q: In c++, Using SQL containers,components, and algorithms show all data from text file movies.txt Con...
A: ALGORITHM:- 1. Display the menu to the user to display the list of movies present in the file. 2. If...
Q: Provide an overview of online marketing tactics and partnerships, including business-to-business (B2...
A: Introduction: BUSINESS STRATEGIES: The first business strategy is to promote the company's sales. B...
Q: Q2-Assuming that SP=13FA ,AX=2356,DI=7534, and CX=5F92 show the contents of the stack and registers ...
A: Find the required table given as below :
Q: 3. Con to Pos
A: This is given as a postfix and prefix question from data structures.
Q: Discuss the areas of overlap between security and privacy and the areas that are distinct to either ...
A: Areas of overlap between security and privacy are: Accuracy: As Data is stored in the server of the...
Q: 1. How many stacks are required for evaluation of prefix expression?
A: 2 stacks are required for evaluation of prefix expression. In this one is used for integers and ano...
Q: Demonstrate the video recording process and how it relates to multimedia creation.
A:
Q: Explain the ethical and legal considerations with software piracy, as well as the problems that aris...
A: Answer The utilization of unlicensed programs is unlawful, plain, and straightforward. A downloadin...
Q: Convert an inputted value from the user in centimeters into its equivalent in meters.
A: Psuedocode: begin numeric cm,m display "ENTER VALUE IN CENTIMETERS : " accept cm com...
Q: puter created?
A: Desktop Computer A desktop computer is a type of personal computer that fits on top of a standard o...
Q: Make a list of the many use cases that exist
A: Use case use case is a description of set of sequence of actions including variants and the system p...
Q: What advantages does having a local area network (LAN) provide?
A: INTRODUCTION: Local Area Network: It is a term used in computer science to denote a group of linked...
Q: Write a C++ program to generate a random vehicle registration number that is a string of length 10 a...
A: Introduction For numbers, random generated number from 0-9 is appended to '0' and for characters, r...
Q: What happens if you add an extra field to a class's definition and then try to read back serialized ...
A: INTRODUCTION: Changes to serialized objects are - Delete a field. Move a class up or down the hiera...
Q: What happens when an array is sorted using a selection sort?
A: The answer is given in the below step
Q: ntory program COMMAND MENU add- add items to wizard_all_items.txt walk - Walk down the p
A: Code: #include <iostream>#include <iomanip>#include <fstream>#include <limits&g...
Q: Do you believe that a call to the search method that returns no results should result in an error me...
A: Introductiion: Put quote marks around one of your search keywords if it's a phrase. If this is not t...
Q: What protocol is used to dynamically allocate IP addresses to machines on a local area network (LAN)...
A: Introduction: A pool of point-to-point IP interfaces must be defined on the server to facilitate dyn...
Q: What exactly is SETI?
A: Here have to determine SETI (Search for Extraterrestrial Intelligence).
Q: Identify the MIPS-16-specific instructions
A: INTRODUCTION: The MIPS-16 instructions: American company MIPS Computer Systems, which is now known ...
Q: Which three factors are used to make hardware selections?
A: Hardware is an physical component of the computer system which we can feel and touch. For example, C...
Q: e have a neural that takes input with 3 features, please compute the output. Input = [0.5, 0.3, 0.6...
A: Given : If we have a neural that takes input with 3 features, please compute the output. Input = [0...
Q: What is the final value of x based on the following expressions? Show steps of the answer. Question ...
A: Here we find the value of x of the given expressions and prove that both expressions are not related...
Q: Write the main () function that does the following : Declare an array of runner objects and insert ...
A: #include <iostream>using namespace std;class Runner{ private: int num; string name;...
Q: Given a real number a and a nonnegative integer n, find a,using recursion a, = 2* a+a2, for n22 n-1 ...
A: Your python program is given below as you required with an output.
Q: In which of the following component, the programmer should concentrate while defining the problem wh...
A: Answer: Algorithms
Q: stack ADT using only a priority queue and one additional integer instance variable
A: The implementation is given below:
Q: What are some considerations while developing a mobile application? What factors, in your view, cont...
A: Several considerations to consider while designing an application include the following:
Q: Write a function mean_filter(img, s) that takes as its first argument a 2-dimensional numpy array im...
A: Note : Answering in python as no programming language is mentioned. Input : Input image Input size ...
Q: Distinguish the three layers of data modeling.
A: - They three steps of data modelling must be highlighted. - The distinctions: - Data modelling is d...
Hi, I need helping solving this and writing it in Java format.
Trending now
This is a popular solution!
Step by step
Solved in 5 steps with 7 images
- Consider the above scenario, where Billing class has composition relationship with Doctor having private instance variables (docName, docID and docFee) and a public getDocID() method, Patient having private instance variables (pName, pID, pDisease), Medicine having private instance variables (medID, medName, medQty, medPrice), and MedicalTest having private instance variables (testID, testName, testPrice). In addition, each class shall have toString method to display its object state. Also define getDocInfo method in Billing class that shall return the doctor. Implement getPaymentAmount() method in Billing class that shall return the total billing amount that includes doctor fee, medicine cost and medical tests fee. Considering the above scenario, write code that shall perform the following in the driver/test class: Get an amount from user. Traverse the ArrayList<Billing> using enhanced for loop. Print the billing details of those bills having total billing amount greater or…Your assignment for this course is to implement a beginner level Book Management System (BMS) in Java language. BMS contains 2 classes: Bookand BookList. The Book class has the following attributes: code: a String object, that hold the book’s code. title: a String object, that hold the book’s title. qua: int variable, that hold the number of books with the same code in the library. price: a double variable, that hold the book’s price. The BookList class contains only one data member: ArrayList<Book> t. When running the program display the menu as below:1. Input & add book(s) to the end.2. Display all books.3. Search a book for given code.4. Update the book’s price for given code.5. Find the (first) max price value.6. Sort the list ascendingly by code.7. Remove the book having given code.8. Load data from file.0. Exit.Notes:(1) The book’s code must be unique in the list.(2) Display all books in format (code, title, quantity, price).(5)…Design and implement an EuropeanOption class (with fixed strike priceK). It should hold information such as option type (call or put), spot price (of the underlying asset),strike price, interest rate, volatility (of the underlying asset) and time to maturity. Constructorsdon’t accept illegal values. Implement a getPrice() function which gives the price of the optionusing path independent simulation of the stock prices.Using the following dynamics for the stock price with the constant values:dSt= rStdt + σStdWtS0= 100K = 105r = 0.02σ = 0.05T = 10Add more features to the class defined in Problem 1, it should containfour member functions to compute the numerical Greeks (getDelta() for spot price, getRho() forinterest rate, getVega() for volatility, and getTheta() for time to maturity) of a given option.
- Implement all the classes using Java programming language from the given UML Class diagram. Note: This problem requires you to submit only one class: Ball.java. Do NOT include "public static void main()" method inside all of these classes. Graders will be testing your classes, using the unit-testing framework JUnit 4. A class called Ball is designed as shown in the class diagram. The Ball class contains the following private instance variables: x, y and radius, which represent the ball's center (x, y) co-ordinates and the radius, respectively. xDelta (Δx) and yDelta (Δy), which represent the displacement (movement) per step, in the x and y direction respectively. The Ball class contains the following public methods: A constructor which accepts x, y, radius, speed, and direction as arguments. For user friendliness, user specifies speed (in pixels per step) and direction (in degrees in the range of (-180°, 180°]). For the internal operations, the speed and direction are to be…For library management, this project can consider multiple departments –e.g. Computer, Electronics, and Architecture. These departments work simultaneously with the operations as the following. You can add a book to the Civil section, delete a book from the Electrical section or view issued book details of the Mechanical department. You may also search a book according to different identifications. Some sample functions are: Using Code::Block C++ without add or delete choice, only below points 1-void searchbooks(void) 2-void issuebooks(void) 3-void viewbooks(void) 4- void issuerecord() – With this function, you can keep record of the student to whom the book has been issued. 5- End of programreate a Java Project (with a class and a test class) to represent some real-world entity such as a technology item (TV, Fan etc), an animal, a person, a vehicle, etc. In our class, we have already seen example classes such as Circle, Student, Rectangle, TV etc. The class will: a) Create a total of 5 member variables for the class by selecting the appropriate data types for each field. For example, a class to represent a lamp might include color, price, height, numBulbs, batteryOperated. Each of these 5 variables needs a data type. b) Includeatleastthreedifferentconstructormethods,includingthedefaultconstructor (no argument constructor), so totally three constructors. c) Create a member function showValues( ) to display the values of an object in a formatted manner. The Java test class (with a main method) will: a) Instantiate at least three objects (using each of the constructors at least once) with your program. b) Store the data from the individual objects into an array. c)…
- Implement the design of the CSE and EEE classes that are derived from the Department class so that the following output is produced: Driver Code Output class Department: def __init__(self, s): self.semester = s self.name = "Default" self.id = -1 def student_info(self): print("Name:", self.name) print("ID:", self.id) def courses(self, c1, c2, c3): print("No courses Approved yet!") s1 = CSE("Rahim", 16101328,"Spring2016") s1.student_info() s1.courses("CSE110", "MAT110", "ENG101") print("==================") s2 = EEE("Tanzim", 18101326, "Spring2018") s2.student_info() s2.courses("Mat110", "PHY111", "ENG101") print("==================") s3 = CSE("Rudana", 18101326, "Fall2017") s3.student_info() s3.courses("CSE111", "PHY101", "MAT120") print("==================") s4 = EEE("Zainab", 19201623, "Summer2019") s4.student_info() s4.courses("EEE201", "PHY112", "MAT120") Name: Rahim ID: 16101328 Courses Approved to this CSE student in Spring2016 semester : CSE110 MAT110 ENG101 ==================…For this exercise, you will be given a project file digital_pet containing two (2) classes, the DigiPet class andthe DigiPetTester class.Every DigiPet has five fields:- name- lifespan (in cycles) – max age- age (in cycles) – current age- mood (2 = joyful, 1 = happy, 0 = neutral, -1 = sad, -2 = angry)- size – current size of pet (size ≥ 1)A DigiPet has a default constructor, overloaded constructor, and some various methods which allow one tointeract with it or modify its state.Poke or pet increases or decreases its mood.Feed or exercise increases or decreases its size by a specified amount.Every time you interact with the digipet (poke, pet, feed, exercise), its age increases. When the age reaches thelifespan, it dies (or becomes a zombie).You need to modify and customize the DigiPet class as follows:- Implement the overloaded constructor: Initialize all five fields. Use the values passed as parameters toinitialize name and lifespan. Use the same default values that the default…For library management, this project can consider multiple departments –e.g. Computer, Electrical, Civil, Electronics, Mechanical and Architecture. These departments work simultaneously with the operations as the following. You can add a book to the Civil section, delete a book from the Electrical section or view issued book details of the Mechanical department. You may also search a book according to different identifications. Some sample functions are: Using Code::Block 1-void searchbooks(void) 2-void issuebooks(void) 3-void viewbooks(void) 4- void issuerecord() – With this function, you can keep record of the student to whom the book has been issued.
- Write a code in Java, test and document (at least) three classes – a CourseWorkStudent class, aResearchStudent class (which both derive from the Student class) and a Client program. Make sure the rules below are followed for the code. For coursework students:(a) There are two assignments, each marked out of a maximum of 100 marks and equally weighted.The marks for each assignment are recorded separately.(b) There is weekly practical work. The marks for this component are recorded as a total markobtained (marked out of a maximum of 20 marks) for all practical work demonstrated during thesemester.(c) There is one final examination that is marked out of a maximum of 100 marks and recordedseparately.(d) An overall mark (to be calculated within the class)(e) A final grade, which is a string (think of a way to avoid code duplication for calculating this)The final grade, for coursework students, is to be awarded on the basis of an overall mark, which is anumber in the range 0 to 100 and is…TODO 2 Complete the TODO by finding the locations of the data samples for each iris flower type. Hint: Use the code for how we found all the setosa_locs as an example! Using iris_df, find the location of all the data sample locations for the versicolor class which has a label of 1. To do so, use NumPy's np.where() function. Using iris_df, find the location of all the data sample locations for the virginica class which has a label of 2. To do so, use NumPy's np.where() function. setosa_locs = np.where(iris_df['class'] == 0)[0] # TODO 2.1versicolor_locs = # TODO 2.2virginica_locs = todo_check([ (type(versicolor_locs) is np.ndarray, "'versicolor_locs' is not type np.ndarray. Make sure you indexed np.where() currently!"), (type(virginica_locs) is np.ndarray, "'virginica_locs' is not type np.ndarray. Make sure you indexed np.where() currently!"), (versicolor_locs[0] == 50, "'versicolor_locs' has an incorrect value"), (virginica_locs[0] == 100, "'virginica_locs' has an…The issue is that the tasks asks for the member_id no_of_books_bought amount_spent all to be returned. it also askes them to go by different names as in isMemberID, getBooksPurchase, getTotalAmountSpent, purchaseBook. It also has to has to reset the corresponding member variables to 0