Create a book object which contains at least four different attributes (it should contains the name of the book and the publication date).
Q: Write a recursive method that calculates the following series: F(n)=…
A: In computer programming can be defined as the operation which helps in changing one thing instead of…
Q: A______ file consists of one or more lines of non-formatted characters А Answer:
A: A computer file is a computer resource for recording data in a computer storage device primarily…
Q: What was the "Analytical Engine" and how did it work?
A: Engine Analytical: An analytical engine is a machine that was initially conceived by Charles Babbage…
Q: On the sender side, the main part of the Meltdown attack comprises only three instructions,…
A: A breakdowns attack: Although a command is being performed, Meltdown takes advantage of a race…
Q: A GSM system uses 124 channels and each channel is divided into 8 time slots. What is the maximum…
A: The answer is
Q: Q#Do the time complexities of a singly linked list differ from the time complexities of the…
A: Do the time complexities of a singly linked list differ from the time complexities of the operations…
Q: Give an example of a feature of a CASE tool.
A: CASE tools: Computer Aided Software Engineering tools are also known as CASE tools. CASE tools are…
Q: Computer Science Need help with PHP coding, I want to create a simple web that read a GitHub…
A: PHP coding, I want to create a simple web that read a GitHub repository and download the content in…
Q: 4. To burn a CD-R, the laser must pulse on and off at a high speed. When running at 10x speed in…
A: Answer
Q: Discuss the implications of cloud computing and Web 2.0.
A: Cloud computing's impact Cloud computing adoption has a major influence on information technology…
Q: The following is a list of the two general abilities that an object can have.
A: Answer:- An object consists of two general capabilities, 1. Properties…
Q: Why do we need official standards for copper cable and fiber-optic cable?
A: Dear learner , hope you are doing well , I will try my best to answer this question. Thank You!!
Q: How many hosts can you have with a subnet of 192.168.1.0/25? O 14 27
A: The given address is 192.168.1.0/25
Q: You provide a significant explanation to support your solution to the question, "What is the…
A: Foundation: A distributed transaction is a sequence of data activities that spans two or more data…
Q: There are distinctions between hard and symbolic linkages.
A: What is Hard Linkage ? A hard link is a direct reference to a file's inode. Only files, not…
Q: 11Given the code segment below, what should be the data type of a in the function prototype of…
A: Here the function call is func(aData) ; Here the passed parameter is name of array whose datatype is…
Q: A binary executable file built with dynamic linking includes a call to printf(). The memory address…
A: Answer is given below-
Q: n Name System) a
A: The Domain Name System (DNS) is the various leveled and decentralized naming system used to…
Q: It is the standard computer language (by ANSI and ISO) that creates and manages relational…
A: SQL, structured query language, is the ISO/ANSI standard language for creating and maintaining…
Q: What is the difference between a passive and an aggressive assault strategy?
A: This question tells about the difference between a passive and an aggressive assault strategy.
Q: A _____ access data allows the user to move to any record as long as he knows the location of the…
A: We can access data in 2 ways: Sequential access Random/Direct access
Q: a Ports of the 8051 Microcontroller are characterized as All require pull-up resistors between port…
A: Option A All the require pull up resistors between port and load
Q: Are the proliferation of mobile devices that are powerful, employ apps instead of full-fledged…
A: Are the proliferation of mobile devices that are powerful, employ apps instead of full-fledged…
Q: Write a function that converts an object into an array, where each element represents a key-value…
A: Please refer below code and output: Language used is JAVASCRIPT: function toArray(obj){ var…
Q: There are two network models and name them while providing a couple of advantages and disadvantages…
A: There are two computer network model i.e OSI model and TCP/IP model on which the whole data…
Q: Given the code segment below, what should be the data type of a in the function prototype of…
A: Here the data type of a in the function prototype of func() should be double. This is because in the…
Q: What is the Bill of Rights, and how does it work?
A: A bill of rights, also known as a declaration of ownership or a charter of rights, lists a country's…
Q: Describe and explain in DETAILED the attacks on cryptosystems (reaction paper). Thank you.
A: A cryptosystem attack is a method of circumventing the security of cryptographic system by finding a…
Q: Write a program in c to detect if the system will face any deadlock in the future. If a deadlock is…
A: CODE- //c Code//header files#include <stdio.h>//Global variable declarationint…
Q: Subtract 1101 and 1010. Both are binaries
A: Binary subtraction is one of the four binary operations where we perform the subtraction method for…
Q: n the attached graph, which would be the best algorithm to determine whether a cycle exists? Group…
A: b. Topological Sort
Q: Discuss systems analysis and design, as well as the job of a systems analyst, in this course
A: Intro System analysis and design: System analysis and design are defined as the method of…
Q: Examine how technology affects health-care data systems.
A: Technology affects health care data systems: Medical technology improvements are expensive. Thus,…
Q: Packages for Speech Recognition in Python are listed below.
A: According to the question the speech recognition is that machine of ability to listen the spoken…
Q: Suppose you have a RISC machine with a 2.7 GHz clock (i.e., the clock ticks 2.7 billion times This…
A: The answer is
Q: An addressing mode which is very fast and useful for variables which are used frequently
A: The direct addressing is faster because overall it takes fewer cycles to fetch and execute for…
Q: there a fundamental difference in the way tuples and lists are created an
A: Lets see the solution.
Q: Java program Write an application for Limpopo's Car Care Shop that shows a user a list of available…
A: As per the requirement program has been developed. Algorithm: Step 1: Write the main() method Step…
Q: Please explain How long in Big-O does it take to update an element in an array? Group of answer…
A: => i have provided my logic in step-2.
Q: To what extent does a system model vary from other types of models, and why is that the case?…
A: The system model is defined as follows and is used to represent a variety of ideas and domains: The…
Q: Because of the fast advancement of technology, the nature of cyberspace contact is changing swiftly.…
A: Given: The term "cyberspace" refers to a global network that links millions of digital devices. The…
Q: Create a relational database that is at the very least in 3NF.
A: Relational database management system: A relational database organizes data into tables that may be…
Q: Consider finding the root of f(x) = e*(3.2 sin(x) 0.5 cos(x)) on the interval [3, 4], this time with…
A: MATLAB CODE f=@(x)exp(-x)*(3.2*sin(x)-0.5*cos(x));% If user want to give input for a,b and delta%…
Q: Below are some lists of integers, labelled A to E: A: [18, 15, 13, 17, 12, 14, 16, 11] B: [28, 25,…
A: some lists of integers, labelled A to E: A: [18, 15, 13, 17, 12, 14, 16, 11] B: [28, 25, 26, 27, 22,…
Q: What is the difference between active attacks and passive attacks?
A: Security assaults are classified as active and passive. In an active attack, the attacker attempts…
Q: program that prints 10x10 multiplication table using while loop in ja
A: According to the Question below the solution: Output:
Q: Please explain What is the worse-case performance of quicksort? Select the correct answer with the…
A: Options : O(n*n), because during the partitioning stage it is possible that we select a 'bad'…
Q: byte offset of 2 in an address means that each set in a multiway set associative (or in the directly…
A: Note : Answering the first three subparts as per the guidelines. Given Data : Set associative = 4…
Q: You provide a significant explanation to support your solution to the question, "What is the…
A: Databases are used to store data. A transaction is a logical unit of work composed of one or more…
Q: Which of the following legacy wireless standards operate at a maximum bandwidth of less than 20…
A: The MBPS is bandwidth unit, which is used to give a description of the speed of the digital data…
1. Create a book object which contains at least four different attributes (it should contains the name of the book and the publication date). Use the notation which is given below:
Define Book which made of {
.anAttribute
.anotherAttribute
}
2. Create an array of Books consists of 5 books.
3. Write an
4. Write an algorithm which is determining the oldest book in the array.
Step by step
Solved in 2 steps
- please help me with the pseudocode of the program for the project. Need a class which will contain: Student Name Student Id Student Grades (an array of 3 grades) A constructor that clears the student data (use -1 for unset grades) Get functions for items a, b, and c, average, and letter grade Set functions for items a, n, and c Note that the get and set functions for Student grades need an argument for the grade index. Need another class which will contain: An Array of Students (1 above) A count of number of students in use You need to create a menu interface that allows you to: Add new students Enter test grades Display all the students with their names, ids, test grades, average, and letter grade Exit the program Add comments and use proper indentation. Nice Features: I would like that system to accept a student with no grades, then later add one or more grades, and when all grades are entered, calculate the final average or grade. I would like the system to display the…Introduction In this project, you will complete a C++ class by writing a copy constructor, destructor, and assignment operator. Furthermore, you will write a tester class and a test program and use Valgrind to check that your program is free of memory leaks. Finally, you will submit your project files on GL. If you have submitted programs on GL using shared directories (instead of the submit command), then the submission steps should be familiar. In this project we develop an application which holds the information about a digital art piece. There are two classes in this project. • The Random class generates data. The implementation of this class is provided. It generates random int numbers for colors. To create an object of this class we need to specify min and max values for the constructor. The colors fall between 30 and 37 inclusively. The Art class generates random colors and stores the color values. You implement the Art class. An object of the Art class is a digital masterpiece.…JavaDriver Program Write a driver program that contains a main method and two other methods. Create an Array of Objects In the main method, create an array of Food that holds at least two foods and at least two vegetables. You can decide what data to use. Method: Print Write a method that prints the text representation of the foods in the array in reverse order (meaning from the end of the array to the beginning). Invoke this method from main. Method: Highest Sugar Food Write a method that takes an array of Food objects and finds the Food that has the most sugar. Note that the method is finding the Food, not the grams of sugar. Hint: in looping to find the food, keep track of both the current highest index and value. Invoke this method from main.
- 1. Create a struct called Booking that consists of a 3 digit flight number (e.g. 234), type of seat (E or B), the priceof a seat in economic class and the number of seats booked.Declare an array to store at least 30 Booking structs. 2. The user must be able to enter the information for a number of bookings from the keyboard. Ask whether abooking must be made (Y or N). If a booking must be made, a random 3 digit flight number must be generated.The user must be asked to enter the type of seat, the price per seat and the number of seats to book.Example of input:1. Create a struct called Booking that consists of a 3 digit flight number (e.g. 234), type of seat (E or B), the priceof a seat in economic class and the number of seats booked.Declare an array to store at least 30 Booking structs. (4)2. The user must be able to enter the information for a number of bookings from the keyboard. Ask whether abooking must be made (Y or N). If a booking must be made, a random 3 digit flight number must be generated.The user must be asked to enter the type of seat, the price per seat and the number of seats to book.3. Write code to display a numbered list with all the information of all the bookings. The price per ticket must bedisplayed with 2 decimal places. The output must be displayed with a heading and subheading 4. Write code to calculate and display the income earned per booking. Display headings and subheadings.Also count and display the number of business seats and economics seats booked as well as the incomeearned from each of these types of…2- Create a class named Test. The class must contain the main method. In the main method, you should create three objects from class Employee and store them in an array of type Employee (you must prompt the user to enter name and salary for each object). Then, you should print the name and salary of each object (using either the getters or the toStrong() method).
- For each object class include the following: displayPromotion () method which can be used to display the following messages:Video Game: Only certain of video game will be getting 10% discount.Sport Game: Booking court on week days will be getting 15% discount.Overridden toString() method that returns a string containing all the data fields’values.(photo 111) Write a driver program that uses a polymorphic array to store information for various video games and sport games. Use an array initializer to initialize the array with values. Then, display a list with all the game information. A sample output is provided below:(photo 112)1. An array is a container that holds a group of values of a 2. Each item in an array is called an 3. Each element is accessed by a numerical 4. The index to the first element of an array is 0 and the index to the last element of the array is the length of the 5. Given the following array declaration, determine which of the three statements below it are true. int [] autoMobile = new int [13]; i. autoMobile[0] is the reference to the first element in the array. ii. autoMobile[13] is the reference to the last element in the array. ii. There are 13 integers in the autoMobile array. 6. In java new is a which is used to allocate memory 7. Declare a one-dimensional array named score of type int that can hold9 values. 8. Declare and initialize a one-dimensional byte array named values of size 10 so that all entries contain 1. 9. Declare and initialize a one-dimensional array to store name of any 3 students. 10. Declare a two-dimensional array named mark of type double that can hold 5x3…Create a class named "Hotel" (3 marks) - The class must have 4 attributes. (Choose any 4 attributes you want) - This class must have two constructors, Getter Methods, and Setter Methods. - toString() method should return the name of the hotel. In the main class that has the main method: - In the main method, Create 4 objects or more from the class Hotel and store them in a normal array. (3 mark) - Create an external method that takes the array as an argument. It will add all the elements of the normal array into an ArrayList. Then, call the method to test it and print all elements data from the ArrayList
- What happens when an object such as an array is no longer referenced by a variable?1. Declare an array to save 4 Dog objects. The Dog class is provided below. Look into the Dog class and find what attributes are needed for a dog object. Then initialize five dogs with the following information: Lily, 5 years old Jacob, 2 years old Sugar, 8 years old Bush, 3 years old 2. Print out every dog using a for loop (use either regular for loop or for-each loop, your choice). But you may find when you print out, the name and age are not displayed. Why? 3. Fix this problem by implementing the toString method in the Dog class. Dog Class: public class Dog { private String name; private int age; public Dog(String name, int age) { this.name = name; this.age = age; } public void setName(String name) { this.name = name; } }Sultan Qaboos University Department of Computer Science COMP2202: Fundamentals of Object Oriented Programming Assignment # 2 (Due 5 November 2022 @23:59) The purpose of this assignment is to practice with java classes and objects, and arrays. Create a NetBeans/IntelliJ project named HW2_YourId to develop a java program as explained below. Important: Apply good programming practices: 1- Provide comments in your code. 2- Provide a program design 3- Use meaningful variables and constant names. 4- Include your name, university id and section number as a comment at the beginning of your code. 5- Submit to Moodle the compressed file of your entire project (HW1_YourId). 1. Introduction: In crowded cities, it's very crucial to provide enough parking spaces for vehicles. These are usually multistory buildings where each floor is divided into rows and columns. Drivers can park their cars in exchange for some fees. A single floor can be modeled as a two-dimensional array of rows and columns. A…