Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Presentatie

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

Beoordeling
-
Verkocht
-
Pagina's
2
Geüpload op
26-09-2023
Geschreven 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

Meer zien Lees minder
Instelling
Vak

Voorbeeld van de inhoud

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/

Geschreven voor

Instelling
Studie
Onbekend

Documentinformatie

Geüpload op
26 september 2023
Aantal pagina's
2
Geschreven in
2023/2024
Type
PRESENTATIE
Persoon
Onbekend

Onderwerpen

$8.49
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
ExamsConnoisseur Self
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
580
Lid sinds
3 jaar
Aantal volgers
344
Documenten
1497
Laatst verkocht
2 weken geleden

4.2

68 beoordelingen

5
40
4
11
3
13
2
1
1
3

Populaire documenten

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Veelgestelde vragen