Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

estion 1 Ahmed went to buy chocolate from Carrefour, the price for one chocolate is AED 12. Write a java program to ask the user

image text in transcribed
estion 1 Ahmed went to buy chocolate from Carrefour, the price for one chocolate is AED 12. Write a java program to ask the user to enter the number of chocolates he wants to buy the calculate the final price he should pay, Then your program should check the final price to tell the customer the following if final price is less than AED 25 then print (You will not receive a free gift Otherwise check if final price is between AED 25 and AED 50 then print: (You will receive a small free gift) Otherwise print (You will receive a big free gift) WTRO ALTFN. 10 (Mac)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases And Information Systems 1 International Baltic Conference Dbandis 2020 Tallinn Estonia June 19 2020 Proceedings

Authors: Tarmo Robal ,Hele-Mai Haav ,Jaan Penjam ,Raimundas Matulevicius

1st Edition

303057671X, 978-3030576714

More Books

Students also viewed these Databases questions