• 06-02-2018, 12:29:31
    #1
    Arkadaşlar kuzenim yurtdışında ve aşağıdaki bilgilerle benden yardım istedi C++ ile ilgili pek bilgim yok yardımcı olabilecekler var mı aramızda?
    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
    1. Name, address, telephone number of the restaurant at the top and centered in the output.
    2. A 'Welcome' message on a line by itself.
    3. Date, Time and Order Number on their own line.
    4. Up to 3 lines for items ordered and their cost - 'A Sandwich', 'M Fries', and 'M Soda'.
    5. 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.
    6. A line that will display the 'Tax' to be added.
    7. A line that will show the 'Total' of the bill.
    8. Finally a goodbye message line asking the user to visit again - again it should be centered.
    9. All item names, discount, total labels should be left aligned.
    10. All money values should be right aligned, should show as only 2 decimal places and should be aligned at the decimal.
    11. You can define values for #1, 2, 3 and 8 in your program.
    12. 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%.
    13. The name of the items ordered, discount, tax and total should be how they are shown in quotes in #4 thru 7.
    14. Declare variables for the costs of the three items, the discount, the tax and the total.
    15. Run your program 4 times as follows making sure that only 1 of each item can be ordered -
      1. For the first run, sandwich is ordered with fries
      2. For the second run, sandwich is ordered with soda
      3. For the third run, fries and soda are ordered
      4. For the fourth run, all 3 are ordered.
    16. Name your project, cpp, image and zip files as 'CIS22AS17_yourname.*' where * is the extension.
    17. Remember to include your name block and pseudocode block at the top of the file before the code.
    18. Also, sprinkle comments in code where you want to highlight anything - do not write comments for each line of code.
    19. 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.
    20. Do not use any concepts outside of Chapters 1 thru 4 in the textbook, otherwise your grade will face deductions.
  • 06-02-2018, 12:37:31
    #2
    Kimlik doğrulama veya yönetimden onay bekliyor.
    hocam solution dosyasının içini koymuşsunuz. classların olduğu kodları göndermesi gerekiyor ki yardım edecek arkadaşlar yazdığı kodu görebilsin.
  • 06-02-2018, 12:40:09
    #3
    Potanski adlı üyeden alıntı: mesajı görüntüle
    hocam solution dosyasının içini koymuşsunuz. classların olduğu kodları göndermesi gerekiyor ki yardım edecek arkadaşlar yazdığı kodu görebilsin.
    İstedim şimdi teşekkürler bilgilendirme için. Geldiğinde ekleyeceğim konuya.