using c++ language c) Write a C++ program to convert a cat's age in cat's years when
Fantastic news! We've Found the answer you've been seeking!
Question:
using c++ language
Transcribed Image Text:
c) Write a C++ program to convert a cat's age in cat's years when age is taken as input in human's years. [5] Note: For first two years, a cat's year is equal to 10.5 human years. After that, each cat year equals 4 human years. Expected Outputs: 1) Input a cat's age in human years: 15 The cat's age in cat's years is 73 2) Input a cat's age in human years: 3 The cat's age in cat's years is 25 3) Input a cat's age in human years: 1 The cat's age in cat's years is 11.5 c) Write a C++ program to convert a cat's age in cat's years when age is taken as input in human's years. [5] Note: For first two years, a cat's year is equal to 10.5 human years. After that, each cat year equals 4 human years. Expected Outputs: 1) Input a cat's age in human years: 15 The cat's age in cat's years is 73 2) Input a cat's age in human years: 3 The cat's age in cat's years is 25 3) Input a cat's age in human years: 1 The cat's age in cat's years is 11.5
Expert Answer:
Posted Date:
Students also viewed these programming questions
-
A tape player has three operations: play, fast forward and fast play. Play and fast forward are activated using the play and fast forward button respectively. These operations can be cancelled using...
-
On a beautiful spring morning in 2015, Stephen Lowber, chief financial officer of Cutter and Buck, Inc., slowly arose from his bed, walked across the bedroom floor, and gazed out the window. It was a...
-
A grandfather clock has a pendulum that consists of a thin brass disk of radius r = 15.00 cm and mass 1.000 kg that is attached to a long thin rod of negligible mass. The pendulum swings freely about...
-
What is the difference between collision and comprehensive physical damage coverages?
-
Pacific Hotels operates a centralized call center for the reservation needs of its hotels. Costs associated with use of the center are charged to the hotel group (luxury, resort, standard, and...
-
Problem 2 (12 Points ) The following items were shown on the balance sheet of ELO Corporation on December 31, 2021 : Stockholders' equity Paid -in capital Capital stock Common stock , $5 par value ,...
-
Write down a script for count down and count down is going to start from 30 and when number Reaches at 1. It displays a message "Happy New Year". Use loops to find out solution. For example 6 2 Happy...
-
Established in 2009, Uber provides an alternative to taxicab service in 460 cities and nearly 60 countries worldwide. The trick? Their mobile application for smartphones allows riders to arrange for...
-
During the coding phase of the program development life cycle, what is meant by the module implementation and integration strategy? Briefly explain the nature of a threads module implementation and...
-
Discuss and compare the role that ED1 and the Internet will play in facilitating communication between supply chain partners.
-
List seven major steps in the conduct of program testing.
-
Discuss the rationalization for ERP implementation by firms involved in supply chain management.
-
Dawson City begins a capital projects fund during its fiscal year ended June 30, 2021. The budgetary entry is omitted. Record the following transactions in the capital projects fund (entries for any...
-
Government is advised to tax goods whose demand curves are inelastic if the goal is to raise tax revenues. If the goal is to discourage consumption, then it ought to tax goods whose demand curves are...
-
Many employers offer 401(k) retirement savings plans as an employee benefit. Many companies match a certain percentage of each employees deposits in the plan.
-
Justify a corporations decision to split its stock when the stock price has risen significantly.
-
Investors purchase common stock as a way to increase their income. As stockholders, they earn the right to vote on company business.
![Mobile App Logo](https://dsd5zvtm8ll6.cloudfront.net/includes/images/mobile/finalLogo.png)
Study smarter with the SolutionInn App