SELECT
Q: not upload already uploaded answer.... Otherwise I'll downvote multiple times
A: Introduction: When developing software, TDD is a procedure in which software requirements are transl...
Q: What are the disadvantages of having an email provider monitor a user's emails?
A: Introduction: You may receive a large amount of spam, which may clog the system. If junk mail is ope...
Q: I am having trouble having this code run correctly. I need some assistance as I am now lost. main.c...
A: Here is the explanation:
Q: Prepare a program that can read the price (RM) of two books. Calculate and print the total price (RM...
A: Java code: import java.util.Scanner; public class Main{ public static void main(String []args...
Q: Write the definition of the class linkedQueueType, which is derived from the class unorderedLinkedLi...
A: the answer is given below:-
Q: Given four propositions A, B, C, and D, how many models are there for the sentence “(C or D) and ...
A: Given four propositions A, B, C, and D, how many models are there for the sentence “(C or D) and n...
Q: There are different stages in the instruction cycle.
A: Different cycles based on different instruction sets can be found in each computer's CPU, but they w...
Q: a) Reliability and Usability are important software quality attributes. Give a brief explanation of ...
A: a) Usability It is the customer’s ability to get work done with the system in an efficient and pleas...
Q: eginning work on this discussion forum, review the Web Programming, Advanced JavaScript reading and ...
A: Lets see the solution.
Q: Convert the following regular expressions to Non-deterministic Finite Automata (NFA): a) (b|c)*a(a[c...
A:
Q: why each device has more than one MAC address
A: A Devices may have more than one MAC address if the device has more than one network card. For examp...
Q: Describe three methods for system development in system analytics ?
A: Introduction: The goal of data warehousing and analytics systems is to analyze data, learn from it, ...
Q: List the top ten software programmes that you can't install on Windows 10.
A: Intro The top 10 software programmes that you cant install on windo 10 are given below:-
Q: The following is a system requirement for an inventory subsystem. The warehouse staff receives the p...
A: solution:
Q: What exactly is a microprocessor, and what are some of its features and applications?
A: Microprocessor can be defined as a type of scaled down electronic gadget that contains the athematic...
Q: Select the most appropriate data structure for each scenario. Search needs to be done frequently. A ...
A: Array is a linear data structure which stores the collection of similar data types. Linked list is b...
Q: What model is used to assess the reliability of software.
A: Intro There are many models available to test the software, some of them are: Waterfall Model MUSA M...
Q: (b) p→~9
A: Lets see the solution.
Q: Find the total number of binary strings of n length in which we don't have two consecutive zero's. I...
A: The program in java to count the number of binary strings without two consecutive zero's
Q: Please fill in the blanks for the following function so that it applies a green mask for the picture...
A: Python contains a large number of libraries to deal with machine learning problems. Pandas, NumPy is...
Q: 2. Given a Python program, add comments to the code. strL = ["A","B","C","D","E","F"] for str in st...
A: Above given is the python code. We have to add comments to the code.
Q: one page on introduction of security
A: The quantity and aggregate of data recognizes the personal information that we portion or divide and...
Q: 1. Using the Pumping Theorem, show that the language {a²´ | n > 0} is not regular.
A: Given, The answer is given below
Q: Q4: Based on Hill cipher algorithm, if the decryption key is -2 2 -5 17-11 11 1 13-12 In the case th...
A: // C++ code to implement Hill Cipher#include <iostream>using namespace std; // Following funct...
Q: uniform scaling and differential scaling
A: Uniform Scaling occurs when Sx and Sy are equal. If the values are not equal, the process is known a...
Q: interrupt cycl
A: The execution of the CPU involves a lot of cycles. A few of them are instruction, execution, interru...
Q: Define the characteristics that are required for test-driven development. In the event that you wish...
A: Test-driven development refers to a style of programming in which three activities that are: coding,...
Q: Ql: Select all possible correct answer(s): Based on Play fair algorithm, how many lette the cipher t...
A:
Q: EC 15. Draw 10 “right" stars of the same size without taking hand from paper
A: Given The answer is given below.
Q: What exactly is a device driver?
A: Introduction: A driver, also known as a device driver, is a collection of files that instructs a pie...
Q: In computer memory, how do local declarations get put in place? Yes, but there aren't any good reaso...
A: Introduction Memory Allocation: The technique by which the software creates "space" for information...
Q: This is the default value for fields declared to "hold" object instances.
A: Here the question is related to the default value for fields declared to hold object instances.
Q: Create a class named Lease with fields that hold an apartment tenant's name, apartment number, month...
A: Here, I have to write a java solution to the above question.
Q: SELECT ALL of the valid statements that instantiate an object from the Bicycle class shown below
A: Bicycle bike = new Bicycle(1,1,1);
Q: When it comes to the concept of dynamic memory, what exactly is it?
A: the answer is given below:-
Q: Instructions Songlyrics.java 1 class Songlyrics { public static void main(string[] args) { // write ...
A: Given The answer is given below.
Q: 13. T F In a mirrored array, each disk stores exactly the same data. 14. T F Write back in cache coh...
A: Q 13. True
Q: Starting with echo array.cpp, write a program which accepts an array of double values of length five...
A: Here, I have to write a C++ program to the above question.
Q: What is the difference between using the perspective property and using the perspective function?
A: What is the difference between using the perspective property and using the perspective function?
Q: Let E be an alphabet and A C E*. (a) If c E £ and AC E*, we define APPEND.(A) as {wc ɛ E* | w E A}. ...
A: Below is the answer to above question. I hope this will meet your requirement
Q: What is the distinction between Stored Procedures and Scripts? What is the function of each? How doe...
A: The difference between the stored procedure and script is, Stored procedures are prepared SQL statem...
Q: What hardware component permits a device's physical network connection?
A: Introduction: A modem is a piece of hardware that allows a computer to connect to the internet via a...
Q: Question 1: Provide the MIPS assembly instructions for each of the following machine codes. Also, pr...
A: To Solving above question let's understand about MIPS and Assembly instruction. Moreover how machine...
Q: Make a distinction between file storage structure and structure storage structure.
A: distinction between file storage structure and structure storage structure.
Q: Write a C++ program. Only use string, vector and iterator types from STL for solving these two probl...
A: Here is the answer with an output:-
Q: Example-3: Write a program to calculate the Area and volume for a sphere. Sol. -The area of sphere =...
A: Ans: Code: #include <iostream> using namespace std; int main(){ double pi=3.14; double r...
Q: What are the features of Brynjolfsson and McAfee studies?
A: Brynjolfsson and McAfee: Only Macintosh and Brannen were selected for the Top 50 Intellectuals and T...
Q: Assume that the circuit in Figure 5.3 indicates an invalid code for binary 1000 and 1001 in addition...
A: The circuit contains three NAND gates, one OR and one NOT gate. two inputs are provided at the initi...
Q: What is discipline-specific database?
A: A Discipline-specific database is a collection of specialized information with a narrow focus. The b...
Q: 1. Analysis of some successful real-world Expert Systems (MYCIN, CYC, DENDRAL, DART, XCON, PROPSPECT...
A: Expert systems are divided into five categories. Frame-based expert system - Expert systems with a v...
SELECT ALL of the instance fields/variables from the class declaration below.
Step by step
Solved in 2 steps
- public class LabProgram { public static void main(String args[]) { Course course = new Course(); String first; // first name String last; // last name double gpa; // grade point average first = "Henry"; last = "Cabot"; gpa = 3.5; course.addStudent(new Student(first, last, gpa)); // Add 1st student first = "Brenda"; last = "Stern"; gpa = 2.0; course.addStudent(new Student(first, last, gpa)); // Add 2nd student first = "Jane"; last = "Flynn"; gpa = 3.9; course.addStudent(new Student(first, last, gpa)); // Add 3rd student first = "Lynda"; last = "Robison"; gpa = 3.2; course.addStudent(new Student(first, last, gpa)); // Add 4th student course.printRoster(); } } // Class representing a student public class Student { private String first; // first name private String last; // last name private double gpa; // grade point average…Public Class SavingsAccount { float interest; float FixedDeposit; SeniorAccount(float interest, float FixedDeposit) { this. interest = interest; this.fixedDeposit= FixedDeposit; } float calculateInterest(); { System.out.println(“Calculating Savings Account Interest”); return(FixedDeposit*interest/100); } } Public Class SeniorAccount extends SavingAccount { float seniorInterest; SeniorAccount(float interest, float FixedDeposit) { this.seniorInterest=interest; super(interest, FixedDeposit) } float calculateInterest() { System.out.println(“Calculating Savings Account Interest”); return(FixedDeposit*seniorinterest/10); } } Public static void main(String args[]) { SavingsAccount saving = new SavingsAccount(6,100000); System.out.println(saving.calculateinterest()); SeniorAccount senior=new seniorAccount(10,100000); System.out.println(Senior.calculateInterest()); } Correct the syntax and logical errorPublic Class SavingsAccount { float interest; float FixedDeposit; SeniorAccount(float interest, float FixedDeposit) { this. interest = interest; this.fixedDeposit= FixedDeposit; } float calculateInterest(); { System.out.println(“Calculating Savings Account Interest”); return(FixedDeposit*interest/100); } } Public Class SeniorAccount extends SavingAccount { float seniorInterest; SeniorAccount(float interest, float FixedDeposit) { this.seniorInterest=interest; super(interest, FixedDeposit) } float calculateInterest() { System.out.println(“Calculating Savings Account Interest”); return(FixedDeposit*seniorinterest/10); } } Public static void main(String args[]) { SavingsAccount saving = new SavingsAccount(6,100000); System.out.println(saving.calculateinterest()); SeniorAccount senior=new seniorAccount(10,100000); System.out.println(Senior.calculateInterest()); } Rubric: Correct the syntax and logical errors Proper working code
- Based on Figure 3, create a class named Child that inherits the Father class. Declare an instance name location (String) for class Child. [3 marks]Public classTestMain { public static void main(String [ ] args) { Car myCar1, myCar2; Electric Car myElec1, myElec2; myCar1 = new Car( ); myCar2 = new Car("Ford", 1200, "Green"); myElec1 = new ElectricCar( ); myElec2 = new ElectricCar(15); } }Incorrect Question 6 public class Shape { Color fillColor; } public Shape() { fill Color = Color. RED; } } public Shape(Color fillColor) { this.fill Color = fillColor; } public class Circle extends Shape { int radius; public Circle() { radius = 1; } public Circle(int radius) { this.radius = radius; } public Circle(int radius, Color fillColor) { } super(fillColor); this.radius = radius; Circle c1= new Circle(); Circle c2= new Circle(5); Circle c3 = new Circle(10, Color.BLUE); Which of the following are correct? c2 has radius 5 c1 is red c2 is red c3 has radius 10 c3 has radius 1 c3 is red c1 is blue ✔c2 has radius 10 c3 is blue c1 has radius 5 c1 has radius 1 c2 has radius 1 c2 is blue
- public class Person { private String personID; private String firstName; private String lastName; private String birthDate; private String address; public Person(){ personID = ""; firstName = ""; lastName = ""; birthDate = ""; address = ""; } public Person(String id, String first, String last, String birth, String add){ setPerson(id,first,last,birth,add); } public void setPerson(String id, String first, String last, String birth, String add){ personID = id; firstName = first; lastName = last; birthDate = birth; address = add; } public String getFirstName(){ return firstName; } public String getLastName(){ return lastName; } public String getBirthdate(){ return birthDate; } public String getAddress(){ return address; } public void print(){ System.out.print("\nPerson ID = " + personID); System.out.print("\nFirst Name = " +firstName); System.out.print("\nLast Name = " +lastName); System.out.print("\nBirth Date = " +birthDate); System.out.print("\nAddress = " +address); } public String…Class Quiz public Quiz (int quesList, int quesMissed) {quesList = this.quesList;quesMissed = this.quesMissed;} private void calculate(){// get the point worth of each question and calculate final scorepointsPerQues = (100/quesList);scoreQuiz = quesList - quesMissed;} Class PassFailQuiz public PassFailQuiz (int quesList, int quesMissed, int scoreQuiz) { super(quesList, quesMissed);} How do I move scoreQuiz from private void calculate() to equal the third constructor value in PassFailQuiz?public class Person { private String personID; private String firstName; private String lastName; private String birthDate; private String address; public Person(){ personID = ""; firstName = ""; lastName = ""; birthDate = ""; address = ""; } public Person(String id, String first, String last, String birth, String add){ setPerson(id,first,last,birth,add); } public void setPerson(String id, String first, String last, String birth, String add){ personID = id; firstName = first; lastName = last; birthDate = birth; address = add; } public String getFirstName(){ return firstName; } public String getLastName(){ return lastName; } public String getBirthdate(){ return birthDate; } public String getAddress(){ return address; } public void print(){ System.out.print("\nPerson ID = " + personID); System.out.print("\nFirst Name = " +firstName); System.out.print("\nLast Name = " +lastName); System.out.print("\nBirth Date = " +birthDate); System.out.print("\nAddress = " +address); } public String…
- public class Player { private int jerseyNumber; private int rating; public Player(int jerseyNumber, int rating) { this.jerseyNumber = jerseyNumber; this.rating = rating; } public int getJerseyNumber() { return jerseyNumber; } public void setJerseyNumber(int jerseyNumber) { this.jerseyNumber = jerseyNumber; } public int getRating() { return rating; } public void setRating(int rating) { this.rating = rating; } @Override public String toString() { return "Jersey number: " + jerseyNumber + ", Rating: " + rating; }}public class RosterManager { private ArrayList<Player> roster; public RosterManager() { roster = new ArrayList<>(); } public void addPlayer(Player player) { roster.add(player); } public void updatePlayerRating(int jerseyNumber, int newRating) { for (Player player : roster) { if (player.getJerseyNumber() ==…This is the Exam class mentioned public class Exam { private int day; private int month; private int year; private int hour; private int minutes; private double maxMarks; private final String type; private final int order; private static int labExamCounter = 0; private static int midtermExamCounter = 0; public static final String LAB_EXAM = "Lab Exam"; public static final String MIDTERM_EXAM = "Midterm Exam"; public static final String FINAL_EXAM = "Final Exam"; public Exam(String type) { this (type, 0, 0, 0, 0, 0, 0); } public Exam(String type, double maxMarks) { this (type, maxMarks, 0, 0, 0, 0, 0); } public Exam(String type, double maxMarks, int day, int month, int year) { this (type, maxMarks, day, month, year, 0, 0); } public Exam(Exam other) { this (other.getType(), other.getMaxMarks(), other.getDay(), other.getMonth(), other.getYear(), other.getHour(),…8. OOPS Theory #6 public class Car { public void horn() { System.out.println("Horn horn"); } } public class Ferrari extends Car { public void horn() { System.out.println("Ferarriiiiii"); } } public static void main(String[] args) { Ferrari ferrari = new Car(); ferrari.horn(); } Pick ONE option Horn horn Ferarriiii Cannot compile Runtime exception Clear Selection 9. OOPS Theory #7 In Java, we can achieve the abstraction by creating the blueprint of an object and only have abstract methods. What do we call this? Pick ONE option Interface Encapsulation Instance Protected Clear Selection