{"id":18869363,"url":"https://github.com/codersales/notes-on-initial-programming","last_synced_at":"2026-01-27T01:05:08.179Z","repository":{"id":200510228,"uuid":"705682778","full_name":"CoderSales/Notes-on-Initial-Programming","owner":"CoderSales","description":"Notes-on-Initial-Programming","archived":false,"fork":false,"pushed_at":"2023-10-16T14:42:22.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-30T16:52:45.056Z","etag":null,"topics":["2023","2023-10","2023-oct","2023-october","initial-programming","msc","msc-y1","msc-y1-s1","msc-y1-s1-w6","notes"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CoderSales.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-16T13:46:41.000Z","updated_at":"2023-10-16T21:22:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"24d73303-77f8-4f69-8557-3d2959663b15","html_url":"https://github.com/CoderSales/Notes-on-Initial-Programming","commit_stats":null,"previous_names":["codersales/notes-on-initial-programming"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CoderSales/Notes-on-Initial-Programming","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoderSales%2FNotes-on-Initial-Programming","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoderSales%2FNotes-on-Initial-Programming/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoderSales%2FNotes-on-Initial-Programming/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoderSales%2FNotes-on-Initial-Programming/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CoderSales","download_url":"https://codeload.github.com/CoderSales/Notes-on-Initial-Programming/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoderSales%2FNotes-on-Initial-Programming/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28794585,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T21:49:50.245Z","status":"ssl_error","status_checked_at":"2026-01-26T21:48:29.455Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["2023","2023-10","2023-oct","2023-october","initial-programming","msc","msc-y1","msc-y1-s1","msc-y1-s1-w6","notes"],"created_at":"2024-11-08T05:16:33.676Z","updated_at":"2026-01-27T01:05:08.162Z","avatar_url":"https://github.com/CoderSales.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Notes-on-Initial-Programming\n\n## Description\nNotes-on-Initial-Programming\n\n## Table of Contents of Brightspace Module\n\n[Lecture 1](https://learn.ul.ie/d2l/le/lessons/10840/topics/458147)\n\n[Lecture 2 (not found)](https://learn.ul.ie/d2l/le/lessons/10840/topics/458507)\n\n[Lecture 3](https://learn.ul.ie/d2l/le/lessons/10840/topics/463731)\n\n[Lecture 4](https://learn.ul.ie/d2l/le/lessons/10840/topics/480279)\n\n____\n\n[Lab Week 5](https://learn.ul.ie/d2l/le/lessons/10840/topics/500828)\n\nno later content than this on 2023-10-16-at-1529h\n\n## Content\n\n### Week-6\n\n#### Lecture-Week-6\n\n##### Digital Ocean\n\nLet’s look at the available format specifiers available for printf:\n\n%c character\n\n%d decimal (integer) number (base 10)\n\n%e exponential floating-point number\n\n%f floating-point number\n\n%i integer (base 10)\n\n%o octal number (base 8)\n\n%s String\n\n%u unsigned decimal (integer) number\n\n%x number in hexadecimal (base 16)\n\n%t formats date/time\n\n%% print a percent sign\n\n\\% print a percent sign\n\n###### ChatGPT3_5\n\nIn the System.out.printf method in Java (and similar formatting in other programming languages), the % symbol is used to indicate a placeholder for a value to be inserted into the string being formatted. The characters following % specify the formatting for the value \n\nthat will be inserted.\n\nIn the example \"%9.7f\":\n\n% indicates the start of the formatting specifier.\n\n9 specifies the minimum width of the field where the value will be inserted. In this case, it's saying that the minimum width is 9 characters. If the inserted value is less than 9 characters wide, it will be padded with spaces to the left.\n\n.7 specifies the precision for floating-point numbers. It indicates that 7 decimal places should be shown.\n\nf specifies that the value being inserted should be formatted as a floating-point number.\n\nSo, in summary, %9.7f is a formatting specifier for a floating-point number with a minimum width of 9 characters and 7 decimal places of precision.\n\n\n```java\npublic class PrintPi {\n    public static void main(String[] args) {\n        double piValue = Math.PI;\n        System.out.printf(\"Value of PI to 7 dec is %9.7f\\n\", piValue);\n    }\n}\n\n```\n\n```java\nSystem.out.printf(\"Value of PI to 4 dec is %9.4f\\n\", Math.PI);\n```\n\n```java\nSystem.out.printf(\"Value of PI to 2 dec is %-9.2f\\n\", Math.PI);\n```\n\n____\n\n##### W6 Lec PART 2\n\n##### ASCII Table\n\n____\n\n##### ChatGPT3_5\n\nIn Java, you can utilize the Character class to work with characters and perform the mentioned operations. Here's a brief guide on using Character for the specified tasks:\n\nChecking if a Character is a Digit:\n\njava\nCopy code\nchar ch = '7';\nboolean isDigit = Character.isDigit(ch);\nChecking if a Character is a Letter:\n\n```java\n\nchar ch = 'A';\nboolean isLetter = Character.isLetter(ch);\nChecking if a Character is Uppercase:\n```\n\n```java\nchar ch = 'C';\nboolean isUppercase = Character.isUpperCase(ch);\nChecking if a Character is Lowercase:\n```\n\n```java\nchar ch = 'd';\nboolean isLowercase = Character.isLowerCase(ch);\nConverting a Character to Lowercase or Uppercase:\n```\n\n```java\nchar ch = 'A';\nchar lowercaseCh = Character.toLowerCase(ch);\nchar uppercaseCh = Character.toUpperCase(ch);\nGenerating a Random Uppercase Letter:\n```\n\n```java\nchar randomUppercase = (char) ('A' + (int) (Math.random() * 26));\nThese functions allow you to manipulate and determine properties of characters in Java. Let me know if you need further clarification or additional code examples!\n```\n\n____\n\n##### Storing Data (Fixed)\n\n____\n\n##### Storing Data (Dynamic)\n\n\n____\n\nIn fixed size rep\nvar point at data\n\nin dyn\nvar point at ref\npointing at date\n\n... if change to the date\nthe reference might change....\n\n_______\n\n\n\n## Refrerences\n\n### Printf\n\n[geeksforgeeks Printf](https://www.geeksforgeeks.org/formatted-output-in-java/)\n\n[digital ocean Printf](https://www.digitalocean.com/community/tutorials/java-printf-method)\n\n[ASCII Table](https://www.asciitable.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodersales%2Fnotes-on-initial-programming","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodersales%2Fnotes-on-initial-programming","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodersales%2Fnotes-on-initial-programming/lists"}