java language Create a new main file Create an array of size 3. The array must be of class mammal. Create an object of each class.(feline, domestic) Assign values to each of the created objects. Assign each of the objects to each of the positions in the array. Using a loop, it displays each of the positions in the array
Q: What is a benefit of reducing the complexity of data models? a.) Faster application…
A: A computer is a digital electronic machine that can be programmed to automatically perform a series…
Q: This means the modified file will have a line count greater than or equal to the original file. For…
A: Answer: We have done code in python programming language so we have attached the code and code…
Q: CODING IN PYTHON: Please help with Python I want to see written code, not screen shots, please.. 1.…
A: PYTHON CODE: # getting the data from the userdata=input("Enter your height in feet and inches(e.g 5…
Q: UPDATE order_details SET quantity = quantity --10 What happens if we run this command in MySQL?…
A: It can handle everything from simple shopping lists to image galleries to large amounts of…
Q: List and briefly define the parameters that define an SSL session connection.
A: Introduction Session identifier: An arbitrary byte sequence is used by the server to determine if…
Q: Title System Requirements 4. Hotel Management System You are asked to build an application used in…
A: The Code Given Below Is For The Customer Info Module package I3.UI; import…
Q: 19. Which is the correct variable name in Java? a. +AB b.123AB C.AB_CD d. AB* 20. What is the output…
A: Below I have provided the solution to the given question
Q: Discuss parallel approach for tree and graph traversal algorithm.
A: Let's see the answer:
Q: Examples 515 memeSum(26, 39) // 2+3 = 5, 6+9 = 15 // 26 + 39 515 = memeSum (122, 81) → 1103 // 1+0=…
A: In this problem, we need to solve the given statements Logic - for(let i = 0; i < a.length;…
Q: You're given a string of words. You need to find the word "Nemo", and return a string like this: "I…
A: Algorithm --> Take input from users. Now use the below logic logic - for(let i = 0; i <…
Q: Explain why the Unified Modeling Language (UML) is important to use as a standard for creating…
A: Unified Modeling Language (UML): UML is a modeling language, which is used to visualize the design…
Q: Write Python code that asks the user to enter a text, then your code should print each word and how…
A: The complete answer in Python code is below:
Q: Why does a PC need an IP, default gateway address and DNS server address in order to communicate…
A: According to the information given:- We have to define Why does a PC need an IP, default gateway…
Q: Write a C program that will display text on any terminal. The program should first prompt the user…
A: CODE(Find explanation in comments): // C program to write user input to terminal…
Q: How does 5NF differ from 4NF? a.) 5NF has no multivalued dependencies. b.) There is no difference…
A: The above question that is How does 5NF differ from 4NF is answered below step.
Q: Explain any five considerations that can be used by organizations to group stations in a VLAN.
A: Virtual local area network (VLAN) It permits network heads as far as possible access to a predefined…
Q: Write a program in java using two dimensional arrays. You should prompt the user to enter the…
A: The complete answer in Java is below:
Q: Given: Task: (143-526-245) Determine the hexadecimal number equivalent of the given number forma…
A: Given octal number is (143-526-245)8 Convert every octal digit to 3 binary digits, then convert…
Q: 1 -x₁ + x₂ + 2x3 = 2x₁ + 3x₂ + x3 = -2 5x₁ + 4x₂ + 2x3 = 4
A: In mathematics, Gaussian elimination is known as a linear contraction algorithm for solving systems…
Q: Which of the following would help protect data security during database migrations? Converting…
A: Answer:
Q: What is program testing.
A: Program testing means checking the actual execution whether a program behaves in the desired manner.…
Q: Explain the role of email in investigations. Describe client and server roles in email. Describe…
A: According to Bartleby Guidelines we need to answer only three sub questions so I have answered first…
Q: Which of the following options correctly describes the result int a=6, b=9; int *ptr = &b; a = *ptr;…
A: Answer D. The value of variable a is changed to the value of variable b. #include <stdio.h>…
Q: Describe the principle steps in the analysis phase and list the major deliverables
A: Answer the above question are as follows
Q: 1. Change the Salary column in the Employee table to reject nulls. 2. Change the length of the CITY…
A: 1. Change the Salary column in the Employee table to reject nulls. Query: ALTER TABLE Employee…
Q: Please help answer question 3
A: Here in exercise 2 given 2 new tables so below i take column which is made index. Index: It is used…
Q: Write definition of these terms: a) Method b) Technique c) System d) System Information e) An…
A: Write definition of these terms: a) Method b) Technique c) System d) System Information e) An…
Q: Assume a top-level module that implements the arithmetic unit shown in the figure below. The…
A: Below I have provided the solution to the given question
Q: It is known that when an information system processes data, a Linked Stack is used, and the name of…
A: The question is to diagrammatically depict the Linked Stack of the information system at each stage…
Q: k) Using the AVERAGEIF function, write a formula in cell E52 to compute Small servers' average total…
A: Given: (k) Using the AVERAGEIF function, write a formula in cell E52 to compute Small servers'…
Q: What is and what are the functions of the biliary tree
A: Answer the above question are as follows
Q: 7.On this given sorted array perform the search operation to find out the element 13 using binary…
A: Given array contains the elements 5, 9, 11, 12, 14, 19, 22, 28. Element need to be searched= 13…
Q: Comment on the current status of IPv4 and identify the major emerging problems for IPv4 and discuss…
A: Given data is Comment on the current status of IPv4 and identify the major emerging problems for…
Q: What is software life cycle model.?
A:
Q: In the context of Kerberos, what is a realm?
A:
Q: What is a benefit of using a lookup table? a.) They resolve weak relationships. b.) They build in…
A: Lookup table:- In order to approximate a mathematical function, a lookup table is an array of data…
Q: You have an Box containing balls of different sizes(i.e 0, 1, 2) and your task is to sort them in…
A: Required: You have a Box containing balls of different sizes(i.e 0, 1, 2) and Your task is to sort…
Q: give the capacity of the cut S, T for the following network: Ac 7 B C 6 5 2 7 D 7 E 3 F G S={A, E,…
A: Answer: We have explain in details how to find the min cut and steps by steps S={A,E,F} And…
Q: Question 4: Consider the figure below in which a TCP sender and receiver communicate over a…
A: Answer is given below-
Q: etermine the entropy associated with the following method of generating a password. Choose, and…
A: Answer: We have explain each and every point how to calculate Entropy based on give information
Q: hich of the following are present in C but not in Assembly? A. A distinction between 32-bit numbers…
A: Solution- The explanation of the above question is described below- Option a is not present in…
Q: Q5: Find the binary double word-length 2's complement representation of each of the following…
A: The 2’s complement representation is a system used to represent the signed integer number. the…
Q: What is different in mobile forensics versus well-established static computer forensics?
A:
Q: Show transcribed data MSU Corporation Database Department Mgr Start Date 2005-06-19 2013-01-01…
A: 1. Change the Salary column in the Employee table to reject nulls. Query: ALTER TABLE Employee…
Q: List TWO (2) advantages of using systems analysis and design techniques in approaching computerized…
A: The significance of system analysis is additionally clear by they way it assists with cash the…
Q: What is software engineering?
A: Software engineering:- A methodical engineering approach to developing software is known as software…
Q: Time Complexity 1. Find out the complexity of the given code. (n = 1; k=k-1){ for (i = k-1 ; i >= 1;…
A: The complexity of the given code is:
Q: Q4: Each of the following hexadecimal numbers can be interpreted as representing a decimal number or…
A: Considering all the given numbers to be representing decimal numbers. 1. 435316 = 4*163 + 3*162 +…
Q: What steps are involved in the SSL Record Protocol transmission?
A:
Q: explain the notion of measuring a doubly linked list's performance? Does time complexity come into…
A: We need to explain the notion of measuring a doubly linked list's performance.
java language
Create a new main file
Create an array of size 3. The array must be of class mammal.
Create an object of each class.(feline, domestic)
Assign values to each of the created objects.
Assign each of the objects to each of the positions in the array.
Using a loop, it displays each of the positions in the array.
Step by step
Solved in 2 steps with 1 images
- (Numerical) Write and test a function that returns the position of the largest and smallest values in an array of double-precision numbers.Grade Book A teacher would like to assign a letter grade to a student, based on student's test score. Write a program to help this teacher managing her students' test score. Use the following grading scale to assign a letter grade to a student. Test Score Letter Grade 80 - 100 A 70 - 79 B 60 69 C 50 - 59 0- 49 F Your program must have an array of string objects to hold the student names and an array of int to hold the student scores. Let the teacher determines the number of students and ask the teacher to enter the information for each student. Your program should have the following programmer-defined functions: getInput () - to read the students name and scores from user getGrade () - to determine the letter grade corresponding to the score getReport () - to determine the maximum, minimum, average and standard deviation of the scores Display an error message if the teacher enter mark below 0 or above 100, and keep asking for a valid value. The program should also be capable of…Computer Science C# Programming Object Orientation Please use Arrays or ArrayLists where appropriate Implement a menu driven program that has some operations for a food truck. A food truck has multiple food items as well as a menu which contains a selection of the food items which will be sold for that day. A maximum of 10 food items can appear on the menu for any day. For each food item keep a code, description, category, price and quantity in stock (code, description and category are not usually changed). Create a comma delimited text file called "items.txt" for 15 or more food items, indicating the item's description, category, price and quantity in stock. Read all the food items from the text file “Items.txt” Display all the food items available for this food truck. Continuously prompt the user for a food item’s code to be placed on the menu until the menu is full or the user enters -1. Note that only food items which have a positive quantity in stock may be added to…
- Ch7 - Arrays java In a loop, ask the user to enter 10 integer values and store the values in an array. Pass the array to a method. In the method, use a loop to subtract 5 from each element and return the changed array to the main method.In the main method, use a loop to add the array values and display the result.Searching - a user should be able to search by ID or by item name create only one menu item for searching a user should be able to enter the name of the item using any case, (for example, sTRolleR) you may wish to store items in all lower/upper case to expedite the search write one search function that can search by ID and name and goes through the array of structs/objects only once show the entire record if found or an appropriate message if not Sorting - sort by any field write one function to sort by any field using a parallel array of pointers use Bubble Sort is not the most effective but the easiest to modify. do not copy and paste sort code five times into the same function. sorting using pointers is faster because you have to swap pointers only, which are normally stored in 4 bytes each; it also allows you to preserve the original order of the items If you choose to have a submenu, a submenu must have an option to go back to the previous menu or main menu if a user got…Flowchart for student interface program please. Create a program to enter grades and calculate averages and letter grades. 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…
- Assignment #1 Instructions: Assigning Seats - planeseats Through this programming assignment, the students will learn to do the following: 1. Know how to use a Makefile. 2. Perform basic C commands. 3. Use arrays, integers and strings. This assignment asks the user to write a program to assign seats in an airplane. There will be 12 seats on the plane, 4 in first class and 8 in economy. • The program should display the following menu for the user: Please type 1 for "first class" Please type 2 for "economy" Please type 0 to quit • If the user types 1 then the user should be assigned a seat in first class. If the user types 2 then the user should be assigned a seat in economy. • If the user types O for a sentinel value the program should ext with a O return code. • The program should then print a line indicating the seat the person was assigned. This would be like a boarding pass. • The program should not assign a seat that has already been assigned. If all seats in the desired section…Rest of code in image / This is a bad programming style since it is using goto. // This is an spagetti code and not working.// Use function to display menu, and display game rules,// Use different color for text display.// fix it so it works any way you like./*HANDLE screen = GetStdHandle(STD_OUTPUT_HANDLE); // Write 16 lines in 16 different colors. for (int color = 0; color < 16; color++) { SetConsoleTextAttribute (screen, color); cout << " Hello World!" << endl; Sleep(400); // Pause between lines to watch them appear } // Restore the normal text color) SetConsoleTextAttribute(screen, 7);*/#include <iostream>#include <windows.h>using namespace std;int main(){ //textbackground(WHITE); //textcolor(RED); system("cls"); char ch, a[20], ch2; int num = 100, rnum, guess, count, ch1, c = 0; cout << "**********************************************************"<<endl; cout << "*…2. Lottery Number Generator Design a program that generates a 7-digit lottery number. The program should have an Integer array with 7 elements. Write a loop that steps through the array, ran- domly generating a number in the range of 0 through 9 for each element. (Use the random function that was discussed in Chapter 6.) Then write another loop that displays the contents of the array.
- JAVA Programming Problem 5 – CharacterArray Write a program which will store the following string into a character array: 6901 Sudley Road Manassas VA Your program will display each original character, determine and display whether the character is a digit or a letter, and redisplay the character according to the directions below. Directions Create a class called CharacterArray. The scanner class is not required. Initialize the character array with the given string. Write a program which will accept an alpha numeric string at the keyboard. Store the string, of any length, into a character array, for example: RBDB Manassas Campus 6901 Sudley Road Manassas VA 20109 For each visible character: Display the original character Determine and display whether the character is a digit or a letter If the character is a lower case letter, redisplay the character in upper case If the character is a upper case letter, redisplay the character in lower case If the character is a digit, display it…JAVA CODE PLEASE FINAL EXAM Part 3 Instructions: Create a java program that asks & accepts input from the user (must be int value). Then depending on the number of inputs, the program will ask the user to enter string value/s. After, the program will print the strings entered by the user line-by-line. Constraints: Create a function and call it in the main function. Use Functions With No Parameters and Return Values Use for Loop Use String Array Use Scanner Input 1. One line containing an integer Sample 2 2. One line containing string Sample Funny 3. One line containing string Sample Sadly Output Enter·the·number·of·string·array:·2 Enter·string·#1:·Funny Enter·string·#2:·Sadly You've·entered: Funny SadlyVariables Primitive Write a java program that asks the user to enter 3 integers. Add the integers and display “The total is “ the result Reference Write a java program that asks the user for their first name and last name. Display “Your full name is “ the first name and last name Arrays One-dimensional Write a java program that creates an array of integers called numbers and contains five elements. Then use a for loop to print them out using println(). Two-dimensional submit your code for the total of rows and total of columns here