using static System.Console; class AddBooks { } static void Main() { } Book book1= new Book ("Silas Marner", 350, 15.95); Book book2= new Book ("Moby Dick", 250, 16.00); Book book3; book3= book1 + book2; WriteLine("The new book is \"{0}\"", book3. Title); WriteLine("It has {0} pages and costs {1}", book 3. NumPages, book3.Price.ToString("C"));
Q: Detail what you mean by "cloud computing" and the benefits you'll get by using this method
A: Introduction: Cloud computing refers to the delivery of computing services such as storage,…
Q: Please draw an ERD for this mini case. At NCU, students take classes (sections). Each section is a…
A: Here's an ERD for the mini case +--------------+ +--------------+ | Course…
Q: Is social cohesion stronger or weaker as a consequence of internet and globalization? In what ways…
A: Social cohesion stronger or weaker as a consequence of internet and globalization: The impact of the…
Q: There are five main reasons why it's crucial to regularly install patches and updates for all your…
A: Introduction Software: Software is a collection of data and instructions that specify what to do to…
Q: What exactly are compiler optimizers? When would you, as a software developer, utilize anything like…
A: Compiler optimizers are software tools that are used to automatically improve the performance of…
Q: Explain illustrated Software engineering-why? Its importance in software development.
A: Software Engineering is the study and practice of engineering concerning the construction, design,…
Q: What does high-level routing include in the zone routing protocol?
A: What advanced routing features does the zone routing protocol include ZRP, or Zone Routing Protocol,…
Q: What is Transference and Counter Transference
A: The answer is given in the below step
Q: What are the advantages of using code reviews as part of the software development process to ensure…
A: Software development: Designing, building, testing, and managing software applications are all…
Q: Which aggregation operations are allowed for struct variables but not for array variables?
A: The following is a list of the aggregate operations that may be performed on variables of type…
Q: Analyze and evaluate various software testing strategies. The quality of software is impacted by…
A: Introduction: Software testing is a critical process in software development that helps ensure that…
Q: So how does the fact that Symbian, Android, and the iPhone all employ the same file-delete algorithm…
A: Introduction: The file-delete algorithm is a process used to permanently delete files from a…
Q: This article explains the several design phases that take place during the process of developing a…
A: Database development process: An important part of software engineering is breaking down the…
Q: Clinicians must now store patient data in databases accessible from many places for certain…
A: The answer is explained in the below step
Q: Explain source data automation (SDA) and provide at least two (2) benefits of using this technology.…
A: Your answer is given below.
Q: Write about the current directory system's container. Note any four container features.
A: In computer file systems, a container is a directory or folder that can hold other directories or…
Q: According to the results of the tiny world experiment, it took 5.2 steps to go from one person to…
A: Our folklore is profoundly ingrained in the idea that we are all connected by only six C—six other…
Q: Q2: The sizeof operator can be used to determine the number of bytes in memory by a variable of a…
A: #include <iostream> int main() { std::cout << "size of char: << sizeof(char)…
Q: How do the various Nmap scanning types interact with the three-way handshake when it comes to port…
A: Nmap scanning techniques is used for scanning the port. There are certain techniques which comes for…
Q: Find out whether the software you're considering for managing projects might help you save money.
A: The program aids project managers, teams, and individual contributors with job completion,…
Q: Get a thorough understanding of systems analysis and design, as well as the role of a systems…
A: Introduction A systems analyst is a type of professional who is very important to the creation and…
Q: Please give me the answer with step by step solution Qns:CONVERT THE FOLLOWING TO MIPS CODE
A: To convert the given code to MIPS assembly code, we will use the following register names: $s0 for…
Q: The term "prototyping" refers to a method used in software development.
A: Building a simulated user interface for ideation, evaluation, and user input is called prototyping…
Q: In order to be effective, what three features does a network need to have? Take a moment and think…
A: Network is a interconnection of many computer systems which share resources and these computers are…
Q: Explain the method through which proficient interface designers execute their duties.
A: A crucial component of device architecture and user experience, or UX, is interface design.…
Q: Routers provide certain network functions that switches cannot:
A: Router A router is a networking device that connects and sends data between multiple networks. It…
Q: There are three conditions that must hold true for a network to be productive and effective. Please…
A: Introduction: Efficiency is defined as the ability to achieve a goal with little financial, human,…
Q: In your own words, describe the connecting layer. Be careful to include issues like as the goal,…
A: Hosts and routers on the link layer are referred to as nodes and may interact with each other via…
Q: Using a basic example, we will examine how the PN generator is used in the transmitter (Tx) and…
A: Please find the answer in next step
Q: **6.25 (CONVERT MILLISECONDS TO HOURS, MINUTES, AND SECONDS) Write a method that converts…
A: This provided Java code defines a public static method called convertMillis that takes a long…
Q: Why don’t multiple interfaces create the same problems that multiple inheritance in C++ creates.
A: In this question we need to explain why multiple interfaces in programming languages like C# and…
Q: How can I use a SQL query via the command line interface to import a MySql database?
A: MySQL: The relational database management system MySQL is free and open-source Software. It ranks…
Q: If you could ask the compiler about his or her family, who would you ask? Give us a brief summary of…
A: A compiler translates high-level language source code to low-level language. Compiler's relatives…
Q: Can we get an overview of the compiler and some explanation of why testability is important?
A: A compiler is a computer program that translates source code written in a high-level programming…
Q: Determine the dangers of the various authentication methods and provide a countermeasure for the…
A: Authentication is the process of verifying the identity of a system or user. It is a critical…
Q: Create a list of the top ten reasons why using artificial neural networks in Palestine would be…
A: The whole response is provided below. Using Artificial Neural Networks has advantages in Palestine:
Q: Is this true? Dynamically bound virtual functions need pointers
A: Given: Please indicate whether or not the following is true: Virtual functions can only be…
Q: There must be a summary of the systems design phase.
A: An overview of the phase in which the system is being designed: A user interface, inputs and…
Q: Make a PowerPoint presentation of a certain length (as specified by your teacher) and deliver it to…
A: Given: Prepare a PowerPoint presentation of the length recommended by your teacher and present it to…
Q: If you were to name three items that every given network absolutely needed to operate efficiently,…
A: Performance, dependability, and security are the three criteria that a network must satisfy in order…
Q: It's worth noting that the file deletion algorithms used by Symbian, Android, and the iPhone are all…
A: The statement "It's worth noting that the file deletion algorithms used by Symbian, Android, and the…
Q: How would you illustrate the software structure review process using real-world examples?
A: Provide a thorough explanation of the software structure review procedure using examples. The…
Q: QUESTION 3 Which of the following is true about Introduce parameter object refactoring technique?…
A: Introduction The Introduce Parameter Object refactoring technique is a way of grouping related data…
Q: In the context of software updates, what is the distinction between a slipstream upgrade, patch,…
A: Introduction Software Update: A software update is a release of new or improved software code that…
Q: The efficacy of Cleanroom Software Engineering may be attributed to its central principle of defect…
A: Introduction: Software testing is the process of evaluating a software product to detect differences…
Q: Addressing each Interrupt class separately avoids confusion. Find and record the timings of each…
A: An interrupt is the processor's reaction to an occurrence that demands software attention in digital…
Q: How to identify, evaluate, and contrast different types of back-end compiler architectures?
A: Identify different types of back-end compiler architectures: A compiler is a software tool that…
Q: What are the key differences between creating network apps and designing other kinds of…
A: Network application A network application is any program that runs on one host and interacts with…
Q: Here, the 20-bit address bus and its memory addressing capabilities are broken out in detail.…
A: A microcontroller is a small integrated circuit specifically built to take charge of a certain…
Q: What would happen if a huge event affected cloud computing? Cloud computing's long-term effects? If…
A: "Cloud computing" refers to several forms of online data processing services. Unlike traditional…
Look at Figures 9-35 and 9-36 on page 392 of your book. There should be two blocks of code: A Book class and an AddBooks program.
In your IDE, create a new .cs file called books.cs, then type this code (you can type both parts in books.cs), then compile it and run it.
There IS an error with the code in pics
Step by step
Solved in 3 steps with 1 images
- class Course { private String courseNumber; private String courseName; private int creditHrs; public Course (String number, String name, int creditHrs){ this.courseNumber = number; this.courseName = name; this.creditHrs = creditHrs; } public String getNumber() { return courseNumber; } public String getName() { return courseName; } public int getCreditHrs() { return creditHrs; } public void setCourseNumber(String courseNumber) { this.courseNumber = courseNumber; } public void setCourseName(String courseName) { this.courseName = courseName; } public void setCreditHrs(int creditHrs) { this.creditHrs = creditHrs; }}class Student { private String firstName; private String lastName; private String gender; private String phoneNumber; private String email; private String jNumber; protected ArrayList courseList; public String getFullName() {…public class Application { public static void main(String[] args) { Employee empl = new Employee(); empl.firstName = "Ali"; empl.lastName = "Omar"; empl.salary = 20000; Employee emp2 = new Employee(); emp2.firstName = "Mohamed"; emp2.lastName = "Nour"; emp2.salary = 30000; System.out.println("- System.out.printin("- empl.employeeSalary(); System.out.println("- empl.checkEmployeeSalary(emp1.salary, emp2.salary); System.out.printin("- System.out.println("- printEmployee(emp2); System.out.printin("- Employee employeeArr[] = new Employee[2]: employeeArr[0] = empl; employeeArr[1] = emp2; Application a = new Åpplication(); a.printArrayofEmployee(employeeArr); Non static (instance) start to call Static function to print ---------"); "); - Non Static function to print - --"); Non static (instance) start to call same class Static function to print --------); -"); Non Static function to print ----); System.out.println("- System.out.printin("- System.out.printin("Salary : " + Employee.salary);…class Main { publicstaticvoid main(String[] args) { // Coin myPenny = new Coin(CoinType.PENNY); // Coin myNickel = new Coin(CoinType.NICKEL); // Coin myDime = new Coin(CoinType.DIME); // Coin myQuarter = new Coin(CoinType.QUARTER); // Coin myHalfDollar = new Coin(CoinType.HALF_DOLLAR); // Coin myDollar = new Coin(CoinType.DOLLAR); // System.out.println(printValue(myPenny)); // System.out.println(printValue(myNickel)); // System.out.println(printValue(myDime)); // System.out.println(printValue(myQuarter)); // System.out.println(printValue(myHalfDollar)); // System.out.println(printValue(myDollar)); } publicstatic String printValue(Coin c){ String result = ""; // result = String.format("The value of a %s is $%.2f", c.getName(), c.getValue()); return result; } }
- public Account (double initialBalance){balance = initialBalance;}public Account () {balance = 0;}public void deposit (double amount){balance += amount; // Balance = balance + amount}public void withdraw (double amount){balance -= amount; // balance = balance - amount}public void close (){balance = 0;}public String toString(){return "balance: " + balance;}} Modify the Account class by adding two instance variables containing the customer's name and the account number. Both will be String objects. Modify the primary constructor for the Account class so that it takes three parameters: the balance, the customer's name, and the account number. Add instance methods named getCustomerName and getAccountNumber that return the customer name and account number.class Lease{ private String name; private int aptNumber; private double rent; private int term; private static final int FEE = 10; public Lease(){ name = "XXX"; aptNumber = 0; rent = 1000; term = 12; } public void setName(String tenant) { name = tenant; } public void setAptNumber(int apt){ aptNumber = apt; } public void setRent(double monthRent) { rent = monthRent; } public void setTerm(int t){ term = t; } public String getName(){ return name; } public int getAptNumber(){ return aptNumber; } public double getRent(){ return rent; } public int getTerm(){ return term; } public void addPetFee(){ rent = rent + FEE; } } Create a class named TestLease as instructed below: Instantiate four Lease objects in the main()method. Change the aptNumber value for the first object to 20 Change the rent value…package application; public class Employee { private int eid; private String name; private String department; private float salary; private String mobileNo; public Employee() { super(); } public Employee(int eid, String name, String department, float salary, String mobileNo) { super(); this.eid = eid; this.name = name; this.department = department; this.salary = salary; this.mobileNo = mobileNo; } public int getEid() { return eid; } public void setEid(int eid) { this.eid = eid; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getDepartment() { return department; } public void setDepartment(String department) { this.department = department; } public float getSalary() { return salary; } public void setSalary(float salary) { this.salary = salary; } public String getMobileNo() { return mobileNo; } public void setMobileNo(String mobileNo) { this.mobileNo = mobileNo; } } Is…
- C# problem when printing Weigh no value shows up code public class HealthProfile{private String _FirstName;private String _LastName;private int _BirthYear;private double _Height;private double _Weigth;private int _CurrentYear;public HealthProfile(string firstName, string lastName, int birthYear, double height, double weigth, int currentYear){_FirstName = firstName;_LastName = lastName;_BirthYear = birthYear;_Height = height;_Weigth = weight;_CurrentYear = currentYear;}public string firstName { get; set; }public string lastName { get; set; }public int birthYear { get; set; }public int height { get; set; }public double weight { get; set; }public int currentYear { get; set; }public int Person_Age{get { return _CurrentYear - _BirthYear; }}public double Height{get { return _Height; }}public double Weight{get { return Weight; }}public int Max_Heart_Rate{get { return 220 - Person_Age; }}public double Min_Target_Heart_Rate{get { return Max_Heart_Rate * 0.65; }}public double…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); } }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 error
- 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()); } Rubric: Correct the syntax and logical errors Proper working codeInstrument.java public class Instrument { protectedStringinstrumentName; protectedStringinstrumentManufacturer; protectedintyearBuilt, cost; publicvoidsetName(StringuserName) { instrumentName = userName; } publicStringgetName() { return instrumentName; } publicvoidsetManufacturer(StringuserManufacturer) { instrumentManufacturer = userManufacturer; } publicStringgetManufacturer(){ return instrumentManufacturer; } publicvoidsetYearBuilt(intuserYearBuilt) { yearBuilt = userYearBuilt; } publicintgetYearBuilt() { return yearBuilt; } publicvoidsetCost(intuserCost) { cost = userCost; } publicintgetCost() { return cost; } publicvoidprintInfo() { System.out.println("Instrument Information: "); System.out.println(" Name: " + instrumentName); System.out.println(" Manufacturer: " + instrumentManufacturer); System.out.println(" Year built: " + yearBuilt); System.out.println(" Cost: " + cost); } } StringInstrument.java // TODO: Define a class: StringInstrument that is derived from…package myq2; class Sale { int sellerID, milksale, buttersale; Sale(int sid, int ms, int bs) { sellerID = sid; milksale- ms; buttersale - bs; } elling dairy ifferent days using OOP ers, based on YQ2 int totalsaving(){ return milksale + buttersale; } } ale public class Myq2 { public static void main(String[] args) { Sale s = new Sale(111, 10, 20); System.out.println("Seller ID" + s.sellerID ); System.out.println("Total Saving "+s.totalsaving()); } } 4) Use the parameterized constructor to initialize the member variables of the class. 5) Display the following details of seller using object of Sale class. seller ID, totalsaving Solution to program