Grocery list app

Matthew Zoljan 120 Reputation points
2023-05-17T10:57:19.1033333+00:00

I am wanting to build a grocery app that automatically calculates what groceries you should buy and list the values on a separate content page.

There is a registration page that askes the user questions like how many people in household, shopping frequently, how many kgs of meat/vegetables/fruits a week, how many dozens of eggs a week, how many litres of milk per week, and loathes of bread.

So far I have created the registration page and have been able to store the values in a database. Some other irrelevant information right now is that the user is able to login and update their values in a page called 'Personalize'. That works fine.

What I am needing to know is how do I create a list of fruit, vegetables, kinds of meats, loathes of bread, milk, eggs. I need it installed into a database with their weight/amount then I need to be able to multiple the values by the database values that is being obtained from the registration page and 'Personalize' database.

Does anyone know of a similar app on say GitHub or a tutorial of an app performing similar calculations/functions. Then I can inspect it and get my head around how do I go about even attempting it. Or if someone can give me some tips here like what to do and what I'm doing wrong. So far any help is help for me now as I am totally stuck.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,294 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,247 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Ieabre 0 Reputation points
    2024-02-16T12:40:33.75+00:00

    Building a grocery list app with personalized recommendations involves several steps, including database design, calculation logic, and user interface implementation. Here's a breakdown of how you can approach this: Database Design: You need a database to store information about groceries, such as their names, categories, and weights/amounts. You also need tables to store user information (from the registration page) and personalized preferences (from the "Personalize" page). Populate Grocery Database: You can manually populate the grocery database with a variety of fruits, vegetables, meats, bread, milk, and eggs, along with their respective weights/amounts. Each item should have a unique identifier, name, category, and weight/amount. Calculation Logic: Once you have the user's preferences from the registration and personalize pages, you need to calculate the quantities of groceries they need to buy. For example, if a user says they need 2 kgs of vegetables per week, you'd calculate the total weight of vegetables needed based on their preferences and multiply it by the weight of each vegetable type to get the final quantity. User Interface: You'll need to create pages where users can view their personalized grocery list. This interface should display the calculated quantities of each grocery item based on the user's preferences. Integration: Connect your calculation logic with the database to fetch grocery item details and calculate personalized quantities. Display the calculated quantities on the user interface. Testing and Refinement: Test your app thoroughly to ensure that the calculations are accurate and the user interface is user-friendly. Refine your app based on user feedback and any issues encountered during testing. As for resources to help you implement this, you may not find an exact tutorial or GitHub repository that matches your requirements. However, you can find resources on database design, calculation algorithms, and web development that can help you piece together the different components of your app. Test your code thoroughly to ensure it behaves as expected and handles edge cases appropriately. Remember that creating an application involves combining different technologies and applying programming principles, so you should have a good understanding of the tools you use. To solve problems, study the relevant documentation and ask for help from the developers https://tech-stack.com/ to overcome some of the problems you might encounter during implementati

    0 comments No comments