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: 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: Expound on how the OS's device manager ensures optimal performance.
A: Operating system:- An operating system (OS) is a software program that provides a platform for the…
Q: What is the computer networking DNS attack?
A: Here is your solution -
Q: E-commerce encryption and security.
A: Secure online shopping These rules help to guarantee safe internet transactions. It contains…
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: A corporation uses Kerberos authentication. What happens if the AS (authentication server) or TGS…
A: Kerberos: Kerberos is an authentication protocol that operates on client/server networks. It employs…
Q: On the basis of your understanding of cognitive psychology, suggest five criteria that should be…
A: Guidelines are just what their name implies: guidelines. They give an uniform appearance and feel…
Q: Just in case you've forgotten where you saved the update.txt file on your computer, print a…
A: For Locating File Location If you just know the file's name and not its location, you may still…
Q: What form of security was used the most often when computers were first being developed?
A: Computing: Computing is the process of completing a job using a computer or computer technology. The…
Q: How can bridges and routers reduce collision domain?
A: Bridges are a Layer 2 device that divides collision domains by identifying which MAC addresses are…
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: Why did it make sense to create software that accelerated the process of finding solutions to…
A: Creating software that accelerates the process of finding solutions to problems has several…
Q: There are three conditions that need to be fulfilled for a network to function well. Tell me about…
A: Introduction: A network is a collection of computers, servers, mainframes, network devices,…
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: CHALLENGE ACTIVITY 449096.3145616.qx3zqy7 Jump to level 1 Subtract each element in origList with the…
A: The given templates takes care of reading the original list and offset amount list. After that, a…
Q: What are the challenges posed by symmetric key systems?
A: Definition: Data is scrambled through the process of encryption so that only authorised users are…
Q: Dissect NP and P, then provide concrete instances to show how they vary in use.
A: NP: - NP stands for nondeterministic polynomial time. In this class it includes problems that can be…
Q: This is a definition of explanatory language:
A: The use of language in order to explain, demonstrate, and elaborate on a certain subject, idea, or…
Q: Provide a working definition of the term "magnetic disc."
A: Storage:- Storage is the process of keeping information in an electronic, physical, or digital…
Q: Do you provide any kind of military discount to your clients?
A: Yeah, I provide military discounts to our customers who are in the armed forces because it promotes…
Q: SANS' mission?
A: The SANS (SysAdmin, Audit, Network, and Security) Institute is a leading organization in the field…
Q: This is a definition of explanatory language:
A: Instruction A command or directive sent to a computer processor by a computer program is referred to…
Q: Do you think RTN is important?
A: Real-time networking (RTN) refers to the ability of a network to deliver data with predictable and…
Q: Which tasks should be performed by your operating system's kernel if you decide to make it very…
A: If you decide to make your operating system's kernel very small, you'll need to carefully choose…
Q: When applied to this situation, what exactly does the term "software scope" mean?
A: Software: Software refers to a set of instructions and data that tell a computer what to do and how…
Q: Is the new method for erasing files affecting any specific operating systems?
A: Given: How have the Symbian, Android, and iPhone operating systems been impacted by the file…
Q: Is SSH just used for remote access, or is it put to any other uses? Do you have any suggested…
A: Introduction: A cryptographic network protocol called SSH (Secure Shell) is used to encrypt network…
Q: Provide an explanation as to why seeing the adoption of ICT as a process that is both continuous and…
A: Most businesses have a respectable assortment of information and communication technology gadgets…
Q: How many more questions do you need answered before you can determine if database as a service is…
A: Introduction: Database as a service (DBaaS) is like a cloud computing managed service offering that…
Q: Assume the following register contents: $t0 = 0x7523AFOD, $t1 = 0xD4C3B2A1 What is the value of $t2…
A: First, let's break down the instructions: srl $t2, $t0, 3: This performs a logical right shift of…
Q: How does the Phases of Compiler really work? Provide some examples of each step of the procedure.
A: Given: What are the Phases of Compiler's fundamental features? Please explain each stage using…
Q: Browse the websites of Microsoft, Oracle, Cisco, and two more of your choice. Find good internet…
A: With the development of software, security has become a top issue for many companies that create…
Q: Which aggregation operations are allowed for struct variables but not for array variables?
A: Introduction: To construct array variables, first define the array type and then declare or create…
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: Is there a range of options available for the improvement of older systems? At what point does it…
A: Introduction Software in a system refers to the programs, instructions, and data that are used to…
Q: What exactly is a selection structure with just one possibility, and how does it function?
A: What exactly is a selection structure with just one possibility, and how does it function? Answer:…
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: Operating systems for multiprogramming, multiprocessing, and distributed processing must be…
A: The answer to the question is given below:
Q: What are the advantages of cloud computing? What are the risks and difficulties of cloud computing,…
A: Introduction: Fast scalability considers time to market and licence accessibility. Your workloads…
Q: In regards to corporate physical security, why would a business want information processing…
A: Introduction: Information processing refers to the collection, manipulation, storage, and retrieval…
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: How can autonomic computing help cloud computing?
A: Autonomic computing and cloud computing are two related fields that can benefit from each other in…
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: How does non-uniform memory access operate in the real world?
A: Form memory access is a configuration element that enables a more thorough functioning of these…
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: Definition of system software is required.
A: Operating systems: Operating systems and applications are the two most common categories of computer…
Q: In class we did the exercise of writing the IPO diagram for determining the tip and tax for a…
A: Answer: (c) The items ordered for each person in the party.
Q: Create a Google account and prepare an online application for the employment opportunity that has…
A: For the aforementioned possibility to work at Google Pakistan, an online application must be filed.…
Q: write the code that computes z= square root of y - x
A: I have written the code in C++. We need to use sqrt() defined in cmath library to compute the value…
Q: I can't seem to properly summarise the details of a technical report.
A: An overview of the phase in which the system is being designed: A user interface, inputs and…
in C#
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.
NOTE: There IS an error with the code
Step by step
Solved in 4 steps with 2 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…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…
- 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…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 codepackage 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 programInstrument.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…