Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

.java please Project 5: Must compile and produce results for any points! (Each of these are UP TO # points) To earn any points, the

.java please image text in transcribed
image text in transcribed
image text in transcribed
Project 5: Must compile and produce results for any points! (Each of these are "UP TO" # points) To earn any points, the program must compile and it must use the loops as required to repeat through code. Otherwise, the score is zero. (First point off is "free") Comments at top: (up to... 2) 1st line includes Project number and program name (.5) SHORT Program description in a sentence or two (.5) Input, Processing, and Output Descriptions ( up to.5) @name (name) AND @version (date) (up to.5) Breaks program down: (up to... 4) Includes a comment for each of these sections of code WITH blank lines between each part for readability! (up to.5) Includes a declaration section for ALL variables declarations (.5) The program uses for loops as directed (Option 1 nests a for loop within a while or do while loop, Options 2 uses a for looping and a switch, Option 3 and 4 use a for loop to traverse the Strings). (3) Output matches sample output (up to... 8) including blank lines (2) spacing as shown between a prompt and input (1) spacing as shown in output (including what goes on the same line) (2) computations are correct (3) Includes an unaltered copy of a sample output below closing brace in a block comment (4) Removes leading and trailing spaces from entry by the user (1) Changes the Strings to all lower case or all upper case before comparing the letters. (1) Extra Credit: See Extra Credit below Program Expectations Program expectations: 1. Start with the "top standard comment", especially the Input, Processing, and Output to determine your algorithm / plan of attack BEFORE you start your program! 2. THEN, start with your comments in the main method! They can be your "skeleton". Break down your programs and determine your STEPS BEFORE YOU CODE! 3. THEN, write the program, filling in the missing code between the STEP comments. Remember to leave blank lines between each section for readability. 4. Double-check your program to see if it meets all of the requirements 5. Upload the java file to Canvas. Also include if you are done with the project and it is ready for grading or that you are not done and will finish the project outside of class (by 10:50 AM on the day the class meets next.) Option 3:_(Count vowels and consonants) Assume that the letters A, E, I, O, and U are vowels. Write a program that will prompt the user to enter a string. The string that is entered by the user is checked by using a for loop to loop through the letters. As a result, the program displays the number of vowels and consonants in the string. (Note, spaces are not counted as either consonants or vowels! AND, as a hint, you only need to count the vowels and spaces!) Be sure to remove white space from before and after the String as it is entered by the user AND change both to either all upper case or all lower case before checking the letters or do a comparison by ignoring the case! Program: String Fun Programmer: Your name Before we begin, please enter your name: XOUBEinstName YOURFIRSTNAME: Enter a string: Programming is fun The length of the string is: 18 The number of vowels is: 5 The number of consonants: is 11 I YOURFIRSTNAME, Thank you for using YourLastName's String Fun Program

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Expert Oracle9i Database Administration

Authors: Sam R. Alapati

1st Edition

1590590228, 978-1590590225

More Books

Students also viewed these Databases questions

Question

13-4 What are alternative methods for building information systems?

Answered: 1 week ago