Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

GENG106 Computer Programming Lab - Spring 2021 Course Project: Mini Cooking Recipe Generator and Calorie Tracking System (Recipeocity) Due Date: March 13th, 2021 by 11:59

image text in transcribed

GENG106 Computer Programming Lab - Spring 2021 Course Project: Mini Cooking Recipe Generator and Calorie Tracking System (Recipeocity) Due Date: March 13th, 2021 by 11:59 PM (Phase I) 10th April 2021 by 11:59 PM (Phase II) Problem Description: In this project, you are required to build a system that helps users plan their meals in a conscious manner by randomly generating for them a set of recipes per session. The system tracks users that want to ensure that their recipes comply with their health needs. To perform this tracking, the system creates user profiles by storing personal and health-related information in a file. This allows users to load their information from the file for later usage. For a user, the system should generate 4 to 6 random recipes per session from a file that contains a collection of recipes from allrecipes.com. Based on the user health requirements, the system should calculate and display statistics about the calories from each session and the overall user progress in terms of keeping up with their caloric intake goals. The system should allow users to view and assess their meal choices based on the nutritional value of their selected recipes. The program should be menu driven to allow the users to choose one of the following tasks: 1. Create or load a user profile (Phase I) 2. Edit or delete a user profile (Phase I) 3. View user profile (Phase I) 4. Generate recipe recommendations for the session 5. View user meals and generate health information 6. Exit the program Here are the details of each choice that the user will be able to perform in the program: 1. Create or load a user profile When the user chooses 1, the program should perform the following tasks: a. Check if the file 'userInformation.txt' exists, if it does not exist (i.e., you are running the program for the first time ever), create a new user profile by asking the user to enter the following fields to the userInformation.txt file in append mode, like the following sample input: Join Date Name Height Weight Year of Age BMI BMI BMR (string) (string) (float) (float) birth (integer) (float) range (float) (integer) (string) 17/10/2020, Maryam 1.58 61 1992 28 24.44 healthy 1399.82 05:38:26 Activity TEE Allergies (integer) (float) (list of strings) 2 1924.75 almond, oats From the year of birth, calculate the user age. Asking the user to enter their date of birth and calculating the exact age in years is a bonus. Using the height and weight information, calculate the user's BMI using the following equation: Weight in KG) BMI Height? (in meters) GENG106 Computer Programming Lab - Spring 2021 Course Project: Mini Cooking Recipe Generator and Calorie Tracking System (Recipeocity) Due Date: March 13th, 2021 by 11:59 PM (Phase I) 10th April 2021 by 11:59 PM (Phase II) Problem Description: In this project, you are required to build a system that helps users plan their meals in a conscious manner by randomly generating for them a set of recipes per session. The system tracks users that want to ensure that their recipes comply with their health needs. To perform this tracking, the system creates user profiles by storing personal and health-related information in a file. This allows users to load their information from the file for later usage. For a user, the system should generate 4 to 6 random recipes per session from a file that contains a collection of recipes from allrecipes.com. Based on the user health requirements, the system should calculate and display statistics about the calories from each session and the overall user progress in terms of keeping up with their caloric intake goals. The system should allow users to view and assess their meal choices based on the nutritional value of their selected recipes. The program should be menu driven to allow the users to choose one of the following tasks: 1. Create or load a user profile (Phase I) 2. Edit or delete a user profile (Phase I) 3. View user profile (Phase I) 4. Generate recipe recommendations for the session 5. View user meals and generate health information 6. Exit the program Here are the details of each choice that the user will be able to perform in the program: 1. Create or load a user profile When the user chooses 1, the program should perform the following tasks: a. Check if the file 'userInformation.txt' exists, if it does not exist (i.e., you are running the program for the first time ever), create a new user profile by asking the user to enter the following fields to the userInformation.txt file in append mode, like the following sample input: Join Date Name Height Weight Year of Age BMI BMI BMR (string) (string) (float) (float) birth (integer) (float) range (float) (integer) (string) 17/10/2020, Maryam 1.58 61 1992 28 24.44 healthy 1399.82 05:38:26 Activity TEE Allergies (integer) (float) (list of strings) 2 1924.75 almond, oats From the year of birth, calculate the user age. Asking the user to enter their date of birth and calculating the exact age in years is a bonus. Using the height and weight information, calculate the user's BMI using the following equation: Weight in KG) BMI Height? (in meters)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Database Experts Guide To Database 2

Authors: Bruce L. Larson

1st Edition

0070232679, 978-0070232679

More Books

Students also viewed these Databases questions

Question

Explain how cultural differences affect business communication.

Answered: 1 week ago