应用介绍
此项目是餐饮项目。
本人在下方展示了一小段代码,想了解更多请下载附件。
#include <iostream>
#include <string>
#include <iomanip>
#include <cmath>
using namespace std;
int main()
{
string NameOfEvent, CustomerName; // Name of Event + Customer Name
double NumberOfGuests; // Number of Guests in attendance
int NumberOfMinutes; // Number of Minutes in the event
// Information input (Events name and amounts)
cout << "Enter the name of the event " << endl;
getline(cin, NameOfEvent);
cout << "Enter the customer's first and last name " << endl;
getline(cin, CustomerName);
cout << "Enter the number of guests " << endl;
cin >> NumberOfGuests;
cout << "\n\nEnter the number of minutes in the event " << endl;
cin >> NumberOfMinutes;
cout << "Fall Dinner " << endl;
cout << "Event estimate for " << CustomerName << endl;
int NumberOfServers, Cost1;
double CostForOneServer,Test, TotalFoodCost, AverageCost, Cost2, DepositAmount,TotalCost;
const double CostPerHour = 18.50;
const double CostPerMinute = .40;
const double CostOfDinner = 20.70;
// Get Number Of Servers
Test = NumberOfGuests / 20;
NumberOfServers = ceil(Test);
©版权声明:本文内容由互联网用户自发贡献,版权归原创作者所有,本站不拥有所有权,也不承担相关法律责任。如果您发现本站中有涉嫌抄袭的内容,欢迎发送邮件至: www_apollocode_net@163.com 进行举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。
转载请注明出处: apollocode » 餐饮项目
文件列表(部分)
名称 | 大小 | 修改日期 |
---|---|---|
餐饮的项目.cpp | 0.75 KB | 2020-04-21 |
发表评论 取消回复