04/26/21
Caturday Check. Read a string (will not have spaces).
Read a string (will not have spaces). Print "true" if the word "cat" appears starting at the first or second letter. Otherwise print false.Samples:
Input: catch Output: true
Input: scatter ...
more
04/26/21
First Middle Last Letter. Read in a string from cin (it will not have any whitespace).
Read in a string from cin (it will not have any whitespace). Print out the first character, middle character (if string is an even length, print the second of the two middle letters), and last...
more
04/26/21
All To Upper. Read a string from cin into word and modify it so that it has all uppercase letters.
Read a string from cin into word and modify it so that it has all uppercase letters.Samples:
Input: hello Output: HELLO
Input: h3Llo Output: H3LLO
Hints:
You can only change the code in the...
more
String Compactor. Write code that will read in a string and then print out every other character of the string.
Write code that will read in a string and then print out every other character of the string. You should use getline to read in the string... it may have spaces.Samples:
Input of "Hello" should...
more
04/26/21
Count E's. Read in a string, print out the number of e's in it.
Read in a string, print out the number of e's in it. Note that the string may have spaces in it. A call to getline looks like getline(cin, myVariable) where myVariable is a string variable that...
more
04/25/21
Object-Oriented Programming
Create the java source code that will convert INCHES to FEET.Program RequirementThe user will be able to input value (inches)Display converted value (FEET). 12 Inches = 1 FeetImplement the code...
more
04/25/21
C Programming Language. Please write the two programs in C.
C Programming Language. Please write the two programs in C. DigitsWrite this program in a file named digits.c.As input, you will define a quad word integer variable named input in the initialized...
more
a program that reads names from a file However, the program does not work as expected. It gives an ArrayOutOfBounds exception. Correct this without changing the size of the array.
Here is a program that reads names from a file Friends-1.txt download and stores them in an array called friends.It then asks the user for a name and searches the array for the friend. If it...
more
Explain ways Scanner class create objects that can input data from the three types of input sources. Give 3 examples of the use of Scanner objects. Describe 1 Scanner method
Explain the ways in which the Scanner class can be used to create objects that can input data from the three types of input sources.Give 3 examples of the use of Scanner objects. Describe 1 Scanner...
more
04/25/21
Modify the above program so that it reads from the file FriendsPhones.txt, download the friends name into the friends array and corresponding phone number into an array called phoneNumbers. Upd
Modify the above program so that it reads from the file FriendsPhones.txt, download the friends name into the friends array and corresponding phone number into an array called phoneNumbers. Update...
more
Method called searchGenius inputs information from user& tries to find a genius student.. Not work as expected. debug the method by 1. What line does error occur? 2. what is the error & why 3. correct
Here is a method called searchGenius inputs information from the user and tries to find a genius student. A "genius" student is considered to be one who is between 18 and 21 years of age, has...
more
For each of the following while loops, how many times will the loop execute its body? Remember that "zero," "infinity," and "unknown" are legal answers.
For each of the following while loops, how many times will the loop execute its body? Remember that "zero," "infinity," and "unknown" are legal answers.a)
int x = 1;
while (x < 100) {
...
more
04/25/21
What is Fencepost algorithm? Use it to write a method called countLengths that takes in a String array of 7 elements as parameter& prints the number of characters in each string separated by ",".
Explain "Fencepost algorithm" Use this technique to write a method called countLengths that takes in a String array of 7 elements as parameter& prints the number ofcharacters in each string...
more
Find approximate error
at a distance of 50 meter from foot of tower the elevation of its top is 30 degree if the possible error in measuring the distance and elevation are 2cm and 0.05 degrees find approximate error in...
more
How Can I Add a Receipt?
Hello I'm working on an assignment and I want to figure out how I would be able to save which items the user chooses and how many times he chooses that item so I can form a receipt. This is what I...
more
04/24/21
Time Zone Misunderstanding
Hi I suggested to the tutor for us to meet at 10am Saturday(today) for our session. When I logged into the system I saw that I was scheduled for 9am, not 10. Also, the tutor suggested moving the...
more
04/24/21
Coding Help for a game project.
I need help coding (java) for the items the player will use for a game project; but I don't know how to go about it, here is a starter code given to help me out and I'm confused on how to move...
more
04/23/21
natural merge sort with linked list in java
I am looking for sample code in java for a natural merge sort using linked lists. Doing the natural merge sort iteratively not recursively. Can someone help with this or point me to a resource...
more
04/23/21
Write a quadratic equation that passes through a vertex of (−3,2) and the point (−1,−10)
Write a quadratic equation that passes through a vertex of (−3,2) and the point (−1,−10)please answer so i can check my answer
04/22/21
Find a third degree polynomial P(x)
Find a third degree polynomial P(x)Such that...P(1)=7P'(2)=-10P''(5)=-30and P'''(3)=-12
04/22/21
Please help me with these questions.
nt[, ] arr = new int[4, 5]; int a = 0; foreach (int i in arr) { Console.Write(i + " "); } Console.WriteLine(" "); for (int i = 0; i < arr.GetLength(0); i++) { for (int j = 0; j...
more
04/22/21
Declare and initialize a 3 by 2 array that contains integer values. You decide what the values are.
Declare and initialize a 3 by 2 array that contains integer values. You decide what the values are.
04/22/21
A spinner has four colors: red, yellow, green, and purple.
A spinner has four colors: red, yellow, green, and purple. The experimental probability of spinning a red is 0.2, of spinning a yellow is 0.3, and of spinning a green is 0.4. If the spinner was...
more
Still looking for help? Get the right answer, fast.
Ask a question for free
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Find an Online Tutor Now
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.