100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Presentation

COMP 6481 Programming and problem solving Lab 4 (GRADED A+)

Rating
-
Sold
-
Pages
2
Uploaded on
26-09-2023
Written in
2023/2024

COMP 6481 Programming and problem solving Lab 4 Lab 4 Student ID: 4A Problem Description: A word is "paired-isogram" if each letter in the given word appears exactly twice (not less, not more) in the word. For example, the word teammate is a pairedisogram since each letter in the word appears exactly twice (not less, not more), but the word dad is not since the letter "a" of the word does not appear twice. Write a Java program to determine whether a given word is a paired-isogram. Input Specification: Input to the program is given in one line which contain one word with character length not exceeding 52. Input word will contain only lowercase letters (no other characters) and will be at least one letter long. Output

Show more Read less








Whoops! We can’t load your doc right now. Try again or contact support.

Document information

Uploaded on
September 26, 2023
Number of pages
2
Written in
2023/2024
Type
Presentation
Person
Unknown

Subjects

Content preview

COMP 6481 Programming and problem solving Lab 4


Lab 4 Student ID:

4A Problem Description:
A word is "paired-isogram" if each letter in the given word appears exactly twice
(not less, not more) in the word. For example, the word teammate is a paired-
isogram since each letter in the word appears exactly twice (not less, not more),
but the word dad is not since the letter "a" of the word does not appear twice.
Write a Java program to determine whether a given word is a paired-isogram.

Input Specification:
Input to the program is given in one line which contain one word with character
length not exceeding 52. Input word will contain only lowercase letters (no other
characters) and will be at least one letter long.

Output Specification:
The output should be one line where you print all the unique alphabets in sorted
order followed by yes if the given word is a paired-isogram. You should print all
the non-repeating alphabets in a sorted order followed by no if it the word is not
a paired-isogram. All the alphabets prior to yes or no should be separated by a
single space.
Hint: ASCII values for [a-z] are 97-122 and [A-Z] are 65-90.


Sample Test Case:

SR. No Input Output
1 teammate a e m t yes
2 dad a no
3 ali a i l no
4 dood d o yes
5 immorior i m o r yes


Note: No extra spaces, tabs, blank lines, punctuations, or any other superfluous
characters are allowed. You must use only one scanner in your code.




This study source was downloaded by 100000850872992 from CourseHero.com on 09-26-2023 08:53:20 GMT -05:00


https://www.coursehero.com/file/155010646/prob-Lab4Apdf/

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
ExamsConnoisseur Self
View profile
Follow You need to be logged in order to follow users or courses
Sold
566
Member since
2 year
Number of followers
343
Documents
1497
Last sold
1 week ago

4.3

67 reviews

5
40
4
11
3
12
2
1
1
3

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions