Archive

Posts Tagged ‘sugar’

Sugar Crm Expert Needed

October 30th, 2011 Comments off

I want some bugs to be fixed in the sugar crm. Please tell me your

availability.

Sugar Crm Authorize.net Plugin

October 21st, 2011 Comments off

We need someone to create a link between SUGAR CRM and Authorize.net

We want to be able to bill clients via their credit cards through Sugar CRM.

Sugarcrm

October 17th, 2011 Comments off

I need some work finished today (Monday) Greenwich Mean Time. This deadline is critical.

Our company uses Sugar CRM. We have had it modified to deal with how our business works.

For internal reasons we need this instance of the CRM replicated exactly with all the same functionality and hosted on another server. We have access to the

Sugar Crm Changes

August 19th, 2011 Comments off

We have installed sugarCRM on our server we would like someone to make it look the same as our corporate website, we also need some coding done to add some more functionality for us:
We require:
Change of colours and logo;s etc, for both the login screen and the screen once logged into the system
Intergration into our wordpress site to create users based off logins so only one is needed for the entire site.
a new function added to the sugarcrm, we need a salesperson scoreboard, so for each day they work they will input data which can then be graphed against others to show the salesperson that is selling the most or is the most efficient.
it also has a spot where leads are input aswell as contacts for our email contact list
I have attached a copy of what the daily data sheet looks like and the fields that are required, this will become a new page in the CRM system

we also need to sync the calander from sugar to our outlook calanders
we also need to push the contact details to our icontact database.

this is a very urgent job and would need to be fully completed within a week of approval to start the work.

any questions let me know!!

Bp And Blood Sugar App For Iphone And Ipad

June 8th, 2011 Comments off

Key Features
a) user must be able to save data to a database server over https
b) user must be able to use locally stored data which is synchronised with DB
c) user must be able to view their data and chart it in a line graph
d) Look at Blood Pressure and Pulse Grapher Lite

Need 2 Articles Promoting Sugar Daddy Dating

May 23rd, 2011 Comments off

Need 2 articles written promoting sugar daddy dating and how great it is. The articles should be written in spinnable syntax with each sentence (INCLUDING THE TITLE) written in 3 different variations so that when spun using SENuke it will produce content that is at least 35-40% unique each time.
I am attaching a sample article. What you write for me should be in that spirit and exact same syntax. Each spin should produce approximately a 500-word article, so I need roughly 1500 words written per article.

Please include sample of your work and if you’re going to provide me junk articles please don’t even bother bidding.

Sugar Crm Expert Needed

May 18th, 2011 Comments off

I want you to install and connect my website with sugar crm. I want 2

pages and 3 forms to be added and connected to my website using sugar

crm. Please tell me your availability.

Looking For Sugar Crm Developer

May 3rd, 2011 Comments off

Hello Programmer and Developer,

We’re looking for experience Sugar CRM developer/programmer to help us modify, add and complete our existing sugar CRM.

Currently, We have a sugar crm but it doesn’t has all the feature and module that we want .Below are the lists of things that are incomplete and have not add. And we want to have it done ASAP.

1. Our current invoice, order, quote has been integrate into our sugar crm system but it is not really organize, alignment not professional. We want you to re structure the invoice, order, quote so it will appear nice and clean.

2. Current sugar crm doesn’t has module to track sale everyday, weekly, montly, yearly. No sale pipeline to track revenue for the company and sale representative.

3. No sale commission module for our sale representative. We want to have PV(point system) module. Let say $50 dollar of sale equal to 20pv(point) for sale rep.

4. Email Campaign is integrate but we are not sure it is fully working.. Email campaign need to be test to see how many email list able to send out at one time.

5. Trouble/support Ticket and Member chat ?

6. Able to have Comment box or note for user and order

7. Very important: We need to have an automatic email template preset for new order and pickup order. Ex. When an exisiting or new customer place any new order, when the customer service or any users ,admin finish generate the new order in our CRM system. Our system should set to send an automatic

Super Fast Sugar Install

March 1st, 2010 Comments off

I want to have the sugar community open source CRM installed onto my system.

All the documentation can be found here:

http://www.sugarcrm.com/crm/support/documentation/SugarCommunityEdition/5.5/-docs-Application_Guides-Sugar_Community_Edition_Application_Guide_5.5GA-Sugar_Install_Upgrade.html

if you are a Sugar Pro this should be a quick buck for ya!

I would also like to install the sugaryCB Joomla extension on a site that already has Joomla installed:

http://extensions.joomla.org/extensions/bridges/crm-bridges/6023

There is a link on the homepage that will need to link to the login page of the CRM.

These should be really fast projects for someone who knows what they are doing.

I would like to get going on this pretty quickly so I plan to select a bidder soon.

Again, please only bid if you have experience with Sugar and Joomla. If not, please do not bid.

Feel free to ask any questions via the PMB.

Thanks!

Categories: Joomla, MySQL, Support Tags: , , , , , ,

Need 2 Articles Immediately

February 25th, 2010 Comments off

I need two articles written for me about sugar daddy dating promoting the sugar daddy dating lifestyle and sugar daddy dating sites. The articles need to be in spinnable format and produce 500-word articles that are 30% or more unique. Each sentence must be written in 3 different variations like in the following example:

{Sugar daddy dating websites have established themselves as the best way for people interested in mutually beneficial relationships to find their perfect partners.| More and more people looking to enter into mutually beneficial relationships are turning towards sugar daddy dating websites to find that special someone.| Sugar daddy dating website has been enjoying considerable popularity off late as they are being recognized by all who are seeking mutually beneficial relationships to be the best means to locate that perfect mate.}

Each sentence must be surrounded by curly brackets and each variation separated by a | (vertical bar).

Please include examples of your writing with your bid and be ready to get to work and finish these today. Thank you.

Need 2 Articles Today

February 15th, 2010 Comments off

Need 2 1500-words articles written immediately about weight loss.
This is actually 3 different versions of a 500-word whereas each sentence is written in 3 DIFFERENT variations, and surrounded by curly brackets and separated by vertical bars. The example below is from a sugar daddy dating article but you should be able to get the idea from this – each sentence needs to be sufficiently varied 3 different times:

{Have you ever thought about how easy life would be if you could find a sugar daddy that would look after your financial well-being?|Life would be much easier if you could find a sugar daddy who will take care of you|Without a doubt, if you could find a sugar daddy to spoil and pamper you and help with your bills, your life would be much easier}.

Please be ready to get to work right away. I need both of these articles done today. Also, please include an example of your writing.
Thank you.

Need 2 Articles Immediately 2

February 3rd, 2010 Comments off

Need 2 1500-words articles written immediately about sugar daddy dating.
This is actually 3 different versions of a 500-word whereas each sentence is written in 3 DIFFERENT variations, and surrounded by curly brackets and separated by vertical bars. For example:

{Have you ever thought about how easy life would be if you could find a sugar daddy that would look after your financial well-being?|Life would be much easier if you could find a sugar daddy who will take care of you|Without a doubt, if you could find a sugar daddy to spoil and pamper you and help with your bills, your life would be much easier}.

Please be ready to get to work right away. I need both of these articles done today. Also, please include an example of your writing.
Thank you.

Need 2 Articles Immediately

February 3rd, 2010 Comments off

Need 2 1500-words articles written immediately about sugar daddy dating.
This is actually 3 different versions of a 500-word whereas each sentence is written in 3 DIFFERENT variations, and surrounded by curly brackets and separated by vertical bars. For example:

{Have you ever thought about how easy life would be if you could find a sugar daddy that would look after your financial well-being?|Life would be much easier if you could find a sugar daddy who will take care of you|Without a doubt, if you could find a sugar daddy to spoil and pamper you and help with your bills, your life would be much easier}.

Please be ready to get to work right away. I need both of these articles done today. Also, please include an example of your writing.
Thank you.

Need 2 Articles Immediately

February 1st, 2010 Comments off

Need 2 1500-words articles written immediately about sugar daddy dating.
This is actually 3 different versions of a 500-word whereas each sentence is written in 3 DIFFERENT variations, and surrounded by curly brackets and separated by vertical bars. For example:

{Have you ever thought about how easy life would be if you could find a sugar daddy that would look after your financial well-being?|Life would be much easier if you could find a sugar daddy who will take care of you|Without a doubt, if you could find a sugar daddy to spoil and pamper you and help with your bills, your life would be much easier}.

Please be ready to get to work right away. I need both of these articles done today. Also, please include an example of your writing.
Thank you.

Sugar-wordpress Connector

January 29th, 2010 Comments off

The task is to find a connection between the Campaign Manager of SugarCRM and the cformsII – form editor plugin in wordpress.

Users of WordPress cformsII should have the following additional global settings parameter:
*) SugarCRM webservice URL
*) SugarCRM username (if required for SugarCRM Webservice)
*) SugarCRM password (if required for SugarCRM Webservice)

While defining a form in WordPress cformII, users can add an additional field of new type “SugarCRM Campaign” which should display in an pulldown list all the campaigns defined in SugarCRM.

When a user of the WordPress Website fills out any form containing a SugarCRM Campaign, the SugarCRM webservice should be called and a new lead should be passed to the CRM.

The WordPress admin page should also be registered in SugarCRMs Portal list.

This is the task for this single project.

Further extensions (administrative tasks) should also be considered as following projects.

Zencart/sugar Crm Integration

January 23rd, 2010 Comments off

I currently operate several zen cart websites and need a crm program to manage them effectively. Although there is a vtiger integration, I like the features of sugar crm and would like to work with a developer who is experienced with integrating sugarcrm with several zen cart websites.

Please reply with details and demo site is possible.

Simple Changes To Sugar Crm

December 11th, 2009 Comments off

I’m willing to pay 20-30 for this work.

I had sugar crm installed yesterday, I need the following done in the next few hours:

2. Create a New Module
a. The module should be called: Event
b. The key should be NEPO
c. This is basic module

3. Create a New Module
a. The module should be called: Athletes
b. The key should be NEPO
c. Athletes are People so use that as your basis
d. Athletes participate in events

4. Events are Run by Accounts so each event should be associated with 1 account

5. Accounts should be renamed to be Race Director
a. This should be changed everywhere

6. The Race Director Module needs a new Field that is a auto generated
a. The field should be called identifier
b. When an Race Director is saved the identifier should be filled in with:
Name of the Director +

Sugar Crm Tasks

October 12th, 2009 Comments off

Looking for a programmer who has experience with Sugar CRM. This project is for adding a few new fields added to Sugar which also must show in the Search functions. I also need a sample email created using merge fields from my Leads table. The programmer must also expain to me how to create new emails and email campaigns to send to a portion of my Leads. Thanks.

Categories: CMS Tags: , , , ,

Help With Sugar Crm

October 9th, 2009 Comments off

Looking for a programmer who has experience with Sugar CRM. This project is for adding a few new fields added to Sugar which also must show in the Search functions. I also need a sample email created using merge fields from my Leads table. The programmer must also expain to me how to create new emails and email campaigns to send to a portion of my Leads. Thanks.

Add New Fields To Sugar Crm

October 2nd, 2009 Comments off

I know this is a simple task, but I don’t have the time right now. I need some fields added to Sugar CRM system which also must show in the Search functions.

Categories: CMS Tags: , , , , , ,

Install Os Sugar

September 25th, 2009 Comments off

Need experienced open source programmer to install the open source version of Sugar onto my godaddy account. We want the basic features.

Candidate is responsible for install and set up. Set up configuration includes each of our clients being able to login and manage their own accuont.

Categories: Javascript Tags: ,

Sugar Open Source Install

September 25th, 2009 Comments off

Need to have the open source version of sugar installed on my GoDaddy hosting account. Candidate is responsible for install and set up of the basic features. May ask you to edit the theme as well.

Set up must allow our different clients to login to their respective account. View and manage their own account info. We however want to retain global access and control.

Sugar Crm Saas

September 22nd, 2009 Comments off

Dear developer,

I need to create Sugar CRM as a hosted service with sub domain[I'll use widecard (*.domain.com) sub domain]. For that I need the application database and sql queries updated with load balancing and speed.

Detailed proposal from genuine developers or companies anticipated.

Proposals without proper information is not replied. Please message me in private message board.

1. Database Enhancements
2. Access functionality update
3. Code standardization
4. Admin account.
5. Module Updates.
6. Domain / sub domain management.
7. module access
8. Theme management

Regards,
Chris

Create 50 Sample Meal Plans

August 17th, 2009 Comments off

Hi!

I am looking for someone who can create 50 sample meal plans for me based on the 7 days worth of sample meals I already have and the food list provided.

We will hire same person for a 2nd & 3rd list like this one with a different foods list and sample meal plans once we see the finished project.

Food list:

Protein Sources

Salesforce Theme For Sugar

July 22nd, 2009 Comments off

Design and implement a SugarCRM theme that will completely emulate the look and feel of Salesforce.com

Sugar Crm Clone

June 21st, 2009 Comments off

i want a website similar to sugar crm..almost all features mst b included

Categories: .NET, MySQL Tags: , , , ,

Sugarcrm Commu Installation

June 20th, 2009 Comments off

Installation of the Sugar CRM on my dedicated server.

This is my 1and1 Dedicated server (version Website : “complete service included”):
http://order.1and1.co.uk/xml/order/ServerPremiumDualCoreS;jsessionid=E6CE02F0D3A723138D784DD3CFC3DD3C.TC30b?__frame=_top&__lf=Static&ordernow=true&linkType=&linkOrigin=ServerPremium

Sugar Community Edition installation :
http://www.sugarcrm.com/crm/download/sugar-suite.html

I prefer a programmer with an experience with SugarCRM installation (Francais bienvenue).

Thank you.

Sugar Crm Programing 1

May 23rd, 2009 Comments off

php programing for sugar crm
graphics changes, add buisness logic , reports
100 hours

Fix Sugar Crm

May 20th, 2009 Comments off

I just installed SugarCRM, but files are missing and the software is not functioning properly. I need assistance.

Fix Php To Install Sugar Crm

May 20th, 2009 Comments off

I need this error to be fixed so I can finish installing Sugar CRM:

“The session.save_path setting in your php configuration file (php.ini) is not set or is set to a folder which did not exist. You might need to set the save_path setting in php.ini or verify that the folder sets in save_path exist.”

Vtiger Crm Or Sugar Crm

May 4th, 2009 Comments off

If you have implemented VTiger CRM or Sugar CRm we have a project we want to re brand VTIGER www.vtiger.com or SUGAR CRM www.sugarcrm.com we are going to do lots of customizations with it

Only if you have worked with VTiger or Sugar CRM please respond immediately any other expertise may not be entertained

Categories: ASP, Java, MySQL, PHP Tags: , , , ,

C Lemonade Stand

April 5th, 2009 Comments off

Here is what needs to be done. I have the skeleton code too which i have included right after the instructions. This program must compile in Dev C++ and it needs to be in the format in the instructions.

Objectives
1. Review use of if statements and loops.
2. Learn how to write functions given specifications.
3. Learn how to use pass by reference variables.
4. Learn how to put together a useful program given a skeleton of that program and the
functions and their specifications necessary in the implementation.

Problem: Lemonade Stand
Last summer your friend has a lemonade stand and made lots of money. You want to do the same! You have plenty of time to plan, so you thought you would be pre
pared when summer came around by writing a program to simulate your lemonade stand. The basic idea behind the simulation is as follows:

1) You will simulate 10 days of running the lemonade stand.
2) In the beginning the user gets a $20.00 loan to run the lemonade stand.
3) Before each day, the user gets an opportunity to buy bags of lemons and sugar.
4) At the beginning of each day the user receive a weather report.
5) Based on that, the user is asked to price a cup of lemonade for that day.
6) Then, the days sales are simulated. (Part of this is written for you.)
7) Afterwards, the user is prompted with a status report of how much money they have left and how many bags of lemons and sugar they have left.

What you have to do
A skeleton of the solution for this assignment is posted on WebCourses and the course web page. Please use this skeleton. You must fill in the seven functions that are left for you to fill in, as well as write the remainder of main so the program works as described above. After you write each function, you should test it before moving on. How to do this will be covered in class. Then, write your main, calling the necessary functions from it to achieve the desired functionality. main can work without declaring any new variables than the ones already declared. But, you may declare new ones if you wish.

Perhaps the biggest problem you will have will be not knowing when to make function calls. The goal of having these functions is to make the coding process more manageable. In particular, it is possible that a function might “do” something complicated, but that just really means that function makes calls to other functions that carry out a majority of that work already. In essence, if you write a function A to do a task, then don’t write out the code that also does that task in another function B. Instead call the function A from the body of function B.

References
Textbook: Chapters 9, 10, 11 Notes: Lectures 13, 14, 15, 17

Output Sample
Two full output samples of the program running will be provided on Webcourses and the course web page in the files lemonade.out and lemonade2.out.

Deliverables
You must submit your solution to the problem, lemonade.c, over WebCourses.

Restrictions
Although you may use other compilers, your program must compile and run using DevC++. Please use DevC++ to develop your program. Your program should include a header comment with the following information: your name, course number, section number, assignment title, and date. Also, make sure you include ample comments throughout your code describing the major steps in solving the problem.

Grading Details
Your program will be graded upon the following criteria:

1) Your correctness
2) Your programming style and use of white space. (Even if you have a plan and your program works perfectly, if your programming style is poor or your use of white space is poor you could get 10% or 15% deducted from your grade.)
3) Compatibility to DevC++. (If your program does not compile in this environment, you will get a sizable deduction from your grade, likely to be over 50%)

The code Skeleton:

#include <stdio.h>
#include <stdlib.h>
#include <time.h>

// Symbolic constants to be used.

// Prices of bags of sugar and lemon, respectively.
#define PRICE_LEMON 3.50
#define PRICE_SUGAR 2.00

// Fraction of a bag of lemons and sugar used on a single cup of lemonade.
#define LEMON_PER_CUP 0.03
#define SUGAR_PER_CUP 0.04

// The initial loan the user is given to start their lemonade stand.
#define START_MONEY 20.00

// Using symbolic constants for true and false.
#define FALSE 0
#define TRUE 1

void buy_lemons(double *pLemons, double *pMoney);
void buy_sugar(double *pSugar, double *pMoney);
int weather();
int num_cups_sold(int weather, int cost);
void status_report(double cash, double num_lemons, double num_sugar, int day);
int max_sell(double num_lemons, double num_sugar);
int get_cost();
void sell_cups(double *pMoney, double *pLemons, double *pSugar);
void end_message(double money);

int main() {

int num_day, ans;
double money = START_MONEY, num_lemons = 0, num_sugar = 0;

srand(time(0));

printf(“Welcome to the Game of Lemonade!nn”);
printf(“You start the game with $%.2lf and no supplies!n”, START_MONEY);

// Loop through each day. Ask the user if they want to buy lemons. If so,
// carry out the transaction. Then ask them if they want to buy sugar.
// If so, do this transaction as well. Then, let them sell lemonade for
// the day. Finally, print a status report after they’ve sold lemonade
// at the end of the day.
for (num_day = 1; num_day <= 10; num_day++) {

}

// Print out whether or not they have lost money, broke even or gained
// money.

return 0;
}

// Pre-conditions: pLemons and pMoney are pointers to variables that store
// the user’s number of bags of lemons left and amount of
// money left.
// Post-condition: The user is given the opportunity to buy lemons. If
// successful, the number of bags of lemons and the amount
// of money the user has are adjusted accordingly.
//
// What to do in this function: If the user doesn’t have enough money to
// even buy one bag of lemons, tell them so and return. Otherwise, ask
// the user how many bags of lemons they want to buy. If they answer less
// than one, tell them they must get more and reprompt them. If they
// answer more than they can buy, tell them they don’t have that much
// money and reprompt them. Continue prompting them until they answer with
// a valid value. Then process the transaction.

void buy_lemons(double *pLemons, double *pMoney) {

}

// Pre-conditions: pSugar and pMoney are pointers to variables that store
// the user’s number of bags of lemons left and amount of
// money left.
// Post-condition: The user is given the opportunity to buy sugar. If
// successful, the number of bags of sugar and the amount
// of money the user has are adjusted accordingly.
//
// What to do in this function: If the user doesn’t have enough money to
// even buy one bag of sugar, tell them so and return. Otherwise, ask
// the user how many bags of sugar they want to buy. If they answer less
// than one, tell them they must get more and reprompt them. If they
// answer more than they can buy, tell them they don’t have that much
// money and reprompt them. Continue prompting them until they answer with
// a valid value. Then process the transaction.

void buy_sugar(double *pSugar, double *pMoney) {

}

// Pre-condition: None
// Post-condition: The weather report for the day is printed and the
// corresponding weather status in between 1 and 5,
// inclusive, is returned.
int weather() {

// Get the weather status value.
int retval = rand()%5 + 1;

printf(“nHere is today’s weather forecast:n”);

// Print out the appropriate forecast for that status.n”);
if (retval == 1)
printf(“It is cloudy with a high chance of rain.n”);
else if (retval == 2)
printf(“It is partly cloudy and windy.n”);
else if (retval == 3)
printf(“It is partly sunny with low humidity.n”);
else if (retval == 4)
printf(“It is warm and sunny with medium winds.n”);
else
printf(“It’s a perfect beach day. Sunny and hot!n”);

return retval; // Return this status value.
}

// Pre-condition: weather is an integer in between 1 and 5, inclusive,
// standing for the weather status for the day. cost is
// the cost of a cup of lemonade in cents for that day.
// Post-condition: The number of cups of lemonade for that day is returned.
int num_cups_sold(int weather, int cost) {

int optimal_price, max_cups;
double max_income;

// Calculate a maximum revenue for the day.
max_income = 5 + 3*weather;
optimal_price = 15 + 5*weather;
max_income = max_income – fabs(optimal_price – cost)/1.5;

// If it’s lower than 5 dollars, reset it to 5 dollars.
if (max_income < 5)
max_income = 5;

// From this, determine the maximum number of cups that could be sold.
max_cups = (int)(max_income/((double)cost/100));

// Return a random number from 0 to this maximum.
return rand()%(max_cups+1);

}

// Pre-condition: cash is the amount of cash the user has, num_lemons is
// the number of bags of lemons the user has left, num_sugar
// is the number of bags of sugar the user has left, and day
// is which day of the game just finished.
// Post-condition: A status report with the four values passed in is nicely
// displayed for the user.
//
// What to do with this function: This is fairly self-explanatory from the
// pre and post conditions. Look to the sample given in the assignment for
// the format.
void status_report(double cash, double num_lemons, double num_sugar, int day) {

}

// Pre-condition: pMoney, pLemons and pSugar are pointers to the variables
// storing the user’s amount of cash, number of bags of
// lemons and number of bags of sugar.
// Post-condition: A day’s transactions will take place and the amount of
// money, the number of bags of lemons and sugar will be
// adjusted accordingly.
//
// What to do with this function: First prompt the user with the weather
// report. Then, ask the user for how much they want to sell a cup of
// lemonade. Determine the number of cups that actually get sold for the
// day by determining how many cups the user COULD sell based on the
// availability of supplies and how many cups they COULD sell based on the
// weather. Print out how many cups of lemonade they ended up selling.
// Then adjust the amount of money they have, as well as the number of bags
// of lemons and sugar.

void sell_cups(double *pMoney, double *pLemons, double *pSugar) {

}

// Pre-condition: num_lemons is the number of bags of lemons the user has,
// and num_sugar is the number of bags of sugar they have.
// Post-condition: The function returns the maximum number of cups of
// lemonade the user can sell based on available supplies.
//
// What to do with this function: Calculate how many full cups of lemonade
// you can supply with sugar. Do the same calculation for lemons. Then,
// return the smaller of these two values.

int max_sell(double num_lemons, double num_sugar) {

}

// Pre-condition: None.
// Post-condition: Returns the number of cents the user will sell a cup of
// lemonade for, for that day.
//
// What to do with this function: Prompt the user to enter how much they
// want to charge for a cup of lemonade. If they don’t enter a positive
// integer, reprompt them until they do. Then return this value.

int get_cost() {

}

// Pre-condition: money is the amount of money the user has left at the end
// of the 10 days of running their Lemonade Stand.
// Post-condition: The user’s overall loss or profit is printed out.

// What to do with this function: See if what they have left is less than
// what they started with. If so, print out how much the lost. If it’s equal
// just print out a message saying that they broke even. Otherwise, print
// out how much profit they made!

void end_message(double money) {

}

Categories: C/C++ Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Lemonade Stand

April 3rd, 2009 Comments off

Here is what needs to be done. I have the skeleton code too which i have included right after the instructions. This program must compile in Dev C++ and it needs to be in the format in the instructions.

Objectives
1. Review use of if statements and loops.
2. Learn how to write functions given specifications.
3. Learn how to use pass by reference variables.
4. Learn how to put together a useful program given a skeleton of that program and the
functions and their specifications necessary in the implementation.

Problem: Lemonade Stand
Last summer your friend has a lemonade stand and made lots of money. You want to do the same! You have plenty of time to plan, so you thought you would be pre
pared when summer came around by writing a program to simulate your lemonade stand. The basic idea behind the simulation is as follows:

1) You will simulate 10 days of running the lemonade stand.
2) In the beginning the user gets a $20.00 loan to run the lemonade stand.
3) Before each day, the user gets an opportunity to buy bags of lemons and sugar.
4) At the beginning of each day the user receive a weather report.
5) Based on that, the user is asked to price a cup of lemonade for that day.
6) Then, the days sales are simulated. (Part of this is written for you.)
7) Afterwards, the user is prompted with a status report of how much money they have left and how many bags of lemons and sugar they have left.

What you have to do
A skeleton of the solution for this assignment is posted on WebCourses and the course web page. Please use this skeleton. You must fill in the seven functions that are left for you to fill in, as well as write the remainder of main so the program works as described above. After you write each function, you should test it before moving on. How to do this will be covered in class. Then, write your main, calling the necessary functions from it to achieve the desired functionality. main can work without declaring any new variables than the ones already declared. But, you may declare new ones if you wish.

Perhaps the biggest problem you will have will be not knowing when to make function calls. The goal of having these functions is to make the coding process more manageable. In particular, it is possible that a function might “do” something complicated, but that just really means that function makes calls to other functions that carry out a majority of that work already. In essence, if you write a function A to do a task, then don’t write out the code that also does that task in another function B. Instead call the function A from the body of function B.

References
Textbook: Chapters 9, 10, 11 Notes: Lectures 13, 14, 15, 17

Output Sample
Two full output samples of the program running will be provided on Webcourses and the course web page in the files lemonade.out and lemonade2.out.

Deliverables
You must submit your solution to the problem, lemonade.c, over WebCourses.

Restrictions
Although you may use other compilers, your program must compile and run using DevC++. Please use DevC++ to develop your program. Your program should include a header comment with the following information: your name, course number, section number, assignment title, and date. Also, make sure you include ample comments throughout your code describing the major steps in solving the problem.

Grading Details
Your program will be graded upon the following criteria:

1) Your correctness
2) Your programming style and use of white space. (Even if you have a plan and your program works perfectly, if your programming style is poor or your use of white space is poor you could get 10% or 15% deducted from your grade.)
3) Compatibility to DevC++. (If your program does not compile in this environment, you will get a sizable deduction from your grade, likely to be over 50%)

The code Skeleton:

#include <stdio.h>
#include <stdlib.h>
#include <time.h>

// Symbolic constants to be used.

// Prices of bags of sugar and lemon, respectively.
#define PRICE_LEMON 3.50
#define PRICE_SUGAR 2.00

// Fraction of a bag of lemons and sugar used on a single cup of lemonade.
#define LEMON_PER_CUP 0.03
#define SUGAR_PER_CUP 0.04

// The initial loan the user is given to start their lemonade stand.
#define START_MONEY 20.00

// Using symbolic constants for true and false.
#define FALSE 0
#define TRUE 1

void buy_lemons(double *pLemons, double *pMoney);
void buy_sugar(double *pSugar, double *pMoney);
int weather();
int num_cups_sold(int weather, int cost);
void status_report(double cash, double num_lemons, double num_sugar, int day);
int max_sell(double num_lemons, double num_sugar);
int get_cost();
void sell_cups(double *pMoney, double *pLemons, double *pSugar);
void end_message(double money);

int main() {

int num_day, ans;
double money = START_MONEY, num_lemons = 0, num_sugar = 0;

srand(time(0));

printf(“Welcome to the Game of Lemonade!nn”);
printf(“You start the game with $%.2lf and no supplies!n”, START_MONEY);

// Loop through each day. Ask the user if they want to buy lemons. If so,
// carry out the transaction. Then ask them if they want to buy sugar.
// If so, do this transaction as well. Then, let them sell lemonade for
// the day. Finally, print a status report after they’ve sold lemonade
// at the end of the day.
for (num_day = 1; num_day <= 10; num_day++) {

}

// Print out whether or not they have lost money, broke even or gained
// money.

return 0;
}

// Pre-conditions: pLemons and pMoney are pointers to variables that store
// the user’s number of bags of lemons left and amount of
// money left.
// Post-condition: The user is given the opportunity to buy lemons. If
// successful, the number of bags of lemons and the amount
// of money the user has are adjusted accordingly.
//
// What to do in this function: If the user doesn’t have enough money to
// even buy one bag of lemons, tell them so and return. Otherwise, ask
// the user how many bags of lemons they want to buy. If they answer less
// than one, tell them they must get more and reprompt them. If they
// answer more than they can buy, tell them they don’t have that much
// money and reprompt them. Continue prompting them until they answer with
// a valid value. Then process the transaction.

void buy_lemons(double *pLemons, double *pMoney) {

}

// Pre-conditions: pSugar and pMoney are pointers to variables that store
// the user’s number of bags of lemons left and amount of
// money left.
// Post-condition: The user is given the opportunity to buy sugar. If
// successful, the number of bags of sugar and the amount
// of money the user has are adjusted accordingly.
//
// What to do in this function: If the user doesn’t have enough money to
// even buy one bag of sugar, tell them so and return. Otherwise, ask
// the user how many bags of sugar they want to buy. If they answer less
// than one, tell them they must get more and reprompt them. If they
// answer more than they can buy, tell them they don’t have that much
// money and reprompt them. Continue prompting them until they answer with
// a valid value. Then process the transaction.

void buy_sugar(double *pSugar, double *pMoney) {

}

// Pre-condition: None
// Post-condition: The weather report for the day is printed and the
// corresponding weather status in between 1 and 5,
// inclusive, is returned.
int weather() {

// Get the weather status value.
int retval = rand()%5 + 1;

printf(“nHere is today’s weather forecast:n”);

// Print out the appropriate forecast for that status.n”);
if (retval == 1)
printf(“It is cloudy with a high chance of rain.n”);
else if (retval == 2)
printf(“It is partly cloudy and windy.n”);
else if (retval == 3)
printf(“It is partly sunny with low humidity.n”);
else if (retval == 4)
printf(“It is warm and sunny with medium winds.n”);
else
printf(“It’s a perfect beach day. Sunny and hot!n”);

return retval; // Return this status value.
}

// Pre-condition: weather is an integer in between 1 and 5, inclusive,
// standing for the weather status for the day. cost is
// the cost of a cup of lemonade in cents for that day.
// Post-condition: The number of cups of lemonade for that day is returned.
int num_cups_sold(int weather, int cost) {

int optimal_price, max_cups;
double max_income;

// Calculate a maximum revenue for the day.
max_income = 5 + 3*weather;
optimal_price = 15 + 5*weather;
max_income = max_income – fabs(optimal_price – cost)/1.5;

// If it’s lower than 5 dollars, reset it to 5 dollars.
if (max_income < 5)
max_income = 5;

// From this, determine the maximum number of cups that could be sold.
max_cups = (int)(max_income/((double)cost/100));

// Return a random number from 0 to this maximum.
return rand()%(max_cups+1);

}

// Pre-condition: cash is the amount of cash the user has, num_lemons is
// the number of bags of lemons the user has left, num_sugar
// is the number of bags of sugar the user has left, and day
// is which day of the game just finished.
// Post-condition: A status report with the four values passed in is nicely
// displayed for the user.
//
// What to do with this function: This is fairly self-explanatory from the
// pre and post conditions. Look to the sample given in the assignment for
// the format.
void status_report(double cash, double num_lemons, double num_sugar, int day) {

}

// Pre-condition: pMoney, pLemons and pSugar are pointers to the variables
// storing the user’s amount of cash, number of bags of
// lemons and number of bags of sugar.
// Post-condition: A day’s transactions will take place and the amount of
// money, the number of bags of lemons and sugar will be
// adjusted accordingly.
//
// What to do with this function: First prompt the user with the weather
// report. Then, ask the user for how much they want to sell a cup of
// lemonade. Determine the number of cups that actually get sold for the
// day by determining how many cups the user COULD sell based on the
// availability of supplies and how many cups they COULD sell based on the
// weather. Print out how many cups of lemonade they ended up selling.
// Then adjust the amount of money they have, as well as the number of bags
// of lemons and sugar.

void sell_cups(double *pMoney, double *pLemons, double *pSugar) {

}

// Pre-condition: num_lemons is the number of bags of lemons the user has,
// and num_sugar is the number of bags of sugar they have.
// Post-condition: The function returns the maximum number of cups of
// lemonade the user can sell based on available supplies.
//
// What to do with this function: Calculate how many full cups of lemonade
// you can supply with sugar. Do the same calculation for lemons. Then,
// return the smaller of these two values.

int max_sell(double num_lemons, double num_sugar) {

}

// Pre-condition: None.
// Post-condition: Returns the number of cents the user will sell a cup of
// lemonade for, for that day.
//
// What to do with this function: Prompt the user to enter how much they
// want to charge for a cup of lemonade. If they don’t enter a positive
// integer, reprompt them until they do. Then return this value.

int get_cost() {

}

// Pre-condition: money is the amount of money the user has left at the end
// of the 10 days of running their Lemonade Stand.
// Post-condition: The user’s overall loss or profit is printed out.

// What to do with this function: See if what they have left is less than
// what they started with. If so, print out how much the lost. If it’s equal
// just print out a message saying that they broke even. Otherwise, print
// out how much profit they made!

void end_message(double money) {

}

Categories: C/C++ Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Lemonade

March 31st, 2009 Comments off

Objectives
1. Review use of if statements and loops.
2. Learn how to write functions given specifications.
3. Learn how to use pass by reference variables.
4. Learn how to put together a useful program given a skeleton of that program and the
functions and their specifications necessary in the implementation.

Problem: Lemonade Stand
Last summer your friend has a lemonade stand and made lots of money. You want to do the same! You have plenty of time to plan, so you thought you would be pre
pared when summer came around by writing a program to simulate your lemonade stand. The basic idea behind the simulation is as follows:

1) You will simulate 10 days of running the lemonade stand.
2) In the beginning the user gets a $20.00 loan to run the lemonade stand.
3) Before each day, the user gets an opportunity to buy bags of lemons and sugar.
4) At the beginning of each day the user receive a weather report.
5) Based on that, the user is asked to price a cup of lemonade for that day.
6) Then, the days sales are simulated. (Part of this is written for you.)
7) Afterwards, the user is prompted with a status report of how much money they have left and how many bags of lemons and sugar they have left.

What you have to do
A skeleton of the solution for this assignment is posted on WebCourses and the course web page. Please use this skeleton. You must fill in the seven functions that are left for you to fill in, as well as write the remainder of main so the program works as described above. After you write each function, you should test it before moving on. How to do this will be covered in class. Then, write your main, calling the necessary functions from it to achieve the desired functionality. main can work without declaring any new variables than the ones already declared. But, you may declare new ones if you wish.

Perhaps the biggest problem you will have will be not knowing when to make function calls. The goal of having these functions is to make the coding process more manageable. In particular, it is possible that a function might “do” something complicated, but that just really means that function makes calls to other functions that carry out a majority of that work already. In essence, if you write a function A to do a task, then don’t write out the code that also does that task in another function B. Instead call the function A from the body of function B.

References
Textbook: Chapters 9, 10, 11 Notes: Lectures 13, 14, 15, 17

Output Sample
Two full output samples of the program running will be provided on Webcourses and the course web page in the files lemonade.out and lemonade2.out.

Deliverables
You must submit your solution to the problem, lemonade.c, over WebCourses.

Restrictions
Although you may use other compilers, your program must compile and run using DevC++. Please use DevC++ to develop your program. Your program should include a header comment with the following information: your name, course number, section number, assignment title, and date. Also, make sure you include ample comments throughout your code describing the major steps in solving the problem.

Grading Details
Your program will be graded upon the following criteria:

1) Your correctness
2) Your programming style and use of white space. (Even if you have a plan and your program works perfectly, if your programming style is poor or your use of white space is poor you could get 10% or 15% deducted from your grade.)
3) Compatibility to DevC++. (If your program does not compile in this environment, you will get a sizable deduction from your grade, likely to be over 50%)

it has to be in pure c and i have a sample run of how the program should look when it runs and i have also included the skeleton of the program. thanks

Welcome to the Game of Lemonade!

You start the game with $20.00 and no supplies!

This is Day #1 for your Lemonade Stand.
Would you like to buy lemons?(Yes=1,No=0)
1
How many bags of lemons do you want to buy?
1
Would you like to buy sugar?(Yes=1,No=0)
1
How many bags of sugar do you want to buy?
1

Here is today’s weather forecast:
It is partly cloudy and windy.

How many cents will you sell a cup of lemonade for today?
30
You sold 15 cups of lemonade today.

Status report for day 1:
————————-
Cash Left: $19.00
Bags of Lemons Left: 0.55
Bags of Sugar Left: 0.40

This is Day #2 for your Lemonade Stand.
Would you like to buy lemons?(Yes=1,No=0)
1
How many bags of lemons do you want to buy?
1
Would you like to buy sugar?(Yes=1,No=0)
1
How many bags of sugar do you want to buy?
1

Here is today’s weather forecast:
It is cloudy with a high chance of rain.

How many cents will you sell a cup of lemonade for today?
25
You sold 8 cups of lemonade today.

Status report for day 2:
————————-
Cash Left: $15.50
Bags of Lemons Left: 1.31
Bags of Sugar Left: 1.08

This is Day #3 for your Lemonade Stand.
Would you like to buy lemons?(Yes=1,No=0)
0
Would you like to buy sugar?(Yes=1,No=0)
0

Here is today’s weather forecast:
It is cloudy with a high chance of rain.

How many cents will you sell a cup of lemonade for today?
40
You sold 9 cups of lemonade today.

Status report for day 3:
————————-
Cash Left: $19.10
Bags of Lemons Left: 1.04
Bags of Sugar Left: 0.72

This is Day #4 for your Lemonade Stand.
Would you like to buy lemons?(Yes=1,No=0)
1
How many bags of lemons do you want to buy?
1
Would you like to buy sugar?(Yes=1,No=0)
1
How many bags of sugar do you want to buy?
1

Here is today’s weather forecast:
It is partly cloudy and windy.

How many cents will you sell a cup of lemonade for today?
30
You sold 2 cups of lemonade today.

Status report for day 4:
————————-
Cash Left: $14.20
Bags of Lemons Left: 1.98
Bags of Sugar Left: 1.64

This is Day #5 for your Lemonade Stand.
Would you like to buy lemons?(Yes=1,No=0)
0
Would you like to buy sugar?(Yes=1,No=0)
1
How many bags of sugar do you want to buy?
1

Here is today’s weather forecast:
It is warm and sunny with medium winds.

How many cents will you sell a cup of lemonade for today?
40
You sold 2 cups of lemonade today.

Status report for day 5:
————————-
Cash Left: $13.00
Bags of Lemons Left: 1.92
Bags of Sugar Left: 2.56

This is Day #6 for your Lemonade Stand.
Would you like to buy lemons?(Yes=1,No=0)
1
How many bags of lemons do you want to buy?
1
Would you like to buy sugar?(Yes=1,No=0)
0

Here is today’s weather forecast:
It is cloudy with a high chance of rain.

How many cents will you sell a cup of lemonade for today?
35
You sold 10 cups of lemonade today.

Status report for day 6:
————————-
Cash Left: $13.00
Bags of Lemons Left: 2.62
Bags of Sugar Left: 2.16

This is Day #7 for your Lemonade Stand.
Would you like to buy lemons?(Yes=1,No=0)
0
Would you like to buy sugar?(Yes=1,No=0)
0

Here is today’s weather forecast:
It’s a perfect beach day. Sunny and hot!

How many cents will you sell a cup of lemonade for today?
40
You sold 44 cups of lemonade today.

Status report for day 7:
————————-
Cash Left: $30.60
Bags of Lemons Left: 1.30
Bags of Sugar Left: 0.40

This is Day #8 for your Lemonade Stand.
Would you like to buy lemons?(Yes=1,No=0)
0
Would you like to buy sugar?(Yes=1,No=0)
0

Here is today’s weather forecast:
It is partly sunny with low humidity.

How many cents will you sell a cup of lemonade for today?
20
You sold 9 cups of lemonade today.

Status report for day 8:
————————-
Cash Left: $32.40
Bags of Lemons Left: 1.03
Bags of Sugar Left: 0.04

This is Day #9 for your Lemonade Stand.
Would you like to buy lemons?(Yes=1,No=0)
1
How many bags of lemons do you want to buy?
1
Would you like to buy sugar?(Yes=1,No=0)
1
How many bags of sugar do you want to buy?
1

Here is today’s weather forecast:
It is warm and sunny with medium winds.

How many cents will you sell a cup of lemonade for today?
25
You sold 25 cups of lemonade today.

Status report for day 9:
————————-
Cash Left: $33.15
Bags of Lemons Left: 1.28
Bags of Sugar Left: 0.04

This is Day #10 for your Lemonade Stand.
Would you like to buy lemons?(Yes=1,No=0)
0
Would you like to buy sugar?(Yes=1,No=0)
0

Here is today’s weather forecast:
It is partly cloudy and windy.

How many cents will you sell a cup of lemonade for today?
35
You sold 0 cups of lemonade today.

Status report for day 10:
————————-
Cash Left: $33.15
Bags of Lemons Left: 1.28
Bags of Sugar Left: 0.04

You made a profit of $13.15 on your Lemonade Stand!

Bear