Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write the c++ program for the following question . You cannot use any break switch continue go to statement . Note use only nested loop

Write the c++ program for the following question . You cannot use any break switch continue go to statement . Note use only nested loop for the following questions image text in transcribed
Question 1: You often need to convert Rupees into coins of 5, 2, and 1. Your task is to develop a C++ program to compute a mix of coins of 5, 2 and 1 against the given amount of money. Remember that you may not always have enough coins. So the program should be able to covert the money into the coins available. For example, if you don't have the coins of 5-rupees, then for 7 rupees the program should compute a mix of 2-rupees and 1-rupee coins. At start the program should take input total number of 5-rupees, 2-rupees and 1-rupee coins available. The program should display the amount of money in terms of numbers of 5-rupees coins, 2-rupees coins and 1-rupee coins, if possible with the available set of coins. Otherwise print the message "Sorry!! No such combination exists. Question 2: Draw following Pattens for any positive values provided by user as input Hexagone Cross Sign to Print: Arrow Downword Flower Pattern Stud to Print: Enter Character ress any key to continue ress any key te continue

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_2

Step: 3

blur-text-image_3

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

Database Security

Authors: Alfred Basta, Melissa Zgola

1st Edition

1435453905, 978-1435453906

More Books

Students also viewed these Databases questions