Nutrition Rebooted

Nutritionrebooted.xyz is a professionally developed starter website with unique content created using WordPress, the most widely practiced website platform.

WHAT’S INCLUDED

  • DOMAIN NAME
  • WEBSITE FILES AND DATABASES
  • WEBSITE INSTALLATION SUPPORT
  • UNIQUE ARTICLES POSTED
  • SEO FRIENDLY
  • AMAZON PRODUCT REVIEWS
  • USER-FRIENDLY DESIGN
  • BEAUTIFULLY DESIGNED
  • CUSTOMIZABLE WEBSITE
  • PRIVACY POLICY AND…

Nutrition Rebooted

My C++ project for modifying nutrition labels and recipes from files

I have a project where I would develop a nutrition label and a recipe list in a C++ class. I am facing problems with these specific functions. The choice value is when the user decided earlier if they would like to work with nutrition labels or recipes.

#include <iostream> #include <iomanip> #include <fstream> // Code for manually adding to each arrays void addManual(int & choice, int & labeltotal, char itemName[][100], char nutriIngred[][10][500], char component[][20], double measurement[][10], char metric[][10][10], int dailyPercent[][10],     int & recipetotal, char recipes[][50], char reciIngred[][10][100]) {     cout << "Add manual function" << endl;      switch (choice)     {     case 1:     {         for (int i = labeltotal + 1; i < (labeltotal + 2); i++)         {             cout << "Enter additional item name: ";             cin >> itemName[i];             while (itemName[i] != "#")             {                 for (int j = 0; j < 10; j++)                 {                     cout << "Insert additional ingredients: ";                     cin >> nutriIngred[i][j];                 }                  cout << "Enter additional component: ";                 cin >> component[i];                 for (int n = 0; n < 26; n++)                 {                     cout << "insert additional measurement: ";                     cin >> measurement[i][n];                     cout << "insert additional metric: ";                     cin >> metric[i][n];                     cout << "insert additional daily percent: ";                     cin >> dailyPercent[i][n];                 }             }         }         break;     }     case 2:     {         for (int k = (recipetotal + 1); k < (recipetotal + 2); k++)         {             cout << "insert additional recipe: ";             cin >> recipes[k];              for (int l = 0; l < 10; l++)             {                 cout << "insert additional ingredients: ";                 cin >> reciIngred[k][l];             }         }         break;     }     default:     {         cout << "error" << endl;     }     }      labeltotal = (labeltotal + 1);     recipetotal = (recipetotal + 1);     return; }  // adding a file to the bottom of each array void addFile(int & choice, int & labeltotal, char itemName[][100], char nutriIngred[][10][500], char component[][20], double measurement[][10], char metric[][10][10], int dailyPercent[][10],     int & recipetotal, char recipes[][50], char reciIngred[][10][100]) {     int x = 0, y = 0;     ifstream fin, fin2;      // open file     fin.open("labelsInput.txt");     fin2.open("recipesInput.txt");     fin >> x;     fin2 >> y;      cout << "Add from file function" << endl;      // if nutrition was chosen in the beginning     if (choice == 1)     {         for (int i = labeltotal; i < (labeltotal + x); i++)         {             fin >> itemName[i];             for (int n = 0; n < 26; n++)             {                 fin.getline(nutriIngred[i][n], 500);                 fin >> component[n];                 fin >> measurement[i][n];                 fin >> metric[i][n];                 fin >> dailyPercent[i][n];             }         }     }      // if recipe was chosen in the beginning     else if (choice == 2)     {         for (int k = (recipetotal + 1); k < (recipetotal + y); k++)         {             fin2 >> recipes[k]; // get name of the recipes              for (int l = 0; l < 10; l++)             {                 fin2 >> reciIngred[k][l];             }         }     }     labeltotal = (labeltotal + x);     recipetotal = (recipetotal + y);     return; }  // editing an array element void edit(int & choice, int & labeltotal, char itemName[][100], char nutriIngred[][10][500], char component[][20], double measurement[][10], char metric[][10][10], int dailyPercent[][10],     int & recipetotal, char recipes[][50], char reciIngred[][10][100]) {     char quitpro = 'n';     int option;     int itemIndex = 0;     int newItem, newIngred, newComponent, newMeasurement, newMetric, newDaily, newRecipe, newtotal;      do     {         cout << "edit function" << endl;         cout << "Make a choices: " << endl             << "1 - stop" << endl << "2 - continue editing" << endl;         cin >> option;          switch (option)         {         case 1:         {             cout << "Are you sure you want to quit? (Y/N)" << endl;             cin >> quitpro;             break;         }         case 2:         {             if (choice == 1)             {                 getLabel(labeltotal, itemName, nutriIngred, component, measurement, metric, dailyPercent);                 cin >> itemIndex;                  cout << "Insert new item name: ";                 cin >> newItem;                 cout << "Insert new ingredients list: ";                 cin >> newIngred;                 cout << "Insert new component: ";                 cin >> newComponent;                 cout << "Insert new measurement: ";                 cin >> newMeasurement;                 cout << "New metric: ";                 cin >> newMetric;                 cout << "New daily percentage: ";                 cin >> newDaily;                  for (int i = 0; i < labeltotal; i++)                 {                     if (i = itemIndex)                     {                         itemName[i][100] = newItem;                         nutriIngred[i][10][500] = newIngred;                         component[i][10] = newComponent;                         measurement[i][10] = newMeasurement;                         metric[i][10][10] = newMetric;                         dailyPercent[i][10] = newDaily;                     }                 }             }             else if (choice == 2)             {                 getRecipe(recipetotal, recipes, reciIngred);                 cin >> itemIndex;                 cout << "Insert new recipe name: ";                 cin >> newRecipe;                 cout << "Insert new ingredients: ";                 cin >> newIngred;                  for (int k = 0; k < recipetotal; k++)                 {                     if (k = itemIndex)                     {                         recipes[k][50] = newRecipe;                         reciIngred[k][10][100] = newIngred;                     }                 }             }             break;         }         }     } while (quitpro == 'n' || quitpro == 'N');     return; }  // deleting an array element void del(int & choice, int & labeltotal, char itemName[][100], char nutriIngred[][10][500], char component[][20], double measurement[][10], char metric[][10][10], int dailyPercent[][10],     int & recipetotal, char recipes[][50], char reciIngred[][10][100]) {     char quitpro = 'n';     int option;     int itemIndex = 0;     int newItem, newIngred, newComponent, newMeasurement, newMetric, newDaily;      cout << "delete function" << endl;     do     {         cout << "Make a choice: " << endl             << "1 - stop" << endl << "2 - continue deleting" << endl;         cin >> option;          switch (option)         {         case 1:         {             cout << "Are you sure you want to quit? (Y/N)" << endl;             cin >> quitpro;             break;         }         case 2:         {             if (choice == 1)             {                 getLabel(labeltotal, itemName, nutriIngred, component, measurement, metric, dailyPercent);                 cin >> itemIndex;                  for (int i = 0; i < labeltotal; i++)                 {                     if (i = itemIndex)                     {                         itemName[i][100] = 0;                         nutriIngred[i][10][500] = 0;                         component[i][10] = 0;                         measurement[i][10] = 0;                         metric[i][10][10] = 0;                         dailyPercent[i][10] = 0;                     }                 }             }             else if (choice == 2)             {                 getRecipe(recipetotal, recipes, reciIngred);                 cin >> itemIndex;                 for (int k = 0; k < recipetotal; k++)                 {                     if (k = itemIndex)                     {                         recipes[k][50] = 0;                         reciIngred[k][10][100] = 0;                     }                 }             }             break;         }         }     } while (quitpro == 'n' || quitpro == 'N');     return; }  // saving the arrays to the original files void save(int & labeltotal, char itemName[][100], char nutriIngred[][10][500], char component[][20], double measurement[][10], char metric[][10][10], int dailyPercent[][10],     int & recipetotal, char recipes[][50], char reciIngred[][10][100]) {     ofstream fout, fout2;     fout.open("Labels.txt");     fout2.open("Recipes.txt");      cout << "Saving function" << endl;      fout << labeltotal << endl;     for (int i = 0; i < labeltotal; i++)     {         fout << itemName[i] << endl;         for (int j = 0; j < 10; j++)         {             fout << nutriIngred[i][j] << " ";         }         fout << endl;         for (int n = 0; n < 26; n++)         {             fout << component[n] << " " << measurement[i][n] << " " << metric[i][n] << " " << dailyPercent[i][n] << endl;         }         fout << endl;     }      fout2 << recipetotal << endl;     for (int k = 0; k < recipetotal; k++)     {         fout2 << recipes[k] << " ";         for (int l = 0; l < 10; l++)         {             fout2 << reciIngred[k][l] << " ";         }         fout2 << endl;     }     fout2 << endl;      // close files     fout.close();     fout2.close();     return; } 

Finding which line to work on

void getLabel(int & labeltotal, char itemName[][100], char nutriIngred[][10][500], char component[][20], double measurement[][10], char metric[][10][10], int dailyPercent[][10]) {     for (int i = 0; i < labeltotal; i++)     {         cout << "Label line: " << i << endl;         cout << itemName[i] << endl;         for (int j = 0; j < 10; j++)         {             if (nutriIngred[i][j][0] != '#')             {                 cout << nutriIngred[i][j] << " ";             }             else             {                 break;             }         }         cout << endl;         for (int n = 0; n < 26; n++)         {             cout << " " << component[n] << ": " << measurement[i][n] << " " << metric[i][n] << " ";             if (dailyPercent[i][n] != -1)             {                 cout << dailyPercent[i][n];             }             else             {                 break;             }             cout << endl;         }     }     cout << endl;     cout << "What label line would you like to work with: "; }  void getRecipe(int & recipetotal, char recipes[][50], char reciIngred[][10][100]) {     for (int k = 0; k < recipetotal; k++)     {         cout << "recipe line: " << k << endl;         for (int l = 0; l < recipetotal; l++)         {             cout << recipes[k][l];         }         for (int m = 0; m < 10; m++)         {             cout << " " << reciIngred[k][m] << endl;         }     }     cout << "What recipe line would you like to work with?" << endl;        // ask user what recipe to work on } 

Nutrition Labels

1 Cereal Wheat, milk calories 120 kcals -1 fatCalories 15 kcals 2 totalFat 1.5 g 2 satFat 2 g 3 transFat 3 g 4 polyFat 4 g 5 monoFat 5 g 6 cholesterol 6 g 7 sodium 7 g 8 potassium 9 g 10 totalCarbs 10 g 11 dietaryFiber 11 g 12 sugar 12 g 13 otherCarbs 13 g 14 protein 14 g 15 vitaminA 15 g 16 vitaminC 16 g 17 calcium 17 g 18 iron 18 g 19 thiamine 19 g 20 riboflavin 20 g 21 niacin 21 g 22 vitaminB6 22 g 23 folicAcid 23 g 24 phosphorus 24 g 25 zinc 25 g 26 

Recipes

10 Tacos tortilla, lettuce, cheese, meat # Doritos cheese powder, chip # Salad lettuce # Tostitos tortilla, salsa # Pizza cheese, pepperoni # Pepsi co2 # Coke co2 # Sprite co2, lime # Pretzels salt, pretzel # ``` 

How does Pure Life Nutrition Keto used?

Pure Life Keto : This is often a celebrated straightforward means for declaring Weight Loss. We tend to have to stay in the important world. That is not pretty. To whit, “Better be safe than sorry.” There are a number of things to remember on how to make Weight Loss work effectively for you. The inventory of Weight Loss in a local area is typically measured like that. We tend to’ll keep accurate records. So far in that project, I actually have not seen any Weight Loss.

Pure Life Keto – keto Shark Tank Diet Pills For Burn Stubborn Fat!

Shape X2 Keto another very important recommendation, focus on improving your nutrition gradually

Shape X2 Keto nutrition and weight management strategies are combined with a sound exercise program. As a quick recommendation which I sincerely hope you follow, steer very clear of the quick weight loss diets. They are a recipe for disaster. As a way to do this, it’s important that you think of your weight loss as a process that will continue for as long as you are alive. Too many people want quick results, but fail to consider the long-term. That will surely lead to frustration, discouragement, and eventually, failure. As https://pilpedia.com/shape-x2-keto/

Vital Keto – nutrition vitale

Vital keto :- Certains mentors qui sont infructueux à la perte de poids l'ont. Votre poids moins n'est pas mais? J'ai alterné entre la perte de poids formule et perte de poids conseils. Il n'y a aucun signe de cela actuellement. Cette vérité fait mal, n'est-ce pas? Pour sûr, la vie continue (poids moins les tests montrent cela). Malheureusement, leur devise n'était pas assez ennuyeuse. C'était du Piercing d'oreille. Ils avaient tous…

Vital Keto – nutrition vitale

Impatience is the downfall of so a lot of use Smarter Nutrition Curcumin.

That is why it's miles vital no longer to give up too early at the first-class dietary products. The high-quality nutritional products "Smarter Nutrition Curcumin" – however the general public do not apprehend how they paintings and the majority surrender too soon – no longer giving them a risk to work.Click Here…

Impatience is the downfall of so a lot of use Smarter Nutrition Curcumin.

Does Smarter Nutrition Curcumin Work’s Effectively ?

Jonathan Bailor begins with a criticism of current strategies, a corpus of advice that represents some thing of an establishment function. Smarter Nutrition Curcumin it is a weight-reduction plan he labels INSANE. it's not quite an acronym, however it gets the point throughout. The effects of this eating regimen are obesity. sure, we're being formally suggested right into a state of obesity. In comparison, the SANE method lets in you…

Does Smarter Nutrition Curcumin Work's Effectively ?

Hot Deal Full Auto Nutrition Tips Website with BONUS SITES AT BUY IT NOW PRICE

Hot Deal Full Auto Nutrition Tips Website with BONUS SITES AT BUY IT NOW PRICE

Website Features

  • HIGH DEMANDING KEYWORD RANKED ARTICLES.
  • Beautifully WordPress Designed Website
  • High demanding Articles and you can add own articles
  • Can be Monetized With ANY Network
  • Professional Look Building Authenticity
  • 100% Newbie Friendly Business
  • Absolutely No Experience Required

Hot Deal Full Auto Nutrition Tips Website with BONUS SITES AT BUY IT NOW PRICE

Amazon and adsense website unique content weight loss and nutrition niche

Why are you selling this site?
do not have time to manage it

How is it monetized?
amazon and adsense

Does this site come with any social media accounts?
facebook
twitter

How much time does this site take to run?
writing unique content each week, I would say 2 hours a week

What challenges are there with running this site?
just add new content each week or month
some reviews of amazon products