{"id":24374664,"url":"https://github.com/sofisar/c--_lunch_spring-2022","last_synced_at":"2025-12-25T22:05:30.533Z","repository":{"id":271735597,"uuid":"865037911","full_name":"SofiSaR/C--_Lunch_Spring-2022","owner":"SofiSaR","description":"This console application takes and validates yes and no decisions from the user and follows a path of nested conditions to determine what to suggest for lunch to the user.","archived":false,"fork":false,"pushed_at":"2024-09-29T23:01:05.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.002Z","etag":null,"topics":["c-plus-plus","conditionals","conditions","input-validation","nested-conditionals","nested-ifs"],"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-29T20:21:17.000Z","updated_at":"2024-09-29T23:08:39.000Z","dependencies_parsed_at":"2025-01-09T15:45:39.022Z","dependency_job_id":null,"html_url":"https://github.com/SofiSaR/C--_Lunch_Spring-2022","commit_stats":null,"previous_names":["sofisar/c--_lunch_spring-2022"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SofiSaR%2FC--_Lunch_Spring-2022","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SofiSaR%2FC--_Lunch_Spring-2022/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SofiSaR%2FC--_Lunch_Spring-2022/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SofiSaR%2FC--_Lunch_Spring-2022/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SofiSaR","download_url":"https://codeload.github.com/SofiSaR/C--_Lunch_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","conditionals","conditions","input-validation","nested-conditionals","nested-ifs"],"created_at":"2025-01-19T05:41:02.540Z","updated_at":"2025-12-25T22:05:25.490Z","avatar_url":"https://github.com/SofiSaR.png","language":"C++","readme":"# Lunch Program\n\nJan 30, 2022\n\n\n## Objectives in Practice:\n\n\n- Develop, compile, and run a C++ program that requires the use of C++ variables and if, if / else, if / else if statements, conditional operators, and/or switch statements.\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 that asks the user the questions from the Deciding What to Have for Lunch flow chart and displays the appropriate message to the user.\n\n### Deciding What to Have for Lunch\n\n```\n+++++++++++++++++           _____          +++++++++++++         _____\n| How much time |         /       \\        | Do I have |       /       \\\n|  do I have?   |   --\u003e  |  A lot  |  --\u003e  |   bread?  |  --\u003e |   Yes   |\n+++++++++++++++++         \\_______/        +++++++++++++       \\_______/\n        |                                        |                 |\n     _______                                   _____         ==============\n   /   Not   \\                               /       \\       |   Make a   |\n  |   Much    |                             |   No    |      |  sandwich! |\n   \\_________/                               \\_______/       ==============\n        |                                        |\n=================           _____          +++++++++++++         _____\n|  Better throw |         /       \\        | Do I have |       /       \\\n|  somthing in  |        |   Yes   |  \u003c--  |  lettuce? |  --\u003e |   No    |\n| the microwave |         \\_______/        +++++++++++++       \\_______/\n=================             |                                    |\n                         ===========                        ================\n                         |  Make a |                        | Better go to |\n                         |  salad  |                        |  the store!  |\n                         ===========                        ================\n```\n\n**1. The user should be prompted to ask the first questions in the diamond on the flow chart and asked to respond with**\n\n        a Y or y for Yes and\n\n        a N or n for No\n\n        or\n\n        a A or a for A lot and\n\n        a B or b for Not much\n\n        (depending upon the question).\n\n   - If the user enters a valid option the corresponding path on the flow chart is followed.\n\n   - Otherwise, the user is told that they entered invalid data and asked to run the program again.\n  \n     \n\n**2. Once you reach the end of the path on the flow chart, the message at the end is displayed to the user and the program ends.**\n\n\n### Other Requirements:\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\n- Valid input validation response on each question asked\n\n- Properly nested conditionals\n\n- Include comments in your code as required\n\n\n## How to Run the Program:\n\n- Use ```g++ Lunch.cpp -o Lunch.exe``` and then ```Lunch.exe``` in a Linux terminal to compile and run.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsofisar%2Fc--_lunch_spring-2022","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsofisar%2Fc--_lunch_spring-2022","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsofisar%2Fc--_lunch_spring-2022/lists"}