Write a class called Name that has one instance variable to store the full name of a person. A name can have multiple words, separated by single spaces. The only non-letter characters in a name will be spaces or -. The class has one constructor that takes a parameter to initialize the instance variable. However, the parameter string could have spaces at either ends and the constructor must trim the extra spaces before assigning it to the instance variable. The class has the following methods. • public String getName () Gets the name string. • public int consonants () Gets the number of consonants in the name. A consonant is any character that is not a vowel, the space or -. For this problem assume the
Q: Which of the following generates a message box with an OK button, an Info icon, "Hatfield Sales" in ...
A: Intro MessageBox.Show MessageBox.Show is a built-in method used in Visual basic that displays a di...
Q: 13. Give data memory location assigned to PIN registers of Ports A-C for the ATmega32. 14. Give data...
A: The four ports of the AVR ATmega16 are made up of 32 pins. Following is a list of ports to visit: 1....
Q: Q1. What is at put of this logic gati? F=?
A:
Q: Part I. Create a High-Level Network Topology Design and explain what kind of topology and Network ...
A: Network Topology
Q: Define the concept of local variables.
A: Intro A local variable is a variable that is either a variable that is declared within the function ...
Q: How many times does the inner loop in the BubbleSort function execute on the first trip over the arr...
A: Introduction BubbleSort procedure will start by comparing the first element of the array with the se...
Q: Given two positive integers, a and b, where a≥b, create a program in python 3 that uses Euclid's Alg...
A: Algorithm: Start Read number1 n1 and number2 n2 Implement a method named gcd() that takes 2 number ...
Q: Convert the following octal (base 8) number to a 12-bit unsigned binary number binary 3572 011101111...
A: Before reaching out to the correct option , there are certain points that one must know for solving ...
Q: An user interface is something that allows you to interact with a system.
A: Introduction: The User Interface: The user interface of an interactive computer system is the part o...
Q: v) Write a Python program to input two strings s1 and s2 of lengths x1 and x2 respectively. Compute ...
A: ** is the exponential operator which is used as pow function in other languages used for raising a n...
Q: Discuss five agile software development propositions briefly.
A: Agile software development propositions : Agile Teams work in very distinct environments than more t...
Q: Consider a case in which recursive binary search might be useful. What would you do in such situatio...
A: Let's see the solution in the next steps
Q: 1. Create a cursor to show percentage grade of students as given below: = 80% HONOURS ROLL_NO NAME S...
A: Here first create table Students and insert the given above values. Then we have to create another t...
Q: Write an dissertation on topics " Divisibility" in Number theory ? minimum 20 pages
A: Write an " Divisibility" in Number theory.
Q: What are the consequences and ramifications of cloud computing in the e-commerce world?
A: Introduction: The implications of cloud computing for e-commerce. Responses to new market issues, de...
Q: What is the output of the following program? public class Test { public static void main(String[] a...
A: What is the output of the following program?public class Test {public static void main(String[] arg...
Q: What exactly is a PLD (Programmable Logic Device)? What are the PLDS's functioning principles and lo...
A: Answer the above questions are as follows:
Q: Given a BST, which traversal method would allow you to turn it into a min heap using N heap insertio...
A: Program Explanation: Import the array list class Define a public class for implementing the given l...
Q: The importance of data warehousi The relationship with big data & cl
A: Data warehousing is just the way or process where extracting, transforming and loading happens from ...
Q: want data model diagram for the website Spirit.com, a Passenger Airline. (data flow digram)
A:
Q: perform the following assignments, refer to the tables created in the JLDB_Build_5.sql script at the...
A:
Q: Make a quick note of the control structures in C. Give the syntax of at least six statements in the ...
A: Intro Control structures in C In the C program, a statement that controls the flow of execution is...
Q: With the use of a group function, which clause can be used to restrict or filter the groups returned...
A: Solution:-
Q: Which form of selection structure gives instructions that are only to be executed when its condition...
A: Intro There is three basic control structures in writing any procedure in an application: Sequence ...
Q: H.W Describe the operation of the following instructions: PUSH, PUSHA,POP,XCHG,PUSHF.
A: answer is
Q: Why is it only possible to use TCP on endpoint devices?
A: TCP stands for Transmission Control Protocol, which is a type of communication protocol used by netw...
Q: List the approach you would use to assess if each of the following statements about a character's va...
A: Intro Character testing methods: The string data type can hold text, which is a collection of char...
Q: MC1. You are asked to design a flashlight that will last at least eight hours without having to be r...
A: We need to answer:
Q: An application declares a structural variable named songs using the Music structure. Which of the fo...
A: Introduction: Here we are required to tell the correct answer for the MCQ asked above.
Q: А В C D E F G H I J K
A:
Q: What obstacles does the presence of diverse types of information systems in the enterprise pose? How...
A: Introduction: Integration and the entire firm viewpoint: Because of the diverse interests and viewpo...
Q: Write a program in Python to find those numbers which are divisible by 3 and multiple of 9, between ...
A: Step 1 : Start Step 2 : Define a for loop which iterates from 300 till 900(both inclusive) using the...
Q: A local area network (LAN), as the name implies, is a type of networking technology that connects de...
A: Your answer is given below in detail. Introduction :- Given : A local area network (LAN), as the n...
Q: De 8ign a DFA for the following langag L={ w|we {c, b}" and #a (W) iseven W E %3D
A:
Q: Explain what IN AL, p7
A: The IN instruction transfers a string from a port specified in the DX register to the memory byte or...
Q: There is 250,000 dollars that you have to divide to x amount of students in a year. Based on quality...
A: Excel IF AND OR functions alone are not very interesting, but combine them with IF statement and you...
Q: . Simplify the following Boolean functions, using four-variable Kmaps: (a) F (w, x, y, z) = Σ(1, 4, ...
A: for all three parts , I have provided HAND-WRITTEN solution images---------
Q: What is the significance of the HTML Post and Get Methods?
A: Introduction: The client (browser) transmits additional data to the server in the message body of HT...
Q: What are the advantages and disadvantages of e-commerce? Can E-learning be defined as an e-business...
A: According to bartleby guidelines three questions are answered they are as follows.
Q: Please help me understand further the code below by putting comments if possible in every line. Than...
A: The following step gives the explanation of the given code to find the area and perimeter of differe...
Q: Consider the set of vectors S = (9, 6, −1), (1, −7, 3), (−6, 9, 5), (3, 1, 5). (a) Create a linear p...
A: The Algebraic Method, introduced at the outset, has its limitations in that it results in every deta...
Q: What is the greatest decimal value that an 86-bit signed integer can represent?
A: Introduction Signed integers: The signed integers can be positive or negative. The signed integers...
Q: What is the job of the database administrator (DBA) in a NoSQL database?
A: INTRODUCTION: DBA: Database Administrator is the abbreviation for Data Base Administrator. DBA can ...
Q: What is the best way to get access to the Visual Studio documentation? What types of resources are a...
A: Introduction: MSDN, formerly known as Visual Studio Subscriptions, is one of Microsoft's most misund...
Q: Give a succinct description in English of the following languages: a. (0 u 1)* (1 U 0)* b. a* U (a*b...
A: Ans a): (0 ∪ 1)* (1 ∪ 0)* (0 ∪ 1)* means the string of 0's and 1's of any length (1 ∪ 0)* mea...
Q: What is your opinion of the Internet's value to individuals? How essential do you believe the Intern...
A: Intro The Internet holds a significant value in our lives. We spend most of our time surfing on the ...
Q: In today's world, there are 3 major OSs: Windows by Microsoft Macintosh OS UNIX/Linux In your own wo...
A: These days, there is a wide choice of different working frameworks planned for use in installed fram...
Q: Write a report on VDL that must include: 1. Applications of VDL 2. Areas which have benefited most ...
A: NOTE :- As per our company guidelines we are supposed to answer only first 3 sub-parts. Kindly rep...
Q: What is information privacy? Describe five ways to keep your personal information protected.
A: Introduction: The right of an individual to access his or her personal information stored by a corpo...
Q: How to make a ceaser cypher in Java with simply loops and parameters
A: Introduction: How to make a ceaser cypher in Java with simply loops and parameters
Step by step
Solved in 2 steps with 1 images
- C# languageCreate a class for “Plane” having functionalities (methods) startengine(), fly() and land(). When ever engine starts it should reset the attribute TTK (Total travel kilometer) to zero and attribute Fuel to 100. On fly() it should add 10 kilometers if the Fuel attribute is greater than zero and decrement Fuel by 20.On land() it should print total distance covered. Write the code providing all necessary details. And then show working object of Plane in main().1. Employee Class Write a class named Employee that has the following fields: name. The name field references a String object that holds the employee's name. •idNumber. The idNumber is an int variable that holds the employee's ID number. • department. The department field references a string object that holds the name of the department where the employee works. • position. The position field references a string object that holds the employee's job title. The class should have the following constructors: • A constructor that accepts the following values as arguments and assigns them to the appropriate fields: employee's name, employee's ID number, department, and position. • A constructor that accepts the following values as arguments and assigns them to the appropriate fields: employee's name and ID number. The department and position fields should be assigned an empty string ("*). • A no-arg constructor that assigns empty strings ("") to the name, department, and position fields, and…1. Employee Class Write a class named Employee that has the following fields: • name. The name field references a String object that holds the employee's name. • idNumber. The idNumber is an int variable that holds the employee's ID number • department. The department field references a String object that holds the no of the department where the employee works. • position. The position field references a String object that holds the employee's job title. The class should have the following constructors: • A constructor that accepts the following values as arguments and assigns them to the appropriate fields: employee's name, employee's ID number, department, and position. • A constructor that accepts the following values as arguments and assigns them to the appropriate fields: employee's name and ID number. The department and position fields should be assigned an empty string (""). • A no-arg constructor that assigns empty strings ("") to the name, department, and position fields, and…
- 1. Part 1: A point in the x-y plane is represented by its x-coordinate and y-coordinate. Design the class Point that can store and process a point in the x-y plane. Your class should contains the following methods. Default constructor without parameters that initializes the private data member to the suitable values Constructor with parameters sets the values of the instance variables to the values of the parameter. Accessor methods that return the values of the x-axis and y-axis. setPoint method which set the values of x-axis and y-axis makeCopy method that make a copy of a received object of type Point. getCopy method that returns a copy of the current object toString method that returns the object string isEqual that returns true if the current object is equal to the received object of type point distance, which receives two objects of type Point and returns the distanceINVENTORY CLASS You need to create an Inventory class containing the private data fields, as well as the methods for the Inventory class (object). Be sure your Inventory class defines the private data fields, at least one constructor, accessor and mutator methods, method overloading (to handle the data coming into the Inventory class as either a String and/or int/float), as well as all of the methods (methods to calculate) to manipulate the Inventory class (object). The data fields in the Inventory class include the inventory product number (int), inventory product description (String), inventory product price (float), inventory quantity on hand (int), inventory quantity on order (int), and inventory quantity sold (int). The Inventory class (java file) should also contain all of the static data fields, as well as static methods to handle the logic in counting all of the objects processed (counter), as well as totals (accumulators) for the total product inventory and the total product…RetailItem Class Write a class named RetailItem that holds data about an item in a retail store. The class should have the following fields: description. The description field references a string object that holds a brief description of the item. • unitsonHand. The unitsOnHand field is an int variable that holds che number of units currently in inventory. price. The price field is a double that holds the item's retail price. Write a constructor that accepts arguments for each field, appropriate mutator methods that store values in these fields, and accessor methods that return the values in these fields. Once you have written the class, write a separate program that creates three RetaillItem objects and stores the following data in them: Description Units on Hand Price Item #1 Jacket 12 59.95 Item #2 Designer Jeans 40 34.95 Irem #3 Shirt 20 24.95
- The reference this can be used to refer to an object or to invoke another constructor of the same class. True Falsearrow_back Starting Out With Visual C# (5th Edition) 5th Edition Chapter 11, Problem 1PP arrow_back_ios PREVIOUS NEXT arrow_forward_ios Question share_out_linedSHARE SOLUTION Chapter 11, Problem 1PP Program Plan Intro Employee and ProductionWorker Classes Program plan: Design the form: Place a three text boxes control on the form, and change its name and properties to get the employee name, number, and hourly pay rate from the user. Place a four label boxes control on the form, and change its name and properties. Place a two radio buttons control on the form, and change its name and properties. Place a one group box control on the form, and change its name and properties. Place a command button on the form, and change its name and properties to retrieve the object properties and then display the values into label box. In code window, write the code: Program.cs: Include the required libraries. Define the namespace “Program11_1”. Define a class “Program”. Define a constructor for the…IN C++ Write a class named Employee that has the following member variables: name. A string that holds the employee’s name. idNumber. An int variable that holds the employee’s ID number. department. A string that holds the name of the department where the employee works. position. A string that holds the employee’s job title. The class should have the following constructors: A constructor that accepts the following values as arguments and assigns them to the appropriate member variables: employee’s name ( non-empty) , employee’s ID number( neither 0 nor negative numbers), department ( non-empty), and position ( non-empty). Write appropriate setter functions that store values in these member variables and getter functions that return the values in these member variables. Once you have written the class, write a main program that creates FOUR Employee objects to hold the above data. The program should store this data in the four objects and then display the data in tabular form for…
- IN C++ Write a class named Employee that has the following member variables: name. A string that holds the employee’s name.idNumber. An int variable that holds the employee’s ID number.department. A string that holds the name of the department where the employee works.position. A string that holds the employee’s job title. The class should have the following constructors: A constructor that accepts the following values as arguments and assigns them to the appropriate member variables: employee’s name, employee’s ID number, department, and position. A constructor that accepts the following values as arguments and assigns them to the appropriate member variables: employee’s name and ID number. The department and position fields should be assigned an empty string (""). A default constructor that assigns empty strings ("") to the name, department, and position member variables, and 0 to the idNumber member variable. Write appropriate mutator functions that store values in these member…Object Oriented Programming in JAVA You are part of a team writing classes for the different game objects in a video game. You need to write classes for the two human objects warrior and politician. A warrior has the attributes name (of type String) and speed (of type int). Speed is a measure of how fast the warrior can run and fight. A politician has the attributes name (of type String) and diplomacy (of type int). Diplomacy is the ability to outwit an adversary without using force. From this description identify a superclass as well as two subclasses. Each of these three classes need to have a default constructor, a constructor with parameters for all the instance variables in that class (as well as any instance variables inherited from a superclass) accessor (get) and mutator (set) methods for all instance variables and a toString method. The toString method needs to return a string representation of the object. Also write a main method for each class in which that class is…Temp Class - Create Temp class whos job is to hold a temp in degrees F and gives methods to get the temp in F, Celsius, and Kelvin. The class should follow the instance variable (field): ftemp (double type that holds F temp)Follow these methods with the class.. Constructor --Will accept Fahrenheit temperature as a double to store it in the ftemp field. setFahrenheit - The setFahrenheit method accepts a Ftemperature as a doubleto stores it in the ftemp field. getFahrenheit - Returns the value of the ftemp field, as a Fahrenheit temperature (no conversion required). getCelsius - Returns the value of the ftemp field converted to Celsius. [C e l s i u s = ( 5.0 / 9.0 ) × ( F a h r e n h e i t − 32 )] getKelvin - Returns the value of the ftemp field converted to Kelvin. [K e l v i n = ( ( 5.0 / 9.0 ) × ( F a h r e n h e i t − 32 ) ) + 273] Exemplify the temp class by writing a (test) program that is separate and promotes users for an F Fahrenheit temp. The program must create an…