Spread the word.

Share the link on social media.

Share
  • Facebook
Have an account? Sign In Now

Sign Up

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have permission to ask a question, You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here
Sign InSign Up

SIKSHAPATH

SIKSHAPATH Logo SIKSHAPATH Logo

SIKSHAPATH Navigation

  • Home
  • Questions
  • Blog
    • Computer Science(CSE)
    • NPTEL
    • Startup
  • Shop
    • Internshala Answers
Search
Ask A Question

Mobile menu

Close
Ask A Question
  • Home
  • Questions
  • Blog
    • Computer Science(CSE)
    • NPTEL
    • Startup
  • Shop
    • Internshala Answers
Home/ Questions/Q 18629
In Process

SIKSHAPATH Latest Questions

Hacker
  • 0
  • 0
Hacker
Asked: June 12, 20232023-06-12T22:28:00+05:30 2023-06-12T22:28:00+05:30In: C++

Shoprite is a grocery shop that has outlets nationwide. They give discounts to customers …

  • 0
  • 0

Shoprite is a grocery shop that has outlets nationwide. They give discounts to customers who buy products in bulk. For a given number of products their discounts are as follows:

Quantity Discount
0 – 20No discount
More than 2010%
More than 3015%
More than 4020%
More than 5030%


They are planning to get a computerised system which automates calculation of total amount due for a given number of products.

  1. Based on the above scenario, design a solution for Shoprite using a flowchart.
  2. Based on the outcome of Question 3.1, create a C++ program using Visual Studio. Your program must enter the quantity of products then compute the discount based on the quantity and output the total amount due.
cpp
  • 2 2 Answers
  • 239 Views
  • 0 Followers
  • 0
Answer
Share
  • Facebook

    2 Answers

    • Voted
    • Oldest
    • Recent
    1. I'M ADMIN
      I'M ADMIN
      2022-06-12T12:52:07+05:30Added an answer on June 12, 2022 at 12:52 pm
      This answer was edited.

      CODE:

      //VISIT SIKSHAPATH.IN FOR MORE
      #include<iostream>
      using namespace std;
      
      int main()
      {
      int qty,price;
      float discount,total;
      cout<<"Enter Quatity:";
      cin>>qty;
      cout<<"Enter the Price:";
      cin>>price;
      if(qty<20)
      discount=0;
      else if(qty<30)
      discount=0.1;
      else if(qty<40)
      discount=0.15;
      else if(qty<50)
      discount=0.2;
      else
      discount=0.3;
      total=qty*price;
      discount=discount*total;
      cout<<"Total amount used:"<<total<<endl;
      cout<<"Eligibile discount:"<<discount<<endl;
      total=total-discount;
      cout<<"Grand Total:"<<total<<endl;
      }

      Follow us on Social Media
      twitterwhatsapp
        • 0
      • Reply
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    2. I'M ADMIN
      I'M ADMIN
      2023-08-13T15:54:00+05:30Added an answer on August 13, 2023 at 3:54 pm

      Download the Flowchart From the Below Attachment Link:

       

        • 0
      • Reply
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    3. I'M ADMIN
      I'M ADMIN
      2023-08-13T15:55:14+05:30Added an answer on August 13, 2023 at 3:55 pm

      Click on below attachment link to Download the Flowchart

        • 0
      • Reply
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    4. I'M ADMIN
      I'M ADMIN
      2023-08-13T15:57:42+05:30Added an answer on August 13, 2023 at 3:57 pm
      This answer was edited.

      Click on the below link to download flowchart:

      Attachment

        • 0
      • Reply
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn

    Leave an answer
    Cancel reply

    You must login to add an answer.

    Forgot Password?

    Need An Account, Sign Up Here

    Sidebar

    store ads

    Stats

    • Questions 1k
    • Answers 1k
    • Posts 149
    • Best Answers 89
    • This Free AI Tool Translates Entire Books in Minute !
    • AI News: 🎬 Hollywood’s AI Studios, 🎓 OpenAI’s Latest Gift to Educators, 🚚 Class8 Bags $22M, 🧠 Google Gemini’s Memory Upgrade
    • AI NEWS: Legal Action Against OpenAI, $16M Paid, & Elon Musk’s Praise from Investor 🤖💰📑 | AI Boosts Cloud Seeding for Water Security 🌱💧
    • AI News: 🎬AI Video Tool Scam Exposed🤯, 🛰️ AI-Powered Drones to Ukraine 😱, Google’s $20M AI Push, Sam Altman Joins SF’s Leadership Team
    • AI News: 🤝 Biden Meets Xi on AI Talks, 💡 Xavier Niel’s Advice for Europe, ♻️ Hong Kong’s Smart Bin Revolution, 🚀 AI x Huawei

    Explore

    • Recent Questions
    • Questions For You
    • Answers With Time
    • Most Visited
    • New Questions
    • Recent Questions With Time

    Footer

    SIKSHAPATH

    Helpful Links

    • Contact
    • Disclaimer
    • Privacy Policy Notice
    • TERMS OF USE
    • FAQs
    • Refund/Cancellation Policy
    • Delivery Policy for Sikshapath

    Follow Us

    © 2021-24 Sikshapath. All Rights Reserved

    Insert/edit link

    Enter the destination URL

    Or link to existing content

      No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.