In the main method of the TestTriangle class, make the two Triangle objects that you created in Task 2 call the testOverriding () method.Ensure it runs without errors.
Q: Many visual representations may be provided in a computer setting; how would you decide amongst…
A: Reason: Raster pictures and vector images are the two main categories used to categories image…
Q: What aspects of students' access to technological learning resources have the most impact?
A: How does technology affect students' learning? Technology can improve student engagement and…
Q: Create an iterative technique for reverse-engineering a string. Explain why you would not typically…
A: Iterative technique for reverse-engineering a string is to use a loop to traverse the string…
Q: Is it because RISC processors are inherently more straightforward than CISC ones?
A: Here is your solution -
Q: Consider the dataset shown in Table 1 for a binary classification problem. Table 1: Dataset with 20…
A: The question presents a dataset for a binary classification problem and asks for various…
Q: Where can I learn about the most recent advancements in IT, SIS, and IT infrastructure?
A: Introduction:Technology is constantly changing and evolving, and it is important for organizations…
Q: a network
A: Given :- In the above given question, the statement is mention in the above given question Need to…
Q: To what extent does the "prototype approach" apply to software development?
A: Software development creates incomplete software systems. A prototype may only mimic a few features…
Q: In the field of IT, what are the most current technological developments?
A: Introduction: Information technology (IT) encompasses a wide range of disciplines and functions that…
Q: In C# code: Write a program that will help an elementary school student learn multiplication. Use a…
A: I have provided ANSWER FOR FIRST QUESTION ONLY------ For first question, I have provided C# CODE…
Q: Why is it that certain mobile applications are more popular than others?
A: What distinguishes a mobile program from others is: Finding out how a specific software project…
Q: When it comes to firewalls, what is the most affordable option?
A: By observing and regulating network activity, firewalls protect the network. It builds a wall…
Q: Think about the applications of Structured English outside of systems analysis.
A: A system's operations may be logically understood by the analyst by using diagrams in the…
Q: Please explain the difference between Stack and Heap. Including data on the frame pointer, the stack…
A: Two important ideas in computer memory management are stack and heap.
Q: Think of a search engine that employs TF*IDF weights and a vector space model to provide results. A…
A: Inverted file, also known as an index that maps phrases back to the locations in a document where…
Q: need help fixing the code to create an output described in the image below:: public class FoodItem…
A: Please find the answer below :
Q: In what ways are systems dependent upon one another, and what does it entail exactly?
A: In order to manage and safeguard systems, it's critical to be aware of their interdependence. You…
Q: Provide concrete examples to illustrate each of the "four Ps" of successful software project…
A: Dear Student, Concrete examples to illustrate each of the "four Ps" of successful software project…
Q: How do interruptions help? When comparing an interrupt and a trap, what are the key differences? Can…
A: The signals that the I/O devices provide to the CPU, known as interrupts, tell the CPU to halt its…
Q: We'd like to provide some suggestions to chief information officers (CIOs) who are thinking about…
A: The move to cloud-based data storage has become increasingly popular over the last decade. This…
Q: some quick notes on: I Paging for communication. (ii) use of QAM and other forms of modulation based…
A: Answer:
Q: Wondering come DVDs can store twice as much data as a CD?
A: Despite having the same dimensions, DVDs have a far larger storage capacity than compact discs…
Q: Consider a scrambled text file that contains hidden text data that is the same as your evaluation.…
A: Basics: Decipher in PC: Decoding involves turning encoded data into text that you or the Computer…
Q: Microsoft Word 2016 comes with several updates and additions. While using Word 2016, which function…
A: Introduction: Microsoft Word 2016 comes with a ton of updates and new features. What do you think is…
Q: This a project managment and my topic is " keylogging software (hacking skills)". Please help with…
A: Project management is the process of leading a team to achieve specific goals and objectives within…
Q: There are two primary ways to start making software: design or development.
A: Introduction: Software development is a complex process that involves designing, developing,…
Q: In the context of data protection, how do bottom-up and top-down strategies vary from one another?…
A: Introduction: Data protection refers to the measures and practices used to safeguard sensitive…
Q: Given main(), complete the Car class (in file Car.java) with methods to set and get the purchase…
A: The JAVA code is given below with output screenshot
Q: if local variable and global variable names are same
A: Q. What if local variable and global variable names are same?
Q: When a virus infects a company's network, what variables help it multiply?
A: Introduction: One of the most well recognized dangers to digital infrastructure is virus infection.…
Q: 5.) T(n) = 2T (n/6) + √n f(n) = versus nog a = Which is growing faster: f(n) or nlogs a? Which case…
A: Answer: Given T(n)=2T(n/6)+√n
Q: Please provide a succinct summary of each method used to evaluate HCI. Usability testing Formative…
A: HCI: Human-Computer Interaction (HCI) is the study of how people interact with computers and other…
Q: provide explanations for why a WBS is necessary. While managing a standard software project, is it…
A: A WBS is necessary to organize and break down a project into manageable tasks, while an SDLC…
Q: Which technologies are used to set up a VPN, and what exactly is a VPN?
A: Programming with objects Programming is done using objects. Object-oriented programming aims to…
Q: IF a>=10 && B<=5 Then some line of code Write down the test case for this?
A: Here, we can create the test cases using the test case design technique.
Q: A "peak" is an entry in an integer array that is bigger than or equal to the adjacent integers,…
A: ALGORITHM:- Define a constant variable MAX_INT with the value 1 shifted left by 32. Define a…
Q: The term "multiprogramming" — what does it mean?
A: According to the information given:- We have to define the term "multiprogramming" — what does it…
Q: When a backup has to be made, it is the responsibility of the server or database administrator.
A: It is generally the responsibility of the server or database administrator to ensure that backups…
Q: While trying to locate the hole in the EasyJet firewall, what kind of auditing tools do you believe…
A: The highest priority is given to security auditing, which entails routine and stringent monitoring,…
Q: To be fully defined, a variable must have both its type and its extra characteristics set (and…
A: We can better explain the characteristics of variables by using the idea of a variable's extent and…
Q: Files containing object code are generated by compilers and assemblers from source files. The object…
A: In practice, compilers do not produce executables without connecting the individual files together.…
Q: to create a script that will compute cos(x), sin(x) and tan(x). Computing cos(x) and sin(x) must be…
A: Algorithm: Include the standard input-output header file in the program. Define a function named…
Q: please draw NFA's of the following Integers divisible by 2 Legal postfix expressions Floating…
A: NFA: NFA stands for Non-Deterministic Finite Automaton. It is a mathematical model used in computer…
Q: When does it make sense to break up a large computer system into smaller, more manageable…
A: Circumstances: It makes sense to classify the processes as a subsystem if they share a common set of…
Q: Please organise your work. Thank You 1. Convert the following from infix to prefix using stacks:…
A: (1) Given, Infix - (5 – y) * (x + 3) Prefix - *–5y+x3 Infix to Prefix table usign stack- Sr No…
Q: Where do IT, ITS, and other related fields stand in terms of cutting-edge technological…
A: IT (Information Technology), ITS (Intelligent Transportation Systems), and related fields are…
Q: When do you need multiplexing, and what are its advantages?
A: Multiplexing is a technique used in telecommunications and computer networks to combine multiple…
Q: Which database engine does Django use by default when a new project is created?
A: Setting up a database connection in a Django project is accomplished in the setting.py file by…
Q: What is the primary contrast between main
A: A mainframe operating system is network software that runs applications, connects devices, and…
Q: Identify, describe, and define the six parts of an information system you just learned about.
A: What is Information system: An information system is a combination of hardware, software, data,…
In the main method of the TestTriangle class, make the two Triangle objects that you
created in Task 2 call the testOverriding () method.Ensure it runs without errors.
Step by step
Solved in 3 steps
- public class Side Plot { * public static String PLOT_CHAR = "*"; public static void main(String[] args) { plotxSquared (-6,6); * plotNegXSquaredPlus20 (-5,5); plotAbsXplus1 (-4,4); plotSinWave (-9,9); public static void plotXSquared (int minX, int maxx) { System.out.println("Sideways Plot"); System.out.println("y = x*x where + minX + "= minX; row--) { for (int col = 0; col row * row; col++) { System.out.print (PLOT_CHAR); if (row== 0){ } System.out.print(" "); } for(int i = 0; i <= maxx* maxX; i++) { System.out.print("-"); } System.out.println(); Sideways PHOT y = x*x where -6<=x<=6 Sideways Plot y = x*x where -6<=x<=6 How do I fix my code to get a plot like 3rd picture?public class Driver { /** * @param args */ static Scanner keyboard = new Scanner(System.in); publicstaticvoid main(String[] args) { Mailbox[] mailboxes = new Mailbox[5]; Mailbox mailbox1 = new Mailbox("gmail"); Mailbox mailbox2 = new Mailbox("outlook"); Mailbox mailbox3 = new Mailbox("icloud"); mailboxes[0] = mailbox1; mailboxes[1] = mailbox2; mailboxes[2] = mailbox3; Email email1 = new Email(); email1.setDate(new Date(2022, 11, 5)); email1.setSubject("Exam2 guidelines "); Email email2 = new Email(new Date(2021, 3, 5), true, "Quiz3 in Ch7"); Email email3 = new Email(); email3.setDate(new Date(2020, 11, 3)); email3.setSubject("Late submission policy"); mailbox2.addEmail(email1); mailbox2.addEmail(email2); mailbox2.addEmail(email3); // System.out.println("Hello! What would you like to do "); intselection = displayMenu(); while (selection != 5) { // selection = displayMenu(); switch (selection) { case 1: System.out.print("Enter the client: "); String…public String getJoblitle() { return joblitle; 11 12 13 44 45 46 47 48 49 50 public void setJoblitle(String joblitle) { this.jobTitle - joblitle; public int getCurrentEmploynent() { return currentEmploynent; 1. public void selCurrentEnployent (int current Fmployment) { this.currentEmploynent - currentEmployment; 53 54 55 56 -57 goverride public String tostring () { return "CurrentEmploynentStatsclass [areaName=" + arealame + 58 + "year=" + year + ", jobtitle-" + joblitle , currentEnploynent-" + currenttmployment + "]": 59 61 62 63 64 } What algorithm does this method perform? public statie Currentiploynentstatsclass mysteryethod (CurrentEmploynentstatsclass] array) ( int holder = array[0).getCurrenttmploynent(); Currenttmploynentstatsclass variable = array[®]; for(int i- 0, i holder) { holder = holderx; variable - array[1]; return variable; 36. What is the above method returning? 37. What is the Big O time of the above method?
- 9 public class PictureViewer 10{ public static void main(String[] args) 11 12 // Step 2: Fix the syntax errors and submit it to Codecheck to pass the test. // Note: Do not add or remove any statements 13 // 14 15 // Do not change the semantics of each statement Do not add or remove any variables Do not add or remove any objects Magic numbers are allowed 16 17 18 // 19 // 20 // Create an object of Picture by loading an image Picture pic = Picture("starry_night.png"); 21 22 23 // Display the width and height System.out.println("Width : " + pic.getWidth()); System.out.println("Height: 24 25 + pic.getHeight()); %3D 26 27 // Increase the width by 50 on both sides and // increase the height by 40 on both sides. // Must use dw and dh when calling method grow(). int dw, dh = 40; pic.grow(dw, dh); 28 29 30 31 32 33 // Display the width and height System.out.println("Width : System.out.println("Height: 34 + pic.getWidth()); + pic.getHeight()); 35 36 37 // Draw the picture draw(); 38 39 40 //…public class Main { public static void main(String args[]) { static_out obj1 - new static_out(); static_out obj2 = new static_out(); int a - 2; obj1. add(a, a + 1); obj2.add(5, a); System.out.println(obj1.x + } 4 - 6 7 9 + obj2.y); 12 13 14 class static_out { static int x; static int y; void add(int a, int b) { x = a + b; y - x + b; 15 - 16 17 18 19 - 20 I 21 22 23 24 O 77.4 66.4 O 79 O 97 O12 mt un o70 0 0o 234 111 111 111 12 2222main Application public class Application { public static void main(String[] args) {//Create library objectLibrary l = new Library();//Add booksl.add(new Kids("KidsBook1", "author1", 18, 5));l.add(new Kids("KidsBook2", "author2", 15, 7));l.add(new Kids("KidsBook3", "author3", 10, 9));l.add(new Scientific("ScientificBook1", "author1", 12));l.add(new Scientific("ScientificBook2", "author2", 13));//Borrower objectsBorrower b1 = new Borrower("Borrower1", 1, 10, 2);Borrower b2 = new Borrower("Borrower2", 2, 6, 5);//Borrower1 borrow 2 booksif (b1.getMaxBookNum() <= b1.getSerialNumbers().size()) {System.out.println("Reached maximum borrowings!!!");} else {if (l.borrow(18, b1)) {b1.borrow(18);}}if (b1.getMaxBookNum() <= b1.getSerialNumbers().size()) {System.out.println("Reached maximum borrowings!!!");} else {if (l.borrow(15, b1)) {b1.borrow(15);}}//Borrower2 borrow 1 bookif (b2.getMaxBookNum() <= b2.getSerialNumbers().size()) {System.out.println("Reached maximum borrowings!!!");}…
- CreditCardTest.java: // Student Name Today's Date public class CreditCardTest { public static void main(String[] args) { CreditCard c1 = new CreditCard(); c1.charge(500); c1.charge(750); c1.requestCreditIncrease(1000); c1.charge(1000); } } CreditCard.java: // Student Name Today's Date // CreditCard.java // Represents a credit card public class CreditCard { private int creditLimit; private int balance; // No-arg constructor public CreditCard() { balance = 0; creditLimit = 2500; } // Request an increase in the credit limit public boolean requestCreditIncrease(int amount) { if (balance + amount > 5000) return false; else { creditLimit += amount; return true; } } // Attempt to charge something to the card public boolean charge(int amount) { if (balance + amount < creditLimit) { balance += amount; return true; } else return false; } public int getBalance() { return balance; } } If you wanted to create/instantiate a second credit card called c2, what Java code would…FIX THE CODE PROVIDED BELOW Part 2 - Syntax Errors and Troubleshooting The code below has many syntax (and other) errors. Tasks:Compile the code and fix the errors one at a time. // Lab1a.java // This short class has several bugs for practice. // Authors: Carol Zander, Rob Nash, Clark Olson, you public class Lab1a { public static void main(String[] args) { compareNumbers(); calculateDist(); } publicstatic void compareNumbers() { int firstNum = 5; int secondNum; System.out.println( "Sum is: + firstNum + secondNum ); System.out.println( "Difference is: " + (firstNum - secondNum ); System.out.println( "Product is: " + firstNun * secondNum ); } public static void calculateDistance() { int velocity = 10; //miles-per-hour int time = 2, //hoursint distance = velocity * timeSystem.out.println( "Total distance is: " distanace); } } Part 3 - Print Statements and Simple Methods Use "print" and "println" statements, but use method calls to reduce the number of repeated "print"and "println"…BAGEL FILES import javax.swing.JFrame; public class Bagel{//-----------------------------------------------------------------// Creates and displays the controls for a bagel shop.//-----------------------------------------------------------------public static void main (String[] args){JFrame frame = new JFrame ("Bagel Shop");frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE); frame.getContentPane().add(new BagelControls()); frame.pack();frame.setVisible(true);}} import java.awt.*;import java.awt.event.*; import javax.swing.*; public class BagelControls extends JPanel{private JComboBox bagelCombo;private JButton calcButton;private JLabel cost;private double bagelCost;public BagelControls(){String[] types = {"Make A Selection...", "Plain","Asiago Cheese", "Cranberry"};bagelCombo = new JComboBox(types);calcButton = new JButton("Calc");cost = new JLabel("Cost = " + bagelCost);setPreferredSize (new Dimension (400,…
- InheritanceDemo.java: // StudentName Today's Date public class InheritanceDemo { public static void main(String[] args) { KleenexBox kb1 = new KleenexBox(); KleenexBox kb2 = new KleenexBox(100); Box justABox = new Box(); System.out.println("justABox has area " + BoxArea(justABox)); System.out.println("kb1 has area " + BoxArea(kb1)); System.out.println("kb2 has this many square inches of tissue: " + KleenexArea(kb2)); } public static double BoxArea (Box b) { return b.width * b.length; } public static double KleenexArea (KleenexBox a) { return a.width * a.length * a.numTissues; } } Box.java: // Student Name Today's Date public class Box { public double width; public double length; public String label; } KleenexBox.java: // Student's Name Today's Date public class KleenexBox extends Box { public int numTissues; // A new Kleenex box public KleenexBox() { numTissues = 50; length = 8.0; width = 5.0; } // A new Kleenex box with a specific number of tissues public…InheritanceDemo.java: // StudentName Today's Date public class InheritanceDemo { public static void main(String[] args) { KleenexBox kb1 = new KleenexBox(); KleenexBox kb2 = new KleenexBox(100); Box justABox = new Box(); System.out.println("justABox has area " + BoxArea(justABox)); System.out.println("kb1 has area " + BoxArea(kb1)); System.out.println("kb2 has this many square inches of tissue: " + KleenexArea(kb2)); } public static double BoxArea (Box b) { return b.width * b.length; } public static double KleenexArea (KleenexBox a) { return a.width * a.length * a.numTissues; } } Box.java: // Student Name Today's Date public class Box { public double width; public double length; public String label; } KleenexBox.java: // Student's Name Today's Date public class KleenexBox extends Box { public int numTissues; // A new Kleenex box public KleenexBox() { numTissues = 50; length = 8.0; width = 5.0; } // A new Kleenex box with a specific number of tissues public…Java: ShowStudent.java: class ShowStudent { public static void main (String args[]) { Student pupil = new Student(); pupil.setIdNumber(234); pupil.setPoints(47); pupil.setHours(15); pupil.showIdNumber(); pupil.showPoints(); pupil.showHours(); System.out.println("The grade point average is " + pupil.getGradePoint()); } } ShowStudent2.java: class ShowStudent2 { public static void main (String args[]) { Student pupil = new Student(); pupil.showIdNumber(); pupil.showPoints(); pupil.showHours(); System.out.println("The grade point average is " + pupil.getGradePoint()); } } Student.java: class Student { // the private data members private int idNumber; private int hours; private int points; // Constructor added in part c Student() { } // end of constructor added in part c // the public get and set methods public void…