Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Modify songVerse to play The Name Game ( OxfordDictionaries.com ) , by replacing ( Name ) with userName but without the first letter.
Modify songVerse to play "The Name Game" OxfordDictionaries.com by replacing Name with userName but without the first letter. Ex: If userName "Kaitlin" and songVerse "Bananafana fofName the program prints: Bananafana fofaitlin! Ex: If userName "Kaitlin" and songVerse "Fee fi momName the program prints: Fee fi momaitlin Note: You may assume songVerse will always contain the substring Name Learn how our autograder works 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; Remove first character songVerse scnr nextline; Modify songverse to replace Name with userName without first character I your solution goes here system.out.printlnsongverse;
Modify songVerse to play "The Name Game"
OxfordDictionaries.com by replacing Name with userName but without the first letter.
Ex: If userName "Kaitlin" and songVerse "Bananafana fofName the program prints:
Bananafana fofaitlin!
Ex: If userName "Kaitlin" and songVerse "Fee fi momName the program prints:
Fee fi momaitlin
Note: You may assume songVerse will always contain the substring Name
Learn how our autograder works
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; Remove first character
songVerse scnr nextline;
Modify songverse to replace Name with userName without first character
I your solution goes here
system.out.printlnsongverse;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started