A program has a String variable fullName that stores a first name, followed by a space, followed by a last name. There are no spaces in either the first or last names. Here are some examples of fullName values: "Anthony Coppola", "Jimmy Carroll", and "Tom DeWire". Consider this code segment that extracts the last name from a fullName variable, and stores it in last Name with no surro no surrounding blanks: int k = fullName.indexOf(" "); //find index of blank String lastName = /* expression */ Which is a correct replacement for /* expression */? II fullName.substring (k+ 1); III fullName.substring(k + 1, fullName.length());
Q: John von Neumann graduated with a doctorate from the University of Göttingen in what year?
A: John von Neumann's: John von Neumann received a Ph.D. in mathematics while studying chemical…
Q: What do switching costs mean when it comes to the threat of buyer power?
A: Switching costs can be monetary psychological effort based and time based
Q: What's the best way to figure out what's wrong with a live network cable?
A: Introduction: Network cable can be troubleshooted in many ways. Below are the various ways to…
Q: Add Number Series Programming challenge description: Write a program that, given an integer, sums…
A: #accept a number num = int(input("Enter The Number: ")) Sum = 0 Minus = 0 #loop through the number…
Q: How can we weigh the pros and cons of redesigning the keyboards?Managing Storm Wind Studios is…
A: Given: DNS and DHCP, which offer services to assign and resolve IP addresses of computers in a…
Q: Write the algorithm and the Pseudo code for the following the questions? 1. Write an algorithm to…
A: (i) An algorithm to swap two numbers. by tracing the algorithm using X as 8 and Y as 9. (ii) Pseudo…
Q: subject: automata theory languages and computation The question is : ¿In what ways can a specific…
A: The above question is solved in step 2 :-
Q: write a program to implement the above interface using Lambda Expression to accept “ Hello World”…
A: The complete answer is given below in Java Programming Language.
Q: Who made the first 3D printer? It was made in the year 2000.
A: 3D Printer: It is a construction of a 3 dimensional object from a CAD model or a digital 3D model.…
Q: P/ check register AX if it has two consecutive ones, if so put 1 in BX else puto.
A: we generated every number and then checked if it contains consecutive ones at any position or not.…
Q: What's the difference between a one-to-one link and a one-to-many link?
A: Answer the above question are as follows as
Q: CHALLENGE ACTIVITY 1.10.1: Sphere volume. Given sphereRadius and piVal, compute the volume of a…
A: According to the Bartleby guideline, we are supposed to answer only one question at a time. Kindly…
Q: Explain what a random forest is and how it is different from a decision tree in one or two…
A: Decision trees and random forests Forest tree at random: A random forest tree is simply a grouping…
Q: Why are there so few types of computer chips and companies that make them?
A: Chips: Computers, game consoles, and other electrical devices all include chips, which are tiny…
Q: Define the ways that auto increment and auto decrement can change the address.
A: Definition: The contents of a register mentioned in the instruction serve as the operand's effective…
Q: Is there a connection between how a person learns and how he or she grows physically and culturally?
A: Multidisciplinary Methodologies When attempting to comprehend human nature and ability,…
Q: What does the letter WAN stand for?
A: WAN is a computer network that spans a wider area than does a local area network
Q: Describe one(1) pro and con of saving data using flat text files
A: The above question that is one pro and con of saving data using flat text files is answered below…
Q: If you were designing a Web-based system to make airline reservations and sell airline tickets,…
A: DBMS (database management system) A software called a database management system (DBMS) is used to…
Q: (i) Give the adjacency matrix, incidence matrix and linked list representation of the following…
A: (i) Adjacency Matrix Representation: Adjacency Matrix is a 2D array of size V x V where V is the…
Q: An upper-layer packet is split into 10 frames, each of which has an 80 percent chance of arriving…
A: The probability of getting a frame undamaged is 80% or 0.8. The chance of getting 10 frames will be…
Q: How do CSPs ensure the safety of data stored in the cloud?
A: Storage in the Cloud: Cloud storage providers, often known as CSPs, are companies that provide…
Q: List the major disadvantages with the layered approach to protocols.
A:
Q: Draw a flow chart of an algorithm that read a number (x) as input how many odd and even digits in…
A: The answer of the question is given below:
Q: How are sequential access devices different from random access devices?
A: Sequential Access to a data file means that the computer system reads or writes information to the…
Q: What do switching costs mean when it comes to the threat of buyer power?
A: Costs of Switching: Switching costs involve the transfer of funds from clients to suppliers of…
Q: List and briefly define some of the requirements for effective communications over a data link.
A: A communication protocol is a kind of protocol through which more than one entity can do…
Q: How does multicore architecture function, exactly?
A: Processor of a computer: A contemporary computer's processor, often known as the microprocessor, is…
Q: How about you jot down some thoughts on how networking has played a role in the development of IT?
A: Introduction: Information is a key element of efficient communication in the realm of information…
Q: Weigh the benefits of a centralised SAN data centre against the drawbacks of the previously used…
A: The data centre The data-center is a place where a lot of data is maintained and where it is…
Q: What is the best method for summarizing the benefits of nondeterministic finite automata?
A: Answer:
Q: List and briefly define some of the requirements for effective communications over a data link.
A: Data link layer The data link layer is the second layer in the OSI (open System Interconnection)…
Q: Explain (in English) the algorithm for insertion sort.
A: Insertion sort=> Insertion sort is one of the sorting algorithm which we use to sort the array (…
Q: Who owns the space in the cloud?
A: Simply put, the cloud is a collection of servers located in enormous buildings that occupy entire…
Q: What does it mean to have a computer that is built into the future?
A: Answer:
Q: When and where did the first tablet computer appear, and who created it?
A: The Tabernacle: Tablets, similar to other electronic gadgets, are portable, have an LDC display, and…
Q: 2) What is a data packet? How is it put together? What happens to packets when they are wrapped up?
A: Introduction: A computer network is a computerized media interchanges network that interfaces…
Q: Write an SQL query to display: The last name of the student who registered at the last. Your output…
A: Write SQL query to display the last name of the student who registered at the last. Given: The…
Q: Why is it important to keep one's bio up-to-date?
A: Given: Fundamental Input-Output System (BIOS)As a foundational piece of motherboard firmware, BIOS…
Q: Would you expect that the inclusion of a parity bit with each character would change the probability…
A: Answer - The inclusion of a parity bit extends the message length. There are more bits that can be…
Q: Under what circumstances would one use the deferred procedure calls facility in Windows XP?
A:
Q: Let R(A,B,C,D,E,F,G) be a relation with the FDs: F= (CDG, DG-C, AD-G, G-A, AB-F). Consider the…
A:
Q: What lessons and lessons-learned can we draw from cybercrime?
A: Recommendations: Compliance with the legislation should be mandatory. Workshops and lectures to…
Q: Which of the following pairs of declarations will cause an error message? I double x = 14.7; int y =…
A: Answer:
Q: There are many risks to doing business on public Wi-Fi.
A: We are going to learn what could be the adverse affects of using public WIFI for doing businesses.…
Q: Can you describe John von Neumann's contributions to the world?
A: John von Neumann is perhaps best known for his work in the early development of computers as…
Q: (i) Give the adjacency matrix, incidence matrix and linked list representation of the following…
A: Solution Graph: A graph G is consists of two sets, A set V, Is the set of all vertices A set…
Q: An upper-layer packet is split into 10 frames, each of which has an 80 percent chance of arriving…
A: Upper Layer Protocol :- The physical layer handles the transformation of binary ones and zeros into…
Q: Where did John von Neumann get his degree?
A: Find Your Answer Below
Q: Ada Lovelace was a programmer or a person who worked with codes.
A: Given: Cryptography and programming have different purposes. Giving a computer a set of instructions…
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images
- Problem: An online grocery store sells items on a web page. A user adds items to a basket and he clicks on the submit button when he completes. The store sells food and electronic items. The electronic items require VAT payment of 15 percentage of their prices. There are packed and lose food. The lose food is measured in weights. User specifies the weight amount or the quantity in his selection of items depending on its type. The price is computed as the product of the price per item or the price per weight and the weight or quantity are given by the user. Write an application that reads a user basket list and produces the bill receipt. Check the given samples of input/output in the figures below. The bill receipt contains the list of item details in decreasing order according to the price computed for each item. Use the selection sort' to sort the items in the list and do not use java given sort method. Selection sort is an algorithm used to arrange elements in a list. It selects the…Programming in C#: Write a console-based application that displays every perfect number from 1 through 10000. A number is perfect if it equals the sum of all the smaller positive integers that divide evenly into it. For example, 6 is perfect because 1, 2, and 3 divide evenly into it and their sum is 6. Use format strings(field size 8, right alignment) to show all perfect numbers. Display the results as seen below. 6 28 496 8128JAVA PROGRAM ASAP Please CREATE A program ASAP BECAUSE IT IS LAB ASSIGNMENT so it passes all the test cases. The program must pass the test case when uploaded to Hypergrade. Chapter 9. PC #16. Morse Code Converter Morse code is a code where each letter of the English alphabet, each digit, and various punctuation characters are represented by a series of dots and dashes. Write a program that asks the user to enter a string, and then converts that string to Morse code and prints on the screen. Use hyphens for dashes and periods for dots. The Morse code table is given in a text file morse.txt. When printing morse code, display eight codes on each line except the last line. Codes should be separated from each other with one space. There should be no extra spaces at the beginning and at the end of the output. Uppercase and lowercase letters are translated the same way. Morse.txt 0 -----1 .----2 ..---3 ...--4 ....-5 .....6 -....7 --...8 ---..9 ----.,…
- Q1__;. A phrase is a palindrome if, after converting all uppercase letters into lowercase letters and removing all non-alphanumeric characters, it reads the same forward and backward. Alphanumeric characters include letters and numbers. Given a string s, return true if it is a palindrome, or false otherwise. Example 1: Input: s = "A man, a plan, a canal: Panama" Output: true Explanation: "amanaplanacanalpanama" is a palindrome. Example 2: Input: s = "race a car" Output: false Explanation: "raceacar" is not a palindrome..George runs a company. He manages James and Jamila, who each have a small team to manage. In James' team are Jill and Jenny. In Jamila's team are Jewel, Jasmine and Jeremy. Create a JSON object in a string variable called company where each item has a name field and a field called manages which contains an array of the people managed by that person. If a person does not manage anybody, they have no field called manages. Then convert the JSON string to a dictionary in a variable called company_dict. Finally, write a recursive function that accepts the dictionary as an argument and lists each person and their level in the organisation, so that George is at level 1, James and Jamila are at 2, and so on. Call the function and print the result. It should look like this: George is at level 1 James is at level 2 Jill is at level 3 Jenny is at level 3 Jamila is at level 2 Jewel is at level 3 Jasmine is at level 3 Jeremey is at level 3 The function can either return a string, which you print…In python Add the following four methods to your Crew class: move(self, location): This takes in a location as a string, along with self, and attempts to move the crew member to the specified location. If location is one of the five valid location options ("Bridge", "Medbay", "Engine", "Lasers", or "Sleep Pods"), then this should change self.location to that new value. Otherwise, the function should print out the message: Not a valid location. repair(self, ship): first_aid(self, ship): fire_lasers(self, ship, target_ship, target_location): The above three methods represent tasks that a basic Crew member is not capable of (but one of its derived classes will be able to accomplish). So each of them should simply print out a message of the form: <Name> doesn't know how to do that. Examples: Copy the following if __name__ == "__main__" block into your hw12.py file, and comment out tests for parts of the class you haven’t implemented yet. if __name__ == '__main__': crew1…
- Write a program in the StringManipulator class that creates a String variable that references a String object holding the name of your favorite city. The program should display the following: • The number of characters in the city name• The name of the city in all uppercase letters • The name of the city in all lowercase letters • The first character in the name of the cityA business that uses functions to calculate the weekly payment amounts of employees in a workplace.you are asked to write a program.The weekly payment amount of an employee depends on the following variables:- Number of hours worked - (minimum: 0, maximum: 60)- Hourly wage - (minimum: 0.00 TL, maximum: 30.00 TL)- Number of exemptions - (minimum: 0, maximum: 5)Using these 3 values,- Gross payment amount- General income taxLocal income tax- Social security amount- Net payment amountwill be calculated. →The maximum number of hours an employee can work before earning overtime pay is 40 hour. If the number of hours worked is less than or equal to 40, the gross payment amount will be equals the product of the wage. If the number of hours worked is more than 40, the gross payment amount is 40 times the hourly wage. plus 1.5 times the hourly rate for every hour over 40 →The general withholding tax is 55.77 TL for the weekly payment period. The employee is subject to general taxation the gross…write an application that reads English-Language phrase and encodes it into morse code. also write an application that reads a phrase in morse code and converts it into the English-Language equivalent . Use one blank between each Morse-code letter and three blanks between each Morse-coded word.
- A class plays a fishing game in which a large tub is filled with plastic fish that are identical, except that some are red and the rest are white. A student is blindfolded and pulls 10 fish out of the tub. The student removes the blindfold, writes down how many of each color fish she got, and then puts the fish back in the tub. Each student takes a turn. The results are shown in the table. Display these data in a dot plot. Write and answer (to the extent possible) at least three questions about the data display in part (a); include at least one question at each of the three graph-reading levels discussed in the reading.in this code, the integer on each line shows the line number that is not part of code: what are the parameters of sum: ____ 1 public static int sum(int x, int y){ 2 int z = x +y; 3 return z; 4 } 5 public static void main(String[] args){ 6 … 7 sum(a+2, b); 8 … 9 }ATM machines allow 4 or 6 digit PIN codes and PIN codes cannot contain anything but exactly 4 digits or exactly 6 digits. Your task is to create a function that takes a string and returns true if the PIN is valid and false if it's not. Examples validatePIN("1234") ➞ true validatePIN("12345") ➞ false validatePIN("a234") ➞ false validatePIN("") ➞ false Notes ● Some test cases contain special characters. ● Empty strings must return false.