Many documents use a specific format for a person's name. Write a program whose input is: firstName middleName lastName and whose output is: lastName, firstInitial.middlelnitial. Ex: If the input is: Pat Silly Doe the output is: Doe, P.S. If the input has the form: firstName lastName the output is: lastName, firstInitial. Ex: If the input is: Julia Clark the output is: Clark, J. 1 import java.util.Scanner; 3 public class LabProgram { 12345678 7} public static void main(String[] args) { /* Type your code here. */ }
Q: Write a C++ program that reads strings until "QUIT" input, which then displays all strings in the…
A: I have provided C++ CODE along with CODE SCREENSHOT and also provided OUTPUT SCREENSHOT------…
Q: the differences between java.util.HashMap ar the differences between java.util.TreeMap and the…
A: 1) Differences between java.util.Hash.Map and java.util.HashSet: java.util.Hash.Map: It is the…
Q: Consider the following algorithm: g1 = 7 g2 = 6 for k in range(3,8): gk = (k-1)·gk-1 + gk-2…
A: Given algorithm is: g1 = 7 g2 = 6 for k in range(3,8): gk = (k-1)·gk-1 + gk-2 That means the…
Q: What is the difference between the Oculus Rift and the Microsoft HoloLens?
A: The basic idea behind both of these devices is the same: by projecting an image right in front of…
Q: words on artificia
A: Introduction:The replication of human intelligence functions by machines, particularly computer…
Q: An online warehouse provides features for their customers to browse and search products and to place…
A: Online shopping is used to purchase different products through internet and use case diagram is just…
Q: How many times the following loop will be executed
A: Given Code:
Q: PSEUDOCODE - (ONLY PSEUDOCODE) Write an algorithm that takes a vector of integers A[1..n] and an…
A: Solution:: Suppose we define a second array B[1 .. n] by setting B[i] = A[i] − i for all i. For…
Q: Suppose the Ethernet transmission algorithm is modified as follows: After each successful…
A: According to Ethernet transmission algorithm, the channel is sensed before transmitting the data. If…
Q: need help in this C Program. Write a program that will read the contents of "essay.txt". The output…
A: We are asked to write a program that will read the contents of "essay.txt". The output of the…
Q: Determine the worst case time complexity of the insertion sort algorithm, in terms of the number of…
A: Given list of numbers is: {60, 50, 40, 30, 20, 10} Insertion sort is a sorting algorithm which is an…
Q: Question 1 Write a program in C which continuously takes integer inputs from the user with Sample…
A: Here is c program to implement the above problem. See below steps.
Q: Write a program that calculates the total grade for N classroom exercises as a percentage. The user…
A: C++ is just an object oriented programming language not only based on objects but also based on…
Q: Wise Limited has an online platform for purchase and sale of goods and services which connects…
A: Electronic Data Interchange: Electronic Data Interchange (EDI) is a method that enables businesses…
Q: Given the class definitions of MPoint and Named Point below, which of the constructors would be…
A: We have the class with name MPoint . We have two member variables inside it myX and the myY .Then…
Q: a. Sort the following functions in ascending order of their growth. For example- n²<n3, etc. Hint:…
A:
Q: Create a webpage to sort three numbers using JavaScript conditional statement. For example, x=0,…
A: HTML code <!DOCTYPE html><html><head><meta charset=utf-8…
Q: Suppose the Ethernet transmission algorithm is modified as follows: After each successful…
A: Introduction: In this, the channel is identified before sending the data. Expecting the channel to…
Q: Using the smallest data size possible, either a byte (8 bits), a halfword (16 bits), or a word (32…
A: Introduction: In order to find out the 2s complement of any decimal number, we have to first convert…
Q: (c) Using the smallest data size possible, either a byte (8 bits), a halfword (16 bits), or a word…
A: Introduction: In order to find out the 2s complement of any decimal number, we have to first convert…
Q: write C++ code for the fallowing pseudocode // Pseudocode Project 13 // Start // Declarations…
A: Complete C++ Code for the given Pseudocode is below:
Q: Assuming the Employee class has a sayName method that returns the employee's name (which is Fred),…
A: => An object is a blueprint of a class in the object-oriented programming language. =>…
Q: Problem: Predicate logic expressions form a simple language: they are composed of terms involving…
A: ANswer:- class MyClass { public: }; #include <iostream> #include <cmath> using namespace…
Q: Assume d is a dictionary with string keys, list values, and at least one key:value pair. Which of…
A: Dictionary in Python: It is an unordered collection of items in the form of key-value pair. Syntax…
Q: Consult Request for Comments 793 to find out how TCP is supposed to respond if a FIN or an RST…
A: Consult Request for Comments 793 to find out how TCP is supposed to respond if a FIN or an RST…
Q: Consider the sliding window algorithm with SWS = RWS = 3, with no out-of-order arrivals and with…
A: Consider we use the sliding window algorithm with SWS= RWS=3 Sliding window algorithm is used where…
Q: Suppose hosts A and B are connected by a link. Host A continuously transmits the current time from a…
A: Answer:
Q: write a python function that replaces the None values with the average from that column. example:…
A: Step 1: In this function, I have created a list to store the result. Step 2: Next, I have iterated…
Q: Suppose a workstation has an I/O bus speed of 1 Gbps and memory bandwidth of 2 Gbps. Assuming DMA is…
A: Introduction: Bottleneck: An I/O bottleneck is a problem where a system does not have fast enough…
Q: 1. Consider the network shown in Figure 4.28, in which horizontal lines represent transit providers…
A: (a) Q receives up to three routes to P from the links 1,2 and 3 Each interprovider directs the…
Q: Describe a scenario in which biased or incorrect information a child finds on the Web might harm him…
A: Introduction: Everyone can find the internet to be a hazardous place, but kids and teenagers are…
Q: After establishing a connection with the local DNS server PC1 now knows the IP and MAC addresses of…
A: Below is the answer to above question. I hope this will be helpful or you...
Q: The first line of HTTP request message is called a. Request line b. Header line c. Status line d.…
A: Introduction The first line of HTTP request message is calleda. Request lineb. Header line c. Status…
Q: ment to the average value of an array of some integers. If there exist more than one closest…
A: Code: #include <stdio.h> #include <stdlib.h>int main()…
Q: Ans
A: Introduction:The framework governing how components interact with one another is called computer…
Q: Consider a SunRPC client sending a request to a server. (a) Under what circumstances can the client…
A:
Q: PROGRAMMABLE LOGIC CONTROLLERS
A: ) notation list of ladder diagram of inputs and outputs Inputs Start button- PB1 Stop push button -…
Q: What is the maximum bandwidth at which an IP host can send 576-byte packets without having the ldent…
A: Introduction: Bandwidth is frequently confused with web speed when really the volume of data can…
Q: You are a software engineering manager and your team proposes that model-driven engineering should…
A:
Q: Propose a lookup algorithm for an IP forwarding table containing prefixes of varying lengths that…
A: IP forwarding tables are used to lookup the address of the next hop and to identify the ports for…
Q: Discuss the drawbacks of using file systems to store data instead of a database management system.
A: According to the information given:- We have to discuss the drawbacks of using file systems to store…
Q: Discuss the three layers of the Database architecture with examples of each layer.
A: Answer:
Q: C++ Problem 1 please
A: Given We know about the C++ programing.
Q: When closin timeout not CLOSED?
A: Answer is given below.
Q: Q9. Consider the following algorithm: sum = 0 for j in range(1,14): sum = sum + (4*j + 6)…
A: Introduction: This code is related to the python loop and operators. Operators used are assignment…
Q: Java VENDING MACHINE Write a program that simulates a vending machine. The program should display a…
A: Java Programming refers to the object oriented programming languages that are used to develop the…
Q: Let's suppose there is an organization w 120 host addresses. The administrator ha Briefly explain in…
A: The answer is in step 2:
Q: Suppose two hosts A and B are connected via a router R. The A-R link has infinite bandwidth; the R-B…
A:
Q: Justify the requirement for a trained project manager to oversee complicated tasks.
A: According to the question the project manager always has power to conduct something explain everyone…
Q: Trace the following code by showing the values of the 3 variables in the table on the right, for…
A: Code -----------------> x y z var x = 5; -----------------> 5 N/A N/A var y = 10;…
Name Format - Use Java
Step by step
Solved in 4 steps with 3 images
- (Statistics) This is the formula for the standard normal deviate, z, used in statistical applications: z=(X)/ X is a single value. refers to an average value. refers to a standard deviation. Using this formula, you need to write a program that calculates and displays the value of the standard normal deviate when X=85.3,=80,and=4. a. For this programming problem, how many outputs are required? b. How many inputs does this problem have? c. Determine a formula for converting input items into output items. d. Test the formula written for Exercise 7c, using the data given in the problem.IN PYTHON Write a script which uses the input function to read a string, an int, and a float, as input from keyboard prompts the user to enter his/her name as string, his/her age as integer value, and his/her income as a decimal. For example your output will display as: Mark is 30 years old and his income is 2000 Please show code.A business law class of 25 students takes a midterm exam that has 100 true- or-false questions. The instructor, who is also a computer fanatic, wants to devise a program to obtain a printout with the student's name, score, and letter grade, according to the following schedule: 50 or below F 51 - 55 D 56 – 60 C- 61 - 65 66 – 70 C+ 71 - 75 B- 76 - 80 81 - 85 86 – 90 B B+ А- 91 - 95 A 96 – 100 A+ In addition, the instructor wants to include the total number of students scoring each of the 11 possible grades. How would you use the FORTRAN language to solve his problem?
- Java Language The company will held its quarterly performance for each department; wherein each group of the department are rated from 1 to 5, where 1 is the lowest score and 5 is the highest score. The department has two groups, groupA and groupB. Each group will be rated by five evaluators. Create a program that will ask for the input rate of the evaluators, and determine the group that got the highest rating, as well as the overall rating of the department. Use the UML diagram below as a reference. Department() – accepts 5 ratings of the evaluators and determines the groupScore which is the total rating of the group. getGroupAverage() – returns the value of groupAverage which is the average score of the group. displayAverage() – displays the overAllAverage which is the average of the whole department. overAllScore is the over all score of the department. Department Group Score: Int Group Average : Double Overall Score: int overall Average: double Department()…Many documents use a specific format for a person's name. Write a program that reads a person's name in the following format: firstName middleName lastName (in one line) and outputs the person's name in the following format: lastName, firstInitial.middleInitial. Ex: If the input is: Pat Silly Doe the output is: Doe, P.S. If the input has the following format: firstName lastName (in one line) the output is: lastName, firstInitial. Ex: If the input is: Julia Clark the output is: Clark, J.Design a program that asks the user for a series of names (in no particular order). After the final person’s name has been entered, the program should display the name that is first alphabetically and the name that is last alphabetically. For example, if the user enters the names Kristin, Joel, Adam, Beth, Zeb, and Chris, the program would display Adam and Zeb. This is to be done in Python.
- Design a program that gives simple math quizzes. The program should display two random numbers that are to be added, such as: 247+ 129 The program should allow the student to enter the answer. If the answer is correct, a message of congratulations should be displayed. If the answer is incorrect, a message showing the correct answer should be displayed.Design a program that asks the user for a series of names (in no particular order). After the final person's name has been entered, the program should display the name that is first alphabetically and the name that is last alphabetically. For example, if the user enters the names Kristin, Joel, Adam, Beth, Zeb, and Chris, the program would display Adam and Zeb. Programming Language: PYTHON TOPIC: Repetition StructuresDesign a program that takes a string as input from the user and prints its length.7. Create a script that takes a string as input from the user and prints it reversed.8. Create a Python script that asks the user to enter two strings and then prints their concatenation.9. Create a Python program that asks the user for their age and prints out a message saying whether theyare a teenager (between 13 and 19 years old) or not.10. Design a program that prompts the user to enter a positive integer and then prints whether it is a primenumber or not.11. Design a program that calculates the factorial of a given number using a loop. Ensure the input numberis a positive integer.12. Develop a program that prompts the user for the lengths of three sides of a triangle and prints whetherthe triangle is equilateral, isosceles, or scalene.
- C PROGRAM / C LANGUAGE Make a C program language. Input the number of players then input the number of goals scored for each. Print "Not Messi" if the highest goals exceed 10 and "Okay, fine, it's Messi" if it doesn't INPUT 1. Number of players 2. Goals scored by each player Constraints All of those goals are whole numbers The first line will contain a message prompt to input the number of players • The succeeding lines will contain a message to input the goals scored by each player • The last line contains appropriate resulting message EXPECTED OUTPUT A EXPECTED OUTPUT B Enter the number of players: 4 Goals score by player # 1: 7 Goals score by player #2: 2 Goals score by player #3: 5 Goals score by player #4: 1 Okay, fine it's Messi Enter the number of players: 5 Goals score by player # 1: 10 Goals score by player #2: 2 Goals score by player #3: 20 Goals score by player # 4: 1 Goals score by player # 4: 0 Not MessiIn C++ language, create a program that gets quarterly sales from a user, and calculates the total of all four quarters as well as the average, lowest, and highest quarters. Console Example The Quarterly Sales program Enter sales for Q1: 12312.57 Enter sales for Q2: 15293.21 Enter sales for Q3: 14920.95 Enter sales for Q4: 23432.21 Total: 65958.94 Average Quarter: 16489.74 Lowest Quarter: 12312.57 Highest Quarter: 23432.21 Specifications: Create the pseudocode needed to implement the solution above. Convert your pseudocode to C++ code including the following specifications: Round the average quarter to a maximum of 2 decimal digits. Use a vector to store the sales for each quarter. Use STL algorithms to process the data for the quarters.The Café Noir Coffee Shop wants some market research on its customers. When a customer places an order, a clerk asks for the customer’s zip code and age. The clerk enters that data as well as the number of items the customer orders. The program operates continuously until the clerk enters a 0 for zip code at the end of the day. When the clerk enters an invalid zip code (more than 5 digits) or an invalid age (defined as less than 10 or more than 110), the program reprompts the clerk continuously. When the clerk enters fewer than 1 or more than 12 items, the program reprompts the clerk two more times. If the clerk enters a high value on the third attempt, the program accepts the high value, but if the clerk enters a negative value onthe third attempt, an error message is displayed and the order is not counted. At the end of the program, display a count of the number of items ordered by customers from the same zip code as the coffee shop (54984), and a count from other zip codes. Also…