Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using basic c++ write a separate code for the following problems. 3. Conversion from Kilograms to Pounds both for and while loops Write a program

Using basic c++ write a separate code for the following problems.

3. Conversion from Kilograms to Pounds both for and while loops

Write a program that converts kilograms to pounds. Start from 1 kg and displays up to 200kgs but in steps of 2.

1kg = 2.2 pounds

Output:

Kilograms Pounds

------------------------

1 2.2

3 6.6

5 11.0

7 15.4

4. Financial Application

Suppose the tuition for a university is $10,000 this year and increases 5% every year. In one year it will be 10,500. Write a program that displays the tuition in 10 years, and total cost of four years worth of tuition after the tenth year.

Output

Tuition in 1 years is 10500

Tuition in 2 years is 11025

Tuition in 3 years is 11576.2

Tuition in 4 years is 12155.1

Tuition in 5 years is 12762.8

Tuition in 6 years is 13401

Tuition in 7 years is 14071

Tuition in 8 years is 14774.6

Tuition in 9 years is 15513.3

Tuition in 10 years is 16288.9

The four-year tuition after ten years is 70207.4

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 Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions