Please write a c++ programming code that can work on codechum according to the instructions below. Mario's Pizza by CodeChum Admin It’s me, Mario! I got a part-time job as a pizza chef because plumbing isn’t enough to pay the bills anymore. Pizza making is great and all but a lot of customers come in and try to negotiate the price with me. I don’t wanna take away options from them so I decided to make a pizza size for every amount as long as they pay greater than or equal to 1 peso and the amount they paid is an odd (not even) amount. Unfortunately, I wasn’t able to get programming education because I spent my youth collecting mushrooms! Oh, Coding Hero, please help your favorite Italian plumber/pizza chef by creating an algorithm that decides pizza size depending on the amount they paid! Input 1. Amount of pesos paid Constraints The amount is >= 1 and is odd. Output The first line will contain a message prompt to input the amount of pesos paid. The succeeding lines will contain the pizza with the size based on the amount the customer paid. Enter·the·amount·of·pesos·paid:·3 *** ·*
Please write a c++
Mario's Pizza
by CodeChum Admin
It’s me, Mario! I got a part-time job as a pizza chef because plumbing isn’t enough to pay the bills anymore. Pizza making is great and all but a lot of customers come in and try to negotiate the price with me. I don’t wanna take away options from them so I decided to make a pizza size for every amount as long as they pay greater than or equal to 1 peso and the amount they paid is an odd (not even) amount. Unfortunately, I wasn’t able to get programming education because I spent my youth collecting mushrooms! Oh, Coding Hero, please help your favorite Italian plumber/pizza chef by creating an
Input
1. Amount of pesos paid
Constraints
The amount is >= 1 and is odd.
Output
The first line will contain a message prompt to input the amount of pesos paid.
The succeeding lines will contain the pizza with the size based on the amount the customer paid.
Enter·the·amount·of·pesos·paid:·3
***
·*
Step by step
Solved in 4 steps with 2 images