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
- Write a program that gets 2 string variables and 2 integer variables from the user, concatenates (joins them together with no space) and displays the strings, then multiplies the two numbers on a new line and displays them with two decimal points.Many companies use telephone numbers like 555-GET-FOOD so the number is easier for their customers to remember. On a standard telephone, the alphabetic letters are mapped to numbers in the following fashion: A, B, and C 2 D, E, and F 3 G, H, and I 4 J, K, and L 5 M, N, and O 6 P, Q, R, and S 7 T, U, and V 8 W, X, Y, and Z 9 Write a program that asks the user to enter a 10-character telephone number in the format XXX-XXX-XXXX. The application should display the telephone number with any alphabetic characters that appeared in the original translated to their numeric equivalent. For example, if the user enters 555-GET-FOOD the application should display 555-438-3663. Gaddis Tony. Starting Out with Python (2-downloads) (p. 367). Pearson Education. Kindle Edition.write a program that displays, in ascending order,the first names of those students who have attended more than one day of the course.If there are students with the same first name, display their first and last names.
- Write a program that will analyze a string by counting the number of each alphabetic letter in the stringand then printing a vertical histogram showing the frequency of the letters in the string.For example, if text = "I love problem-solving.", your program should plot when thehistogram is printed: * * * * * * * * * * * * * * * * * * *---------------------------------------------------a b c d e f g h i j k l m n o p q r s t u v w x y zNote that all special characters including blanks are ignored and alphabet letters are caseinsensitive.Create your source code file named Lab10FirstnameLastname.java in NetBeans and add thefollowing menu to the main method in the Lab10FirstnameLastname class.T: Enter a text stringP: Plot alphabetic frequencies in the stringQ: QuitSelect an option:Add the following Histogram class to your source code file and complete the setText(Stringt) and drawHistogram() methods to do the work for options T and P in your main menu.The setText(String t)method changes…Write a program that prompts the user to enter adecimal number and displays the number in a fraction. (Hint: read the decimalnumber as a string, extract the integer part and fractional part from the string,and use the BigInteger implementation of the Rational class in Programming to obtain a rational number for the decimal number.) Here are somesample runs: Enter a decimal number: 3.25 ↵EnterThe fraction number is 13/4 Enter a decimal number: –0.45452 ↵EnterThe fraction number is –11363/25000Implement the FindText() function, which has two strings as parameters. The first parameter is the text to be found in the user provided sample text, and the second parameter is the user provided sample text. The function returns the number of instances a word or phrase is found in the string. In the PrintMenu() function, prompt the user for a word or phrase to be found and then call FindText() in the PrintMenu() function. Before the prompt, call cin.ignore() to allow the user to input a new string.Ex: Enter a word or phrase to be found: more "more" instances: 5
- Write a program that displays allthe numbers from 100 to 200, ten per line, that are divisible by 3 or 4, but not both.Numbers are separated by exactly one space.Write a program to calculate total ordering cost. Jacob is a retailer for ice. Normally a bag of ice costs $2.5, but the price varies with the amount that he purchases. The following table shows the discount that Jacob receives. Order Volume Discount Rate >= 200 bags 25% off 120 - 199 bags 20% off 60 - 119 bags 15% off 40 -59 bags 10% off 20 – 39 bags 5.5% off 0-19 bags No discount (1) Inyourprogram,definevariableswithmeaningfulnamestoacceptuserinputonordervolume, and calculate total ordering cost based on the order volume inputted. Use if-else statements to handle the calculations for different order volumes as shown in the above table. (2) Yourprogramshouldprintoutuserordervolume,discountrate,andtotalorderingcostinconsole (similar to the following sample outputs)Write a simulation of T20 match. There are two teams, Team A and Team B. For every balldelivered generate a random number from -1 to 6 (both inclusive). A -1 means that batsman isout, any other number is the runs scored on that delivery. A 0 in this case represent a dot ball.After every 12 balls, generate a random value which represents the weather conditions.Random Number Weather Condition Score Limits0 Sunny 0-61 Cloudy 0-42 Windy 0-33 Drizzle 0-24 Rain Match stoppedTeam A plays continuously until all players are out or 120 balls are delivered or match is stoppeddue to the rain.Team B plays continuously until all players are out or 120 balls are delivered they have scoredmore than Team A or match is stopped due to rain. Every time a rain event occurs, deduct 12balls from both innings. A match result should be draw if any of the innings is less than 18balls. You have to maintain 2d array, store player id and player score. Count total scores ofteams depending upon preceding…
- Write a program that accepts as input a sentence in which all of the words are run together but the first character of each word is uppercase. Convert the sentence to a string in which the words are separated by spaces and only the first word starts with an uppercase letter. For example the string “StopAndSmellTheRoses.” would be converted to “Stop and smell the roses.”A very known application in natural language processing is to extract information from a given text. In this lab, you will be able to extract some emotions (Sad and Happy) from a given string and calculate the score of each emotion. You will be given below the words that express sadness, anger, and happiness. For each word, you will be given weight as well, so that when you are calculating for example the score for sadness in the text (string), you can use this formula:Write a program that creates a login name for a user, given the user's first name, last name, and a four-digit integer as input. Output the login name, which is made up of the first five letters of the last name, followed by the first letter of the first name, and then the last two digits of the number (use the % operator). If the last name has less than five letters, then use all letters of the last name. Hint: Use the to_string() function to convert numerical data to a string.