Fiş yapmaya çalışıyorlarmış ama discount bölümünde takılmış..
İlettiği mesaj şu şekilde:
Abi selam dosya bu discount yapabildim ama bunu if bide else geciremedim
aşağıdaki liste gibi yapmaya calisiyorum ama 4 kere nasil calistirmam gerek anlamadim
Kodlar
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27130.2026
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Project24", "Project24\Project24.vcxproj", "{F1AACFAC-FFF1-4EB4-BF9E-4F40BF2FE07A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{F1AACFAC-FFF1-4EB4-BF9E-4F40BF2FE07A}.Debug|x64.ActiveCfg = Debug|x64
{F1AACFAC-FFF1-4EB4-BF9E-4F40BF2FE07A}.Debug|x64.Build.0 = Debug|x64
{F1AACFAC-FFF1-4EB4-BF9E-4F40BF2FE07A}.Debug|x86.ActiveCfg = Debug|Win32
{F1AACFAC-FFF1-4EB4-BF9E-4F40BF2FE07A}.Debug|x86.Build.0 = Debug|Win32
{F1AACFAC-FFF1-4EB4-BF9E-4F40BF2FE07A}.Release|x64.ActiveCfg = Release|x64
{F1AACFAC-FFF1-4EB4-BF9E-4F40BF2FE07A}.Release|x64.Build.0 = Release|x64
{F1AACFAC-FFF1-4EB4-BF9E-4F40BF2FE07A}.Release|x86.ActiveCfg = Release|Win32
{F1AACFAC-FFF1-4EB4-BF9E-4F40BF2FE07A}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {9F51A7F4-5AEF-44A6-A6C0-89AB6937AA3A}
EndGlobalSection
EndGlobalİstedikleri aşamalar şunlar- Name, address, telephone number of the restaurant at the top and centered in the output.
- A 'Welcome' message on a line by itself.
- Date, Time and Order Number on their own line.
- Up to 3 lines for items ordered and their cost - 'A Sandwich', 'M Fries', and 'M Soda'.
- A line that will display a 'Combo Meal' discount - the discount will be 5% if sandwich is ordered with either fries or soda or the discount will be 10% if all three are ordered.
- A line that will display the 'Tax' to be added.
- A line that will show the 'Total' of the bill.
- Finally a goodbye message line asking the user to visit again - again it should be centered.
- All item names, discount, total labels should be left aligned.
- All money values should be right aligned, should show as only 2 decimal places and should be aligned at the decimal.
- You can define values for #1, 2, 3 and 8 in your program.
- For the cost of sandwich, fries and/or soda as well as the tax rate as a percent --> define cost of sandwich as 5.69, cost of fries as 1.99, cost of drink as 1.79 and tax rate as 10%.
- The name of the items ordered, discount, tax and total should be how they are shown in quotes in #4 thru 7.
- Declare variables for the costs of the three items, the discount, the tax and the total.
- Run your program 4 times as follows making sure that only 1 of each item can be ordered -
- For the first run, sandwich is ordered with fries
- For the second run, sandwich is ordered with soda
- For the third run, fries and soda are ordered
- For the fourth run, all 3 are ordered.
- Name your project, cpp, image and zip files as 'CIS22AS17_yourname.*' where * is the extension.
- Remember to include your name block and pseudocode block at the top of the file before the code.
- Also, sprinkle comments in code where you want to highlight anything - do not write comments for each line of code.
- Zip your CPP file and 4 screenshots into one ZIP file and upload for submission. Take care to follow submission instructions carefully (especially Mac users) or you will lose points.
- Do not use any concepts outside of Chapters 1 thru 4 in the textbook, otherwise your grade will face deductions.