1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
sergejj [24]
4 years ago
11

Modify songVerse to play "The Name Game" (OxfordDictionaries), by replacing "(Name)" with userName but without the first letter.

Ex: If userName
Computers and Technology
1 answer:
xenn [34]4 years ago
3 0

Answer:

The Java code for the problem is given below.

Your solution goes here is replaced/modified by the statement in bold font below

Explanation:

import java.util.Scanner;

public class NameSong {

   public static void main(String[] args) {

       Scanner scnr = new Scanner(System.in);

       String userName;

       String songVerse;

       userName = scnr.nextLine();

       userName = userName.substring(1);

       songVerse = scnr.nextLine();

      songVerse = songVerse.replace("(Name)", userName);

       System.out.println(songVerse);

   }

}

You might be interested in
What features could be improved in microsoft word?
Korolek [52]

Word (and the rest of the Office suit) suffers from feature creep and legacy cruft. This is a difficult problem because with so many users, removing features is impossible without upsetting a lot of people.

One option would be to split Word into two products: One, called Word, would be a completely new product with a clear focus on the experience of writing and formatting text. This would require ruthlessly cutting out any parts that don't support this goal, including some backwards compatibility.

The other product, called Word Classic, would maintain all the cruft that some people feel they might need. Since the experience would be so much worse, and the new Word would be more prominently displayed in the Office suit, this would help Word users gradually transition to the new product.

7 0
3 years ago
Different units of CPU ?
deff fn [24]
The two typical components of a CPU include the following:<span>--The arithmetic logic unit (ALU), which performs arithmetic and logical operations. --<span>The control unit (CU), which extracts instructions from memory and decodes and executes them, calling on the ALU when necessary.</span></span>
3 0
3 years ago
Si la velocidad del sonido en el aire es de 330m/s , calcula la longitud De onda en metros, de una nota musical de frecuencia 55
omeli [17]

Answer: 3/5 or 0.6m

Explanation:

frecuencia (f) = 550Hz

velocidad del sonido en el aire (v) = 330m/s

velocidad =frecuencia × longitud De onda(λ)

v = fλ

330 = 550 × λ

λ = 330 / 550

λ = 3/5

λ = 0.6m

8 0
3 years ago
g Write a user-defined MATLAB function for the following math function: y ( x )=(−.2 x 3 +7 x 2 )e −.3x The input to the functio
kolezko [41]

Answer:

Go to explaination for the step by step answer.

Explanation:

a)Code

function[y]=operation(x) % this function takes x as input and returns y as output

y=(-0.2*x^3+7*x^2)*exp(-0.3*x)

end

% call this function in command widow by typing operation(value of x) like shown in figure in the first attachment.

b. write a code of above function in one script window and save the code with same name as name of function that is name of script should be saved as operation.Now copy paste the below code in new script window and run the code

clc

clear all

x=-2:.1:6

n=length(x)

for i=1:1:n

a=x(i)

y(i)=operation(a)

end

plot(y,x)

xlabel('X')

ylabel('Y')

Please kindly check attachment for pictorial answers that supports the code.

4 0
3 years ago
Assume your using a three button mouse to access shortcut menus you would
sergeinik [125]
Normally you would click the right hand/secondary mouse button, but you may configure any of the buttons to work within the Keyboard and Mouse section of the System Preferences, that can lead u to right clicking and it brings up a menu of the things that your possibly able to do .


 hOpe thiss theory hass helped you anyy :)
7 0
4 years ago
Other questions:
  • Consider the following scenario and prescribe a solution. Situation: Tenisha is moving to Ohio to attend college. It is very hum
    15·1 answer
  • If you need to add more data between column C and column D, you should _____.
    7·1 answer
  • Writing a program in a language such as c or java is known as _____ the program.
    10·1 answer
  • Ed has just finished typing a long financial report. Before he sends this report to shareholders, Ed should _____.
    9·2 answers
  • Discuss why it is common for XML to be used in interchanging data over the Internet. What are the advantages of using XML in dat
    7·1 answer
  • A ___________ assigns levels of risk to various threats to network security by comparing the nature of the threats to the contro
    9·1 answer
  • 1. Define what grasslands are ?
    14·2 answers
  • I need help with excel
    7·1 answer
  • What are the chances of a baby zombie to spawn in full golden armor in MC? ​
    15·2 answers
  • Designing a medium to large network requires a combination of technologies and there isn't one "right way." Think about the tech
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!