Repository navigation
Expand file tree
/
Copy pathMelodramaticGenerator.java
More file actions
45 lines (37 loc) · 2.9 KB
/
Copy pathMelodramaticGenerator.java
File metadata and controls
45 lines (37 loc) · 2.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import java.util.Scanner;
public class MelodramaticGenerator {
public static void main(String[] args) {
try (Scanner scanner = new Scanner(System.in)) {
System.out.println("Welcome to the Melodramatic Story/Poem Generator!");
System.out.print("Enter a noun (e.g., 'moon', 'heart', 'storm'): ");
String noun = scanner.nextLine();
System.out.print("Enter an adjective (e.g., 'forlorn', 'fiery', 'enchanted'): ");
String adjective = scanner.nextLine();
System.out.print("Enter a verb (e.g., 'whispered', 'swept', 'yearned'): ");
String verb = scanner.nextLine();
System.out.print("Enter a place (e.g., 'castle', 'abyss', 'enchanted forest'): ");
String place = scanner.nextLine();
System.out.print("Enter a name (e.g., 'Lady Seraphina', 'Sir Percival', 'Count Drakul'): ");
String name = scanner.nextLine();
System.out.println("\n** Melodramatic Tale Unfolds **");
System.out.println("In the mystical land of " + place + ", where " + adjective + " " + noun + "s " + verb + " under the moonlight,");
System.out.println(name + ", the brooding " + adjective + " knight, wandered with a heavy heart.");
System.out.println("His eyes, like twin pools of sorrow, reflected the " + adjective + " stars above.");
System.out.println("The wind " + verb + " through the ancient " + noun + "s, carrying secrets whispered by long-lost lovers.");
System.out.println("And there, amidst the crumbling ruins, he found it: the fabled " + noun + " of destiny.");
System.out.println("Its " + adjective + " glow bathed him in ethereal light, awakening memories of lost kingdoms and forbidden love.");
System.out.println("\n** Melodramatic Poem Blooms **");
System.out.println("O " + noun + ", " + noun + ", how your " + adjective + " essence enchants my soul!");
System.out.println("Beneath the " + adjective + " moon, we danced, our hearts aflame,");
System.out.println("As if the very stars conspired to witness our " + verb + "ing passion.");
System.out.println("But alas! Fate, that cruel mistress, tore us apart,");
System.out.println("Leaving me to wander these " + adjective + " moors, haunted by your ghostly whispers.");
System.out.println("My tears, like " + noun + "drops, fall upon the " + adjective + " earth,");
System.out.println("And I, the " + adjective + " fool, yearn for your return, my " + noun + " of destiny.");
System.out.println("\n** The End (Or Is It?) **");
System.out.println("Press 'Enter' to exit this melodramatic realm...");
scanner.nextLine();
System.out.println("Fare thee well, dear traveler. May your adventures be as " + adjective + " as the stars themselves!");
}
}
}