{"id":24374663,"url":"https://github.com/sofisar/c--_playingwithnumbers_spring-2022","last_synced_at":"2025-08-20T12:12:52.105Z","repository":{"id":271735598,"uuid":"865087738","full_name":"SofiSaR/C--_PlayingWithNumbers_Spring-2022","owner":"SofiSaR","description":"This program allows the user to choose to compute all the cousin prime pairs less than a number they input, compute if a number is a perfect number, or quit.","archived":false,"fork":false,"pushed_at":"2024-09-30T01:47:18.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-19T05:41:26.048Z","etag":null,"topics":["c-plus-plus","functional-programming","loops","menu-driven"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SofiSaR.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-30T00:11:31.000Z","updated_at":"2024-09-30T01:50:57.000Z","dependencies_parsed_at":"2025-01-09T15:45:39.044Z","dependency_job_id":null,"html_url":"https://github.com/SofiSaR/C--_PlayingWithNumbers_Spring-2022","commit_stats":null,"previous_names":["sofisar/c--_playingwithnumbers_spring-2022"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SofiSaR%2FC--_PlayingWithNumbers_Spring-2022","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SofiSaR%2FC--_PlayingWithNumbers_Spring-2022/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SofiSaR%2FC--_PlayingWithNumbers_Spring-2022/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SofiSaR%2FC--_PlayingWithNumbers_Spring-2022/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SofiSaR","download_url":"https://codeload.github.com/SofiSaR/C--_PlayingWithNumbers_Spring-2022/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243213851,"owners_count":20254879,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["c-plus-plus","functional-programming","loops","menu-driven"],"created_at":"2025-01-19T05:41:02.242Z","updated_at":"2025-03-12T11:41:40.874Z","avatar_url":"https://github.com/SofiSaR.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Playing With Numbers Program\n\nFeb 20, 2022\n\n\n## Objectives in Practice:\n\n- Develop, compile, and run a C++ program that requires the definition and use of functions that utilize fundamental algorithms studied to perform common tasks, such as finding the max and min of a data set, counting, summing, tracking a previous value, searching and sorting, reading until EOF, etc. in programs to solve problems.\n  \n- Transfer a program to the Unix server, use the G++ compiler to compile a program and execute a c++ program that you have written\n\n\n## The Instructions That Were Given for the Project:\n\n\n- Write a C++ program to run a menu-driven program with the following choices:\n  - Compute all the Cousin Prime Pairs less than a number\n  - Compute if a number is a Perfect number\n  - Quit\n\n- Follow the course coding standards outlined in Coding Standards_ (COP3363 Introduction to Programming in C++ for Majors).docx ([Coding Standards](https://canvas.fsu.edu/courses/193490/files/15396757/download)) .\n\n- Include the basic header in your program Header for Assignments.docx ([Required Header Template](https://canvas.fsu.edu/courses/193490/files/15396772/download)) , and print a welcome message to the user.\n\n1. Write a function called getValidUserInputPosNumGT0 that allows a user to enter in an integer and validated that the number is \u003e 0. It must have a pass by reference parameter that will store the value selected by the user.\n\n        void GetValidUserInputPosNumGT0(long int \u0026num);\n\n2. Write a function called SumOfDivisors that takes a number as a value parameter. It returns the sum of the divisors of the number.\n\n        long int SumOfDivisors(long int num);\n\n3. Write a function called IsPrime that takes a number as a value parameter. It returns true if the number is prime and false otherwise.\n\n        bool IsPrime(long int num);\n\n4. Write a function called DisplayCousinPrimes that takes a number as a value parameter. It displays all the cousin prime pairs less than the number. See [Cousin Prime Wiki](https://en.wikipedia.org/wiki/Cousin_prime)\n\n        void DisplayCousinPrimes(long int num);\n  \n\n5. Write a function called Perfect that takes a number as a value parameter. It returns true if the number is perfect and false otherwise. See [Perfect Number Wiki](https://en.wikipedia.org/wiki/Perfect_number)\n\n        bool IsPerfect(long int num)\n\n6. Add comments wherever necessary. \n\n\n## How to Run the Program:\n\n- Use ```g++ playingWithNumbers.cpp -o playingWithNumbers.exe``` and then ```playingWithNumbers.exe``` in a Linux terminal to compile and run.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsofisar%2Fc--_playingwithnumbers_spring-2022","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsofisar%2Fc--_playingwithnumbers_spring-2022","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsofisar%2Fc--_playingwithnumbers_spring-2022/lists"}