Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need it in java!!!! NOT C++. Thank you nment 201) pdf @cSE 110: Principles of progtar https//myasucourses.asu.edu/bbcswebdaw/pid-17464436 d1-content-tid-118937759 1/courses/2018Spring T CSE110 11392 28103/CSE 1
I need it in java!!!! NOT C++. Thank you
nment 201) pdf @cSE 110: Principles of progtar https//myasucourses.asu.edu/bbcswebdaw/pid-17464436 d1-content-tid-118937759 1/courses/2018Spring T CSE110 11392 28103/CSE 1 -Autamatic Zoom CSE 110: Principles of Programming Languages Assignment 2 Overview In this assignment you will write a program that will accept a string and a search term from the user. Your program will then ask the user if they want to consider spaces and if upper and lower case should be considered as different. All of these will be accepted as strings and int values will be parsed as needed. It then tells the user if the search term is in the string or not, ignoring spaces and case as asked, and where the term was in the string Requirements Your program must do the following in order to receive full credit on this assignment 1. Accept two string values from the user The first is the original string to search through. a. b. The second is the substring we will be searching the first string for 2. Ask the user if they want to consider spaces in the two strings a. Ask the user to type a number for Yes (like 1) and a second number for No. b. This must be pulled from the Scanner as a String! 3. Ask the user if they want to consider differences between upper and lower case in the two a. Again, ask for a number b. Again, this must be taken in as a String. 4. Convert the two number inputs into their int values and store them in new int variables. a. You do not need to do any checking if they actually typed in an int or not for this F10FIF12 FS F8 5 6 7 8 5
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