Write a program that contains two classes a Main class and a Student class: • • The Student class has three data fields which are: name, GPA, and SID. It has a constructor that takes SID as a parameter. The Main class is used to declare objects from the Student class. The Main method should take student of type Student then display student ’ ’ s data from the console, store them in an object s data in the console.
Q: Create a recursive function and program for following equation using C++ f(5) = 5*(4/2)*3*(2/2)*1 ...
A: A recursive function consists of 2 cases: 1. Base case(i.e condition where recursion stops) 2. Recur...
Q: 1. Write a program that implements the Newton method to solve f(x) = 0, where both f and x are vecto...
A: Answer is given below:
Q: Show typical instruction formats of following operations for an accumulator-based and register-based...
A: A computer performs a task based on the instruction provided. Instruction in computers comprises gro...
Q: When you use GRETL, how do you run a model for a generalised least squares guess?
A: INTRODUCTION: GRETL is an open-source statistics tool that focuses on econometrics. For example, GN...
Q: 2. Write a program that returns the minimum of a single-variable function g(x) in a given region [a,...
A: Step 1 INTRODUCTION: Python is a strong general-purpose and high-level programming language. It is u...
Q: Generate orthogonal codes for use in this system. Use the minimum possible number of chips per bit.
A: Walsh codes are orthogonal codes used extensively in cdmaOne and cdma2000. Spread factor or process ...
Q: Design a method random_key() that returns a random key from BST in time proportional to the tree hei...
A: The Full form of BST is Binary Search Tree.
Q: Select all of the following which describe a sub-linear complexity in Big O notation: Group of answ...
A: Please check the step 2 for solution
Q: ent of KimTay Pet Supplies (a supplier of pet supplies, food, and accessories located in Cody, Wyomi...
A: Task 1 - CREATE TABLE REP( repID int, LastName varchar(255), FirstName varchar(255), Address varchar...
Q: Which network architecture model merges the core with the distribution layer? a. Distributed Ne...
A: Network architecture is design of the computer networks.
Q: Note down the drawbacks of Cohen-sutherland Line Clipping Algorithm.
A: INTRODUCTION: An technique called the Cohen Sutherland Algorithm is used to trim lines to segments ...
Q: sing Columnar transposition encrypt the message “MUSCAT IS THE CAPITAL CITY OF OMAN ", using key MAD...
A: Columnar transposition is a kind of transposition cipher. The message which has to be encrypted is w...
Q: Ethics remains one of the concerns in aiming for a Level 3-5 autonomy is on moral philosophy. There ...
A: -> Computer Science Ethical Issues- The major issue with engineering ethics is a lack of clarity ...
Q: 1. Write a Verilog code to design a clock with period = 100 ns and a duty cycle of 35% by using alwa...
A: Please refer below for code as well as initial and always in verilog: 1) always: By using always sta...
Q: please code in python You are given an array of strings arr. Your task is to construct a string fro...
A: Here I have created the function named finalString(). In this function, I have extracted the length ...
Q: Coffee Shop management system Please submit the following: List of 10 functional requirements ...
A: Introduction: Software Engineering: The application of a systematic,disciplined,quantifiable approac...
Q: Provide a detailed description of the AllocConsole function.
A: AllocConsole() The name itself sugggest the meaning of the function. Alloc is the allocation . Henc...
Q: Use the following tree to indicate the order that nodes are expanded, for different types of search....
A: Use the following tree to indicate the order that nodes are expanded, for different types of search....
Q: 1) use the tag selector to select all of the elements with an h1 tag and turn them green 2) use the...
A: As per our company guidelines, we are supposed to answer only the first 3 sub-parts. Kindly repost o...
Q: Please create a java program using the "queue" data structure. This program should imitate the waiti...
A: Queue.java import java.util.*; import Queuelmpl.java public class QueueExample { QueueImpl q; public...
Q: Complete the following table, stating the start and end times for each process using the Shortest-Jo...
A: Shortest Job next is a non preemptive CPU scheduling algorithm where process with shortest service t...
Q: In general terms, describe the main logical database design techniques and how they relate to each o...
A: In general terms, describe the main logical database design techniques and how they relate to each o...
Q: THIS TRUTHTABLE: HOW TO DISPLAY 7 SEGMENT CATHODE ON BREADBOARD. THE WIRING AND PLACING OF IC CHIPS
A: It is defined as a the process consisting of seven segments, meaning it consists of seven light emit...
Q: validation. a zero parameter constructor and a fully parameterized constructor for the class. le the...
A: Given Tractors Pretend we work for a company that leases tractors. Let us create a class for tract...
Q: Question: f(n) = 3n² + 25 g(n) = 3n² Prove that f(n) = 0 g(n)
A: answer: according to BIG-O definition f(n)= O(g(n)) when f(n) <= c*g(n) for n>=n0
Q: Provide a description for WaitMsg.
A: Introduction: In Javascript, the waitMsg method is used to show a message while waiting for an event...
Q: what are the most common types of computer-based information systems used in business?
A: The 4 most common types of computer based information systems used in business today are : 1. Transa...
Q: Let, the time complexity of each of the following code snippets be T(n). Find out a tight bound for ...
A: Introduction: Let, the time complexity of each of the following code snippets be T(n). Find out a ti...
Q: Assume the size of an integer array is stored in $s0 and the address of the first element of the ar...
A: Answer: .datafibs: .word 0 : 40prompt2: .asciiz "The series is as below\n"prompt3: .asciiz " "prompt...
Q: b- For the four numbers, the first number and the second number are added to the third and fourth nu...
A: Op-code: One command is called an op-code that can be generated by the CPU. Here the 'MOV' command i...
Q: 5. Consider the following modification of the independent set problem. As input, you receive an undi...
A: An Unaffiliated Group S is a collection of vertices in the given Graph = (V, E) in which no two vert...
Q: Problem 5 :Recursion Tree Time Complexity Find the Worst case time Complexity of the following recur...
A: In this question, we are asked to proof the time complexity for the given recursion function Given: ...
Q: Give Description for ReadKey
A: Description for ReadKey
Q: does an application work? In a new computer that an organisation buys, what are the different applic...
A: Lets see the solution.
Q: Give at least 10 HTML Tag. Give an example on how to use each inside the html document. 1. Example c...
A: The 10 HTML tags are: h1 tag p tag em tag b tag ul tag button tag img tag anchor tag i.e a tag div ...
Q: Give an explanation for the method GetNumberOfConsoleMouseButtons.
A: Introduction : This line pertains to the capability of your mouse's scroll wheel, and in my instance...
Q: GetConsoleScreenBufferInfo method description.
A: Answer: Character and colour data are stored in a screen buffer, which is a two-dimensional array.M...
Q: A two-digit unpacked decimal integer in AX may be converted to ASCII decimal with a single instructi...
A: Convert a two-digit unpacked decimal integer in AX to ASCII decimal with a single instruction: Examp...
Q: Manage Your Health, Inc. (MYH) is a Fortune 500 company that provides a variety of healthcare servic...
A:
Q: Vrite the shortest condition in the if-statement below that will make the nshaded values of row seve...
A: From the given figure, For row seven, the unshaded values are 0-5 and 15-20 For row seven the value...
Q: 1. Design a Windows application named Wallpaper App to calculate the number of single rolls of wallp...
A: Answer :-
Q: Problem 5 :Recursion Tree Time Complexity Find the Worst case time Complexity of the following recur...
A: as per company guidelines, if multiple quesions posted then only first question answer can be given....
Q: Provide a description for the readString function.
A: Given: Give the readString method a description.
Q: 15.a. Who is responsible for maintaining and repairing lightwave equipment in a dark fiber lease? A....
A: 15.a. Who is responsible for maintaining and repairing lightwave equipment in a dark fiber lease?A. ...
Q: Small monster scientists do a great deal of work to analyze small monster migratory and feeding patt...
A: # function to draw the 10X8 griddef drawGrid(horiz_mult, vert_mult, constant):# importing the turtle...
Q: create a complete program that will accepts string of characters or sentence and print each word in ...
A: Since no programming language is mentioned, I am using python. Algorithm: Start Read a string Split...
Q: What are virtual educational environments (VLEs)?
A: INTRODUCTION: In the given problem we are asked what are the virtual educational environments. So we...
Q: How many children is each node allowed to have in a binary search tree? Answer all that apply. I k...
A: binary search tree: is a binary tree, means every every node can have at most 2 nodes as childs.
Q: Which of the following is not a valid IPv6 address: a. 2001:1000:1000:FFFF::1/64 b. FE80::BB:0:0:10...
A: In an Internet Protocol Version 6 (IPv6) network, an IPv6 address is a 128-bit alphanumeric value th...
Q: A new information system that will be used by the company's finance department has asked for your th...
A: Answer: Suggestions for increasing the likelihood of a new information system being adopted successf...
Trending now
This is a popular solution!
Step by step
Solved in 5 steps with 3 images
- 2. The MyInteger Class Problem Description: Design a class named MyInteger. The class contains: n [] [] A private int data field named value that stores the int value represented by this object. A constructor that creates a MyInteger object for the specified int value. A get method that returns the int value. Methods isEven () and isOdd () that return true if the value is even or odd respectively. Static methods isEven (int) and isOdd (int) that return true if the specified value is even or odd respectively. Static methods isEven (MyInteger) and isOdd (MyInteger) that return true if the specified value is even or odd respectively. Methods equals (int) and equals (MyInteger) that return true if the value in the object is equal to the specified value. Implement the class. Write a client program that tests all methods in the class.Write a program that will contain an array of person class objects. The program should include two classes: 1) One class will be the person class. 2) The second class will be the team class, which contain the main method and the array or array list. The person class should include the following data fields; Name Phone number Birth Date Jersey Number Be sure to include get and set methods for each data field.The team class should contain the data fields for the team, such as: Team name Coach name Conference name The program should include the following functionality. Add person objects to the array; Find a specific person object in the array; (find a person using any data field you choose such as name or jersey number) Output the contents of the array, including all data fields of each person object. (display roster)In previous chapters, you have created programs for the Greenville Idol competition. Now create a Contestant class with the following characteristics: The Contestant class contains public static arrays that hold talent codes and descriptions. Recall that the talent categories are Singing Dancing, Musical instrument, and Other. The class contains an auto-implemented property that holds a contestants name. The class contains fields for a talent code and description. The set accessor for the code assigns a code only if it is valid. Otherwise, it assigns I for Invalid. The talent description is a read-only property that is assigned a value when the code is set. Modify the GreenvilleRevenue program so that it uses the Contestant class and performs the following tasks: The program prompts the user for the number of contestants in this years competition; the number must be between 0 and 30. The program continues to prompt the user until a valid value is entered. The expected revenue is calculated and displayed. The revenue is $25 per contestant. The program prompts the user for names and talent codes for each contestant entered. Along with the prompt for a talent code, display a list of the valid categories. After data entry is complete, the program displays the valid talent categories and then continuously prompts the user for talent codes and displays the names of all contestants in the category. Appropriate messages are displayed if the entered code is not a character or a valid code.
- PYTHON Write a class named Employee that holds the following data about an employee in attributes: name, ID number, department, and job title. Once you have written the class, write a program that creates three Employee objects to hold the following data, then save the data in (employee.txt) fileObjects and Pointers Write code to instantiate/create two Bicycle objects: a default object (my_bike) and a non-default object (sister_bike). For the non-default object you may hard-code (or make up) the required parameters (brand, price and wheel size). No console input is needed.Use Python Programming Language (The Stock class) Design a class named Stock to represent a company’s stock that contains: A private string data field named symbol for the stock’s symbol. A private string data field named name for the stock’s name. A private float data field named previousClosingPrice that stores the stock price for the previous day. A private float data field named currentPrice that stores the stock price for the current time. A constructor that creates a stock with the specified symbol, name, previous price, and current price. A get method for returning the stock name. A get method for returning the stock symbol. Get and set methods for getting/setting the stock’s previous price. Get and set methods for getting/setting the stock’s current price. A method named getChangePercent() that returns the percentage changed from previousClosingPrice to currentPrice. Write a test program that creates a Stock object with the stock symbol INTC, the name Inte lCorporation, the…
- This program is based in Java, so the response has to be java. Movie Collection Program Create a program that keeps track of your movie collection. Your driver file is movieCollection You will use it to create 4 movie objects. Your Movie class should have a default constructor that does not receive any values and sets all information to default values. You should also have an overload constructor method that has all of the data passed into it. The following information is what each movie object should have: Title Genre Year of release Director. You should have mutator methods that let you set all pieces of information individually. You should have accessor methods that allow you to get each piece of information individually. You should have a toString method that prints out all of the information about a movie at one time. Each piece of information should be on its own line. In the movieCollection file Movie one should be created using the default constructor.…Rectangle Object Monitoring Create a Rectangle class that can compute the total area of all the created rectangle objects using static fields (variables). Remember that a Rectangle has two attributes: Length and Width. Implement the class by creating a computer program that will ask the user about three rectangle dimensions. The program should be able to display the total area of the three rectangle objects. For this exercise, you are required to apply all OOP concepts that you learned in class. Sample output: Enter Length R1: 1 Enter Width R1: 1 Enter Length R2: 2 Enter Width R2: 2 Enter Length R3: 3 Enter Width R3: 3 The total area of the rectangles is 14.00 Note: All characters in boldface are user inputs.Once an object name is declared, can it be reassigned to reference another object?
- If we do not override the toString method in a class, the toString method for the Object is called. The default output is <class name>@<memory location>. True FalseWhat is the purpose of a constructor? It creates an array of data values associated with an object. It prints all of the information about our object. It returns all data members from an object back to the main method. It allows us to set our own default values when we create an object. in javaJava Code Write a program in which you create a class called TextFileReader. The TextFileReader class must contain an instance variable consisting of an array of Strings 100 elements long. TextFileReader should have two constructors: a default constructor and a constructor that takes a String argument, which represents the name of a text file to be opened and read into the array of Strings. The first (default) constructor does not really do anything. If the second constructor is used, it will open the file and read the contents of the file into the array of Strings as follows: fill the array by having your program read one line of the file into each string until you have filled the array. Once the array is full, you may stop reading the input file. Add a member function contents(), which will convert the array of Strings into a single StringBuffer, which is then returned to the calling program so that it may be displayed. Add a second member function display(), which prints the array…