Write a program to create array of objects for the same to access these. Also, make use of member functions to accept values and print the name, age, designation and salary.
Q: What are the advantages and disadvantages of scattered data processing that should be examined befor...
A: Introduction: Increased productivity and revenues, better judgments, and more precise and trustwor...
Q: In what cases would you advocate the use of assembly language code in the creation of application so...
A: Introduction: Mnemonic codes, analogous to English words, are used in assembly language. Although de...
Q: Write a query to display first name, last name, package number and internet speed for all customers ...
A: We need to write a query to display the first name, last name, package number, and internet speed fo...
Q: Question:: P and Q are two processes that share a set of variables that is common. The variable incl...
A: either of the process can execute first. Also a process can be preempted by another process. Thus a...
Q: Please Answer this in C++: Write code to read a list of song durations and song names from input. ...
A: #include <iostream> #include <string> #include <vector> using namespace st...
Q: We are interested in finding outlier temperatures and comparing t run average.
A: SOURCE CODE #!/usr/bin/python3import csv CSV_FILE = input("Temperature anomaly file name:") with ope...
Q: sequential circuit Wi Jo K1 Qi K for the next 3 clock CYC
A:
Q: Question 3: Mention two features of any simulation software that supports DSS.
A: Answer: (a) It is a method of organizing information for use in decision-making. It encompasses the ...
Q: How many bits does it take to store an uncompressed 1,200 X 800 RGB color image? If we found out th...
A: Given: RGB Image size= 1200 x 800 pixels Each pixel is of 8 bits for each component R, G and B (8*3...
Q: An expert system is different from a database program in that only an expert system can be used:
A: Answer this question is in step 2
Q: der the web obsolete? What is y
A: Will apps someday render the web obsolete? What is your reasoning?
Q: What Is SDILC?
A: Introduction: what is SDLC? Software Development Life Cycle (SDLC)
Q: 4. Find the output of the given Python program. L = ['a', 'b','c','d'] print ("".join(L))
A: Find the output of the given Python program. L = ['a','b','c','d']print("".join(L))
Q: In the following Deterministic Finite Automaton (DFA): Sı S2 1 What statement(s) correctly describe(...
A: Because of guidelines we have to answer first three MCQ 1. False 2. True 3. False
Q: Question:: What is an abstract class?
A: Introduction: An Abstract Class is one that has 0 or more abstract methods.
Q: Binary Tree: 18,20,3,17,28,50,6,55,4,9,1 Q1)Draw a Binary-Tree Q2) if not balanced, balance it. Q3) ...
A: Below is the answer to above question. I hope his will be helpful for you....
Q: What is the purpose of XML document storage?
A: What Is XML? XML is a mechanism for storing and delivering data that is independent of software and ...
Q: #include int main() { int a = 50; int ans = a++ + ++a + a++ + ++a; printf("%d", ans); ...
A: As given, we need to find out the output of the given code. The given code is - #include <stdio.h...
Q: What will be the impact of the internet of things (IoT) on our everyday lives? Justify your position...
A: Introduction: IoT is a network of networked, internet-connected devices that can gather and transmit...
Q: Question:: What Is SDILC?
A: This question comes from Software Engineering which is a paper of Computer Science. Let's discuss it...
Q: gorithm emonstrate, step by step, how to construct a max-heap for the list of integers 1..8] = (12, ...
A: Solution:
Q: Create a class 'Box' that has height, width and depth. The class should have a method volume() which...
A: Defining preprocessor directives Creating class for box Declaring required class parameters Declarin...
Q: uestion 1: Find all the strings and a regular expression for L = {VwV: V, wE {a, b)*, |V|= 2}. Quest...
A: the answer is given below:-
Q: Given the 1D numpy array x , which of the following will set all of the o | x ? | x[1::2] = 0 O x[:]...
A: Here in this question we have given a 1D bumpy array and we have asked that which option will set al...
Q: Please convert following figure into a relational schema. In each table, the primary key and foreign...
A: Here the entity BankBranch is a weak entity and therefore we need to include primary key of Bank as ...
Q: Write a loop to display the powers of 2 exactly as shown below: 1 2 4 16 32 64 128
A: As per answering guidelines since no language mentioned using c++ language.
Q: For this assignment, you will create a parallel fixed-length code decompressor using the tools we le...
A: #include <vector> #include <algorithm> #include <string> #include <new&...
Q: Describe any 50 Port Numbers and their services
A: Step 1: Port number is defined as the logical address of each application that uses the Internet to ...
Q: 2. Using Divide and Conquer technique, sort the given number using quick sort 9,1,3,5,2,6,4
A: check further steps for the answer :
Q: What is the distinction between a White Hat and a Black Hat Hacker?
A: Introduction: While white hat hackers look for and solve security flaws in a system, black hat hacke...
Q: Analyze the process to convert the floating point to binary number. Assume FIVE (5) bits for the neg...
A: Here take a simple floating number , to convert into binary: =======================================...
Q: e number of control
A: Use bezier curve to model the letter 'D
Q: A COMPUTER HAS 32-BIT INSTRUCTIONS AND 12-BIT ADDRESSES. HOW MANY TWO-ADDRESS INSTRUCTIONS THIS COMP...
A: Below is the answer to above question. I hope this will be helpful for you...
Q: Question:: In what cases would you advocate the use of assembly language code in the creation of app...
A: Introduction: Assembly language employs mnemonic codes, which are equivalent to English words. Altho...
Q: What is an abstract class?
A: abstract class: abstract class are that class which contains both abstract and non-abstract methods ...
Q: Question:: In what cases would you advocate the use of assembly language code in the creation of app...
A: Introduction: Assembly language employs mnemonic codes, which are equivalent to English words. Altho...
Q: public class Soru2 { static void sort(char a[]) { for(int i = 0; i < a.length;...
A: So, Here we are given code of soring and we have calculate the time complexity and number of steps....
Q: Question:: Describe the TM that accepts the language, L= {w e {a,b,c}* | w contains equal number of ...
A: L={w∈{a,b,c}* | w contains equal number of a's, b's and c's} Solution:-L = (abc, aabbcc, abccbabca, ...
Q: Regardless of how user level threads are implemented, if a programme has two or more user level thre...
A: Introduction: Kernel: A kernel is the heart of a computer's software or operating system. Provide a ...
Q: What is an abstract class?
A: abstract class: abstract class are that class which contains both abstract and non-abstract methods ...
Q: R clock S
A:
Q: Python Lee has discovered what he thinks is a clever recursive strategy for printing the elements i...
A: No,It doesnot work as expected.It causes recursion error.if seq is empty,make a return . Here i ha...
Q: Is there a reason why the heap is better than a stack?
A: STACK: 1.A stack is a non linear data structure. 2.A stack is a ordered collection o...
Q: When does it make sense to break down large computer processes and programs into smaller subsystems?...
A: Segments are used to break down a process. Segments are refers to the sections into which a program ...
Q: non:: P and Q are two processes that share a set of variables that is common. The variable includes:...
A: Text:Q1: tB Q2: seq = tB; seqt 2; P1: tA = seq + 1; P2: seq %3D = tA;
Q: 2. Answer the following questions: a. What is the article all about? b. Why do you think it is impor...
A: The article is all about understanding the difference between Data security and Data privacy.
Q: Decrite how web caching Can reduce delary in recimng a reguested btject
A: Web caching is a process of storing the data for reuse, such as a copy of a web page served by the w...
Q: Respond to the following in a minimum of 175 words: Describe the necessary Java commands to create ...
A: Below is the code for the problem described. comments added import java.util.Random;import java.u...
Q: How do you transform an analog signal to digital?
A:
Q: Where are the microcontrollers present?( Broad answer).
A: Microcontrollers are used in automatically controlled products and devices, such as automobile engin...
Write a
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
- Rewrite the client program to use the Baby class that you have done using ArrayList. You should also have the following function in this new client program: a) Enter details for each baby (name and age) and thus populate the Baby ArrayList b) Calculate and display the average age of all babies in the ArrayList c) Ask the user to enter the name of a baby, and then remove it from the ArrayList d) Allow the user to add new baby information in the ArrayList e) Output the details of each baby from the ArrayList (name and age) Compare this client program using the ArrayList with the client program you have done using array, comment on the differences between the two. Modify your client program in the last question, by adding a sort function such that when that option is selected, it sorts the ArrayList using the baby names in alphabetical order and output the details in the sorted ArrayList to a CSV (sortedbabylist.csv) file. public class Baby { private String name; private int age;…In C++, Define a “Invalidanalyze” function that accepts an array of “Course” objects. It will return the following information to the caller: - The number of courses with empty or blank description - The number of courses with invalid negative units - The number of courses with invalid day number of the week - The total number of units for all invalid courses in the array Show how this method is being called and return proper information.C++ Write a function named “getTotalHourAndPayout” that accepts an array ofPayStub object pointers and its size. It will return the total number of hours andpayout amount for all of the PayStub in the given array. For example, if we have two paystubs of 40 hours and $10 pay rate with 50 hoursand $10 pay rate, it will return 90 hours and $950.Please show you would call and test this function.
- Write a public static void function named getLongestName. This function should be designed to take a String [] reference variable and use this to find the longest name in the array. Your function should then return this String.Make a call to this function in your main function passing it namesList at the actual parameter. Use the returned string so that you print out a meaningful message to the screen.Write a function that accepts an int array and the array’s size as arguments. The function should create a new array that is two elements larger than the argument array. The first two elements of the new array should be set to 0. Element 0 of the argument array should be copied to element 2 of the array, element 1 of the argument array should be copied to element 3 of the new array, and so forth. The function should return a pointer to the new array. Demonstrate the function in a complete program.In C++, define a “Conflict” function that accepts an array of Course object pointers. It will return two numbers:- the count of courses with conflicting days. If there is more than one course scheduled in the same day, it is considered a conflict. It will return if there is no conflict.- which day of the week has the most conflict. It will return 0 if there is none. Show how this function is being called and returning proper values. you may want to define a local integer array containing the count for each day of the week with the initial value of 0.Whenever you have a Course object with a specific day, you can increment that count for that corresponding index in the schedule array.
- in c++ Write a user-defined function that takes an array and the size of the array as parameters, and returns the number of elements whose values are between 10 and 20 in the array. Define and initialize an array with 10 elements in main() function and use your user-defined function to display the result.Language: C++ Create a class called publication that stores the title (char array) and price (float) of a publication. From this class derive two classes: book, which adds a page count (int) and tape, which adds a playing time in minutes (float). Each of the three classes should have a getdata() function to get its data from the user using input from the keyboard and a putdata() function to display the data.Write a main function that creates an array of pointers to publication. In a loop, ask the user for data about a particular type of book or tape to hold data. Put the pointer to the object in the array. When the user has finished entering data for all the books and tapes, display the resulting data for all the books and tapes entered, using a for loop and a single statement such as: pubarr[j] -> putdata(); To display the data from each object in the array.C++ Write a function named “checkInvalidHours” that accepts an array of PaySubobjects and its size. It will go through the array and check for invalid hours(negative values). If it is negative, it will reset the hourly payrate to 0. It willreturn how many PayStub objects that it has reset the payrate to 0.Please show you would call and test this function.
- javascript only: This quarter, your team manager is awarding commission to anyone who closes a sale worth $15,000 or more! The commission amount will be 10% of the value of their largest sale. Anyone who does not make this large of a sale will receive the base commission of $500. Write a function `salesCommission(arr)` that takes an array of objects containing salesperson names and their largest sale, and returns the total amount of commission money that needs to be paid out to the team. Example: salespeople = [ { name: "Susan", largestSale: 3000 }, { name: "Brianna", largestSale: 20000 }, { name: "Dwayne", largestSale: 13000 }, { name: "Delilah", largestSale: 26000 }, { name: "Fernando", largestSale: 8000 }, ]; console.log(salesCommission(salespeople)); // 6100Using C++ Write the section of code which takes an array of characters and copies it to another array of characters. At this point two arrays of characters should hold the same name. You will need to use one of the loop instructions to do this. You can't use any built in functions. Write a second section of code which concatenates two arrays of characters into a third array of characters. The first array (which holds the first name) will be copied into the third array and the second array (which holds the last name) will be concatenated onto the third array. Once you are done filling in the arrays you should output the two sentences below. You are given the example input and output below.Example Input: Input first name -> FredInput last name -> SmithExample output: Your first name is Fred and the copy of your first name is Fred. Your first name is Fred and your last name is Smith and the concatenation is FredSmith.Write a function that accepts an int array and the array’s size as arguments. Thefunction should create a new array that is one element larger than the argument array.The first element of the new array should be set to 0. Element 0 of the argument arrayshould be copied to element 1 of the new array, element 1 of the argument array shouldbe copied to element 2 of the new array, and so forth. The function should return apointer to the new array.