Jump to content

4 posts in this topic

Recommended Posts

Posted

 

//This program allows the user to search through files from the Social //Security Administraction which contain data on various names. //If found, it then graphs the popularity of each name over time. //Constant values can be used to alter the program's starting year //and the display of the graph itself. import java.util.*; import java.awt.*; import java.io.*; public class BabyNames { public static final int STARTING_DECADE = 1890; //will be initial decade public static final int WIDTH = 60; //width of decade bars on graph public static final int HEIGHT = 30; //height of grey rectangles on graph //This method assigns the return of an indtroductory method to a String and //then passes that string into another method. public static void main(String[] args) throws FileNotFoundException { String name = introName(); conditional(name); } //prints a description of the program, then invites the user to input a name. //Returns the inputted name to main. public static String introName() { System.out.println("This program allows you to search through the"); System.out.println("data from the Social Security Administration"); System.out.println("to see how popular a particular name has been"); System.out.println("since " + STARTING_DECADE + "."); System.out.println(); System.out.print("Name: "); Scanner console = new Scanner(System.in); String name = (console.next()); return name; } //This method evaluates whether or not the inputted name is valid by passing it into //a search method to scan the text files. If the name is valid, this method will call the //graphics methods to construct the graph. If not valid, the method will give a "not found" //reply. The parameter passed is the inputted name. public static void conditional(String name) throws FileNotFoundException { Scanner names = new Scanner(new File("names.txt")); String stats = search(names, name); if (stats.length() > 0) { Scanner meanings = new Scanner(new File("meanings.txt")); String meaning = search(meanings, name); if (meaning.length() > 0) { DrawingPanel graph = new DrawingPanel(780, 560); Graphics g = graph.getGraphics(); graphTemplate(g); graphMeaning(g, meaning); graphDates(g, stats); } } else { System.out.print("\"" + name + "\"" + " not found."); } } //used as a method to search text files for the inputted name. Accepts a Scanner assigned //to a certain .text document, and the user inputted name. public static String search(Scanner namesList, String name) throws FileNotFoundException { while(namesList.hasNextLine()) { String nameLC = name.toLowerCase(); String line = namesList.nextLine(); String lineLC = line.toLowerCase(); if(lineLC.indexOf(nameLC) == 0 && lineLC.charAt(nameLC.length()) == ' ') { System.out.println(line); return line; } } return ""; } //prints the fixed background graphics for the graph. Accepts graphics as parameter. public static void graphTemplate(Graphics g) { g.setColor(Color.LIGHT_GRAY); g.fillRect(0, 0, 780, 0 + HEIGHT); g.fillRect(0, 560 - HEIGHT, 780, 560); g.setColor(Color.BLACK); g.drawLine(0, HEIGHT, 780, HEIGHT); g.drawLine(0, 560 - HEIGHT, 780, 560 - HEIGHT); g.drawRect(0, 0, 779, 559); } //prints the meaning of the name at the header of the graph (top grey rectangle). Accepts //graphics and the string for the meaning of the name as parameters public static void graphMeaning(Graphics g, String meaning) throws FileNotFoundException { g.setColor(Color.BLACK); g.drawString(" " + meaning, 0, 16); } //prints the dates on the graph, their corresponding population values, //and fills in the bars on the graph, the color corresponding to each gender. //Accepts graphics and the string of dates as parameters. public static void graphDates(Graphics g, String stats) throws FileNotFoundException { String gender = stats.substring((stats.indexOf(" ") + 1), (stats.indexOf(" ") + 3)); String dates = stats.substring(stats.indexOf(" ") + 3); Scanner dates2 = new Scanner(dates); int yearCount = 0; while(dates2.hasNextInt()) { int n = dates2.nextInt(); g.setColor(Color.BLACK); g.drawString(" " + (STARTING_DECADE + yearCount * 10), yearCount * WIDTH, 552); if (n == 0) { g.drawString(" " + 0, yearCount * WIDTH, 560 - HEIGHT); } else { g.drawString(" " + n, yearCount * WIDTH, ((n % 2) + (n / 2) + HEIGHT)); g.setColor(Color.PINK); if (gender.charAt(0) == 'm'){ g.setColor(Color.BLUE); } g.fillRect(yearCount * WIDTH, ((n % 2) + (n / 2) + HEIGHT), WIDTH / 2, 560 - ((n % 2) + (n / 2) + HEIGHT) - HEIGHT); } yearCount++; } } }

 

Posted (edited)

what does it do?

It says what it does in the code:

//This program allows the user to search through files from the Social //Security Administraction which contain data on various names. //If found, it then graphs the popularity of each name over time. //Constant values can be used to alter the program's starting year //and the display of the graph itself. 
Updated by Goggwell

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Our picks

    • Travel Town - Merge Adventure v2.12.1150 Jailed Cheats +1
      Modded/Hacked App: Travel Town - Merge Adventure By Magmatic Games Ltd
      Bundle ID: io.randomco.travel
      iTunes Store Link: https://apps.apple.com/us/app/travel-town-merge-adventure/id1521236603?uo=4


      Hack Features:
      - Infinite Currencies


      iOS Hack Download Link: https://iosgods.com/topic/148953-travel-town-merge-adventure-v212287-jailed-cheats-1/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 784 replies
    • Football Life Simulator v1.4.0 +2 Cheats
      Modded/Hacked App: Football Life Simulator By LUDU ARTS TEKNOLOJI ANONIM SIRKETI
      Bundle ID: com.ludu.fls
      App Store Link: https://apps.apple.com/us/app/football-life-simulator/id6670528564?uo=4

       

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - Unlimited Currencies → Spend/Gain
      - Free iAP

       

      ⬇️ iOS Hack Download Link


      Hidden Content

      Download Hack







       

      📖 iOS Installation Instructions

      STEP 1: Download the .deb hack file from the link above. Use Safari, Google Chrome or other iOS browsers to download.
      STEP 2: Once the file has downloaded, tap on it and then you will be prompted on whether you want to open the deb with iGameGod or copy it to Filza.
      STEP 3: If needed, tap on the downloaded file again, then select ‘Normal Install’ from the options on your screen.
      STEP 4: Let iGameGod/Filza finish the cheat installation. If it doesn’t install successfully, see the note below.
      STEP 5: Open the game, log in to your iOSGods account when asked, then toggle on the features you want and enjoy!

       

      NOTE: If you have any questions or problems, read our Jailbreak iOS Hack Troubleshooting & Frequently Asked Questions & Answers topic. If you still haven't found a solution, post your issue below and we'll do our best to help! If the hack does work for you, please post your feedback below and help out other fellow members that are encountering issues.

       

      🙌 Credits

      - AlyssaX64

       

      📷 Cheat Video/Screenshots

      N/A

       

      More iOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & Hacks or the iOSGods App for a variety of modded games and apps for non-jailbroken iOS devices.

      Modded Android APKs
      Need modded apps or games for Android? Check out the latest custom APK mods, cheats & more in our Android Section.
        • Like
      • 1 reply
    • Football Life Simulator v1.4.0 +2 Jailed Cheats
      Modded/Hacked App: Football Life Simulator By LUDU ARTS TEKNOLOJI ANONIM SIRKETI
      Bundle ID: com.ludu.fls
      App Store Link: https://apps.apple.com/us/app/football-life-simulator/id6670528564?uo=4

       

       

      📌 Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      🤩 Hack Features

      - Unlimited Currencies → Spend/Gain
      - Free iAP

       

      ⬇️ iOS Hack Download IPA Link


      Hidden Content

      Download via the iOSGods App







       

      📖 PC Installation Instructions

      STEP 1: Download the pre-hacked .IPA file from the link above to your computer. To download from the iOSGods App, see our iOSGods App IPA Download Tutorial which includes a video example.
      STEP 2: Download Sideloadly and install it on your Windows or Mac.
      STEP 3: Open Sideloadly on your computer, connect your iOS device, and wait until your device name appears in Sideloadly.
      STEP 4: Once your iDevice is recognized, drag the modded .IPA file you downloaded and drop it into the Sideloadly application.
      STEP 5: Enter your Apple Account email, then press “Start.” You’ll then be asked to enter your password. Go ahead and provide the required information.
      STEP 6: Wait for Sideloadly to finish sideloading/installing the hacked IPA. If there are issues during installation, please read the note below.
      STEP 7: Once the installation is complete and you see the app on your Home Screen, you will need to go to Settings -> General -> Profiles / VPN & Device Management. Once there, tap on the email you entered from step 6, and then tap on 'Trust [email protected]'.
      STEP 8: Now go to your Home Screen and open the newly installed app and everything should work fine. You may need to follow further per app instructions inside the hack's popup in-game.

      NOTE: iOS/iPadOS 16 and later, you must enable Developer Mode. For free Apple Developer accounts, you will need to repeat this process every 7 days. If you have any questions or problems, read our Sideloadly FAQ section of the topic and if you don't find a solution, please post your issue below and we'll do our best to help! If the hack does work for you, post your feedback below and help out other fellow members that are encountering issues.

       

      🙌 Credits

      - AlyssaX64

       

      📷 Cheat Video/Screenshots

      N/A
        • Haha
        • Winner
        • Like
      • 2 replies
    • Swordy Quest: An RPG Adventure v5.22.1 [ +18 Jailed ] Currency Max
      Modded/Hacked App: Swordy Quest: An RPG Adventure By Seligman Ventures Global Limited
      Bundle ID: com.SeligmanVenturesGlobal.fwcStrategy
      App Store Link: https://apps.apple.com/us/app/swordy-quest-an-rpg-adventure/id1446641513?uo=4
       

      🤩 Hack Features

      - Golden Gems

      - Silver Coins

      - Crystals Achievement

      - Golden Event Ticket

      - Clan Award +2

      - Food+++

      - Potions +3

      - Home Items+++

      - Resources+++

      - Armour+++

      - Clothing+++

      - Utilites+++

      - Magic+++

      - Mounts+++

      - Commodities+++

      - HP [ Need Slpeep Then Work ]

      - EXP [ Faster LvL UP ]

      - LvL
        • Agree
        • Thanks
        • Like
      • 3 replies
    • Swordy Quest: An RPG Adventure v5.22.1 [ +18 Cheats ] Currency Max
      Modded/Hacked App: Swordy Quest: An RPG Adventure By Seligman Ventures Global Limited
      Bundle ID: com.SeligmanVenturesGlobal.fwcStrategy
      App Store Link: https://apps.apple.com/us/app/swordy-quest-an-rpg-adventure/id1446641513?uo=4


      🤩 Hack Features

      - Golden Gems

      - Silver Coins

      - Crystals Achievement

      - Golden Event Ticket

      - Clan Award +2

      - Food+++

      - Potions +3

      - Home Items+++

      - Resources+++

      - Armour+++

      - Clothing+++

      - Utilites+++

      - Magic+++

      - Mounts+++

      - Commodities+++

      - HP [ Need Slpeep Then Work ]

      - EXP [ Faster LvL UP ]

      - LvL
        • Thanks
      • 2 replies
    • Block Clash!! v1.0.7 [+2 Jailed Cheats]
      Modded/Hacked App: Block Clash!! By treeplla Inc.
      Bundle ID: com.tree.hybrid.blockclash
      App Store Link: https://apps.apple.com/us/app/block-clash/id6745582734?uo=4

       


      🤩 Hack Features

      - Never Die
      - One Hit Kill
        • Winner
      • 8 replies
    • Block Clash!! v1.0.7 [+2 Cheats]
      Modded/Hacked App: Block Clash!! By treeplla Inc.
      Bundle ID: com.tree.hybrid.blockclash
      App Store Link: https://apps.apple.com/us/app/block-clash/id6745582734?uo=4


      🤩 Hack Features

      - Never Die
      - One Hit Kill
       
        • Agree
        • Winner
        • Like
      • 6 replies
    • Axe Clicker v1.1.205 [+2 Jailed Cheats]
      Modded/Hacked App: Axe Clicker By EDENAP d.o.o.
      Bundle ID: si.a4c.dwarfy
      App Store Link: https://apps.apple.com/us/app/axe-clicker/id1116248844?uo=4



      🤩 Hack Features

      - One Hit Kill
      - Add Currency
        • Informative
        • Like
      • 3 replies
    • Axe Clicker v1.1.205 [+2 Cheats]
      Modded/Hacked App: Axe Clicker By EDENAP d.o.o.
      Bundle ID: si.a4c.dwarfy
      App Store Link: https://apps.apple.com/us/app/axe-clicker/id1116248844?uo=4



      🤩 Hack Features

      - One Hit Kill
      - Add Currency
        • Like
      • 2 replies
    • (Legen Clover Japan) れじぇくろ! ~レジェンド・クローバー~ v3.19.1 +1 Cheat
      Modded/Hacked App: れじぇくろ! ~レジェンド・クローバー~ By EXNOA LLC
      Bundle ID: com.dmm.games.legeclo
      iTunes Store Link: https://apps.apple.com/jp/app/%E3%82%8C%E3%81%98%E3%81%87%E3%81%8F%E3%82%8D-%E3%83%AC%E3%82%B8%E3%82%A7%E3%83%B3%E3%83%89-%E3%82%AF%E3%83%AD%E3%83%BC%E3%83%90%E3%83%BC/id1536354906?uo=4


      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Sideloadly / Cydia Impactor or alternatives.
      - A Computer Running Windows/macOS/Linux with iTunes installed.


      Hack Features:
      - Instant Win


      Jailbreak required hack(s): 


      iOS Hack Download IPA Link:

      Hidden Content

      Download via the iOSGods App








      PC Installation Instructions:
      STEP 1: If necessary, uninstall the app if you have it installed on your iDevice. Some hacked IPAs will install as a duplicate app. Make sure to back it up so you don't lose your progress.
      STEP 2: Download the pre-hacked .IPA file from the link above to your computer. To download from the iOSGods App, see this tutorial topic.
      STEP 3: Download Sideloadly and install it on your PC.
      STEP 4: Open/Run Sideloadly on your computer, connect your iOS Device, and wait until your device name shows up.
      STEP 5: Once your iDevice appears, drag the modded .IPA file you downloaded and drop it inside the Sideloadly application.
      STEP 6: You will now have to enter your iTunes/Apple ID email login, press "Start" & then you will be asked to enter your password. Go ahead and enter the required information.
      STEP 7: Wait for Sideloadly to finish sideloading/installing the hacked IPA. If there are issues during installation, please read the note below.
      STEP 8: Once the installation is complete and you see the app on your Home Screen, you will need to go to Settings -> General -> Profiles/VPN & Device Management. Once there, tap on the email you entered from step 6, and then tap on 'Trust [email protected]'.
      STEP 9: Now go to your Home Screen and open the newly installed app and everything should work fine. You may need to follow further per app instructions inside the hack's popup in-game.

      NOTE: iOS/iPadOS 16 and later, you must enable Developer Mode. For free Apple Developer accounts, you will need to repeat this process every 7 days. Jailbroken iDevices can also use Sideloadly/Filza/IPA Installer to normally install the IPA with AppSync. If you have any questions or problems, read our Sideloadly FAQ section of the topic and if you don't find a solution, please post your issue down below and we'll do our best to help! If the hack does work for you, post your feedback below and help out other fellow members that are encountering issues.


      Credits:
      - AlyssaX64


      Cheat Video/Screenshots:

      N/A
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 53 replies
    • (Legend Clover Japan) れじぇくろ! ~レジェンド・クローバー~ v3.19.1 +1 Cheat
      Modded/Hacked App: れじぇくろ! ~レジェンド・クローバー~ By EXNOA LLC
      Bundle ID: com.dmm.games.legeclo
      iTunes Store Link: https://apps.apple.com/jp/app/%E3%82%8C%E3%81%98%E3%81%87%E3%81%8F%E3%82%8D-%E3%83%AC%E3%82%B8%E3%82%A7%E3%83%B3%E3%83%89-%E3%82%AF%E3%83%AD%E3%83%BC%E3%83%90%E3%83%BC/id1536354906?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing or any other file managers for iOS.
      - Cydia Substrate, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).


      Hack Features:
      - Instant Win


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/


      iOS Hack Download Link:

      Hidden Content
      Download Hack







      Installation Instructions:
      STEP 1: Download the .deb Cydia hack file from the link above. Use Safari/Google Chrome or other iOS browsers to download.
      STEP 2: Once the file has downloaded, tap on it and then you will be prompted on whether you want to open the deb with iGameGod or copy it to Filza.
      STEP 3: If necessary, tap on the downloaded file, and then, you will need to press 'Install' from the options on your screen.
      STEP 4: Let iGameGod/Filza finish the cheat installation. Make sure it successfully installs, otherwise see the note below.
      STEP 5: If the hack is a Mod Menu — which is usually the case nowadays — the cheat features can be toggled in-game. Some cheats have options that can be enabled from your iDevice settings.
      STEP 6: Turn on the features you want and play the game. You may need to follow further instructions inside the hack's popup in-game.

       

      NOTE: If you have any questions or problems, read our Troubleshooting topic & Frequently Asked Questions & Answers topic. If you still haven't found a solution, post your issue down below and we'll do our best to help! If the hack does work for you, please post your feedback below and help out other fellow members that are encountering issues.


      Credits:
      - AlyssaX64


      Cheat Video/Screenshots:

      N/A
        • Thanks
        • Winner
        • Like
      • 74 replies
    • (Trinity Guardians) 트리니티가디언즈 v0.5.0 + 3 Cheats
      Modded/Hacked App: 트리니티가디언즈 By Sigma Studio INC
      Bundle ID: com.SigmaStudio.TrinityGuardians
      iTunes Store Link: https://apps.apple.com/kr/app/%ED%8A%B8%EB%A6%AC%EB%8B%88%ED%8B%B0%EA%B0%80%EB%94%94%EC%96%B8%EC%A6%88/id6670464765?uo=4

       

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - Freeze Currencies
      - Unlimited Currencies → Spend/Gain
      - No ADS

       

      ⬇️ iOS Hack Download Link


      Hidden Content

      Download Hack







       

      📖 iOS Installation Instructions

      STEP 1: Download the .deb hack file from the link above. Use Safari, Google Chrome or other iOS browsers to download.
      STEP 2: Once the file has downloaded, tap on it and then you will be prompted on whether you want to open the deb with iGameGod or copy it to Filza.
      STEP 3: If needed, tap on the downloaded file again, then select ‘Normal Install’ from the options on your screen.
      STEP 4: Let iGameGod/Filza finish the cheat installation. If it doesn’t install successfully, see the note below.
      STEP 5: Open the game, log in to your iOSGods account when asked, then toggle on the features you want and enjoy!

       

      NOTE: If you have any questions or problems, read our Jailbreak iOS Hack Troubleshooting & Frequently Asked Questions & Answers topic. If you still haven't found a solution, post your issue below and we'll do our best to help! If the hack does work for you, please post your feedback below and help out other fellow members that are encountering issues.

       

      🙌 Credits

      - AlyssaX64

       

      📷 Cheat Video/Screenshots

      N/A

       

      More iOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & Hacks or the iOSGods App for a variety of modded games and apps for non-jailbroken iOS devices.

      Modded Android APKs
      Need modded apps or games for Android? Check out the latest custom APK mods, cheats & more in our Android Section.
        • Agree
        • Like
      • 46 replies
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines