Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This needs to be done with java. Programming Problems 1. PROBLEM 1 Create a class named PS3Logic. Within the main method, prompt the user to

image text in transcribed

This needs to be done with java.

image text in transcribed

image text in transcribed

Programming Problems 1. PROBLEM 1 Create a class named PS3Logic. Within the main method, prompt the user to enter a string. Your goal is to build string with every third vowel in the input. If there are any characters that are not letters, print out "Invalid" and perform no other pro- cessing. Otherwise, build a string of every third vowel (starting with the first one found). For example, the input "aeiouaeiou should produce the output a + 0 + c + Print euch vowel that qualifies delimited by a "4" sign. Do not use any string functions other than charAt() and lengtho. e so 2 Insert PrtScr F12 F10 0 n ddr New Navigate Code Analyse Beacter Build Run Jools VCS Window Help Log e com a company Logic - Progejava CAUtes corde derecho package com.co be es and Consoles import java.util.Scanner import java.util.ArrayList; public class PS3Logic public static void main(String[] args) { Scanner sc new Scanner(System.in) String input: System.out.println("Enter string here"); input-s extLine(); Letters(input); 16 public static void letters(String input) { for(int i0; Run ES TODO cessfully in 5 s 71 ms (31 minutes ago) O e os odeAnalyze Befactor Build Run Jools VCS Window Help PSLogic (CAUsers\corde des Projects\PS3Logic) company PS3Logic 3 = - 41 PS3Logic.java deaProjects PS3Logic are comi.companyMain.jave - Intel IDEA 23 35 36 37 public static void valves (String[] sep) { ArrayList alpha- new ArrayList 0) (int i = 0; i

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

More Books

Students also viewed these Databases questions