Answered step by step
Verified Expert Solution
Question
1 Approved Answer
write a cobol program on below requirement . Given the following three values total number of maximum chocolates you can eat. 1 . Money you
write a cobol program on below requirement Given the following three values total number of maximum chocolates you can eat.
Money you have to buy the chocolates.
Price: price of a chocolate.
wrap number of wrapers to be returned for getting one extra chocolate.
all are positive integers and greathan
Please write cobol program and test for inputs and give outputs also.
example:
Money
Price
Wrap
output
explanation : but and eat chocolates.
return wrapers and get more chocolates because for every wrapers they will get chocolate
eat chocolates and give wrapers and hold wrapers with you.
eat chocolate and give wrapers old current wrapers
get more chocolate.
so total
using cobol ACCEPT verb. please test using online compiler also test throughly
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started