attachment_1 - 2023-10-24T162315.806

docx

School

University of California, Los Angeles *

*We aren’t endorsed by this school

Course

335

Subject

Computer Science

Date

Nov 24, 2024

Type

docx

Pages

1

Uploaded by shannonchen168

Report
COSC 113 In CLASS Lab Assignment 6 Methods and Classes Due: 10/4/2023 11:59pm 1. Write a value-returning method, isVowel, that returns the value true if a given character is a vowel, and otherwise returns false. Also write a program to test your method. 2. Write a program that prompts the user to input a sequence of characters and outputs the number of vowels. (Use the method isVowel written in Programming question 1.) 3. Write a program that uses the method sqrt of the class Math and outputs the square roots of the first 25 positive integers. (Your program must output each number and its square root.) 4. Write a method, reverseDigit, that takes an integer as a parameter and returns the number with its digits reversed. For example, the value of reverseDigit(12345) is 54321. Also, write a program to test your method.
Discover more documents: Sign up today!
Unlock a world of knowledge! Explore tailored content for a richer learning experience. Here's what you'll get:
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help