Write a program in c++ to insert a 9-digit variable and make 9-digit commas In a function alone, and calculate the cube of a number in another function of the same variable and the cube of the number for another variable using special functions, find from the same entry the number of years, months, days, hours, minutes and seconds in a function alone, and calculate a discount if you buy from a market with a number that does not exceed 23 pieces. 16% and other than that, the discount is 50% when preparing more than 23 pieces, for clarification (if you buy 25 pieces, then 23 will be deducted 16%, and the remaining 2 of 25 deductions will be fifty percent). Meters, using functions and make each function a function alone.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter6: User-defined Functions
Section: Chapter Questions
Problem 17PE
icon
Related questions
Question
Write a program in c++ to insert a 9-digit variable and make 9-digit commas
In a function alone, and calculate the cube of a number in another function of the same variable
and the cube of the number for another variable using special functions, find from the same entry the
number of years, months, days, hours, minutes and seconds in a function alone, and calculate a
discount if you buy from a market with a number that does not exceed 23 pieces. 16% and other than
that, the discount is 50% when preparing more than 23 pieces, for clarification (if you buy 25 pieces,
then 23 will be deducted 16%, and the remaining 2 of 25 deductions will be fifty percent). Meters,
using functions and make each function a function alone.
Transcribed Image Text:Write a program in c++ to insert a 9-digit variable and make 9-digit commas In a function alone, and calculate the cube of a number in another function of the same variable and the cube of the number for another variable using special functions, find from the same entry the number of years, months, days, hours, minutes and seconds in a function alone, and calculate a discount if you buy from a market with a number that does not exceed 23 pieces. 16% and other than that, the discount is 50% when preparing more than 23 pieces, for clarification (if you buy 25 pieces, then 23 will be deducted 16%, and the remaining 2 of 25 deductions will be fifty percent). Meters, using functions and make each function a function alone.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Function Arguments
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning