0% found this document useful (0 votes)
57 views1 page

Lab Assignment 1: Ime-603 Introduction To Computing

The document provides instructions for a computing lab assignment involving writing C++ programs to perform currency, unit, and interest conversions. The first part asks students to write a program that continuously prompts the user to select and input values for converting between USD to INR, miles to kilometers, or Fahrenheit to Celsius. The second part asks students to write a program that calculates and displays the balance of a bank account after 5 years of quarterly compound interest at 8%, formatting the output to 2 decimal places and also in octal and hexadecimal formats.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views1 page

Lab Assignment 1: Ime-603 Introduction To Computing

The document provides instructions for a computing lab assignment involving writing C++ programs to perform currency, unit, and interest conversions. The first part asks students to write a program that continuously prompts the user to select and input values for converting between USD to INR, miles to kilometers, or Fahrenheit to Celsius. The second part asks students to write a program that calculates and displays the balance of a bank account after 5 years of quarterly compound interest at 8%, formatting the output to 2 decimal places and also in octal and hexadecimal formats.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Indian Institute of Technology Kanpur Department of Industrial and Management Engineering

IME-603 INTRODUCTION TO COMPUTING


Semester I, 20122013

Lab assignment 1
Due Date: 17/08/12, Beginning of the Lab Note: 1. The code should be properly indented and legible. 2. Fcous on the quality of the code, logic and understanding of the language. 3. One submission per group. You are free to consult on-line resources, books and lecture notes. 4. Get your assignment graded by Deepthi or Sandeep in time. 1. (5 points) Write a complete program in c++ containing the following convertors: a. USD to INR, user input: conversion rate and USD to be converted b. Miles to KM, user input: miles c. Farenhite to Celcius, user input: Tempreture in Farenhite

Your program should first ask the user the conversion required followed by required input. Your output should give suffcient details. Your program should run forever waiting for an input. 2. (5 Points) You plan to start a bank account and your bank compounds the interest quarterly at an interest rate of 8%. Input the principal amount and find out how much money you have at the end of fifth year? (Assume that you do not add or withdraw any money from the account). Since the bank is required to print the amount on the cheques, the amount should be displayed in the format XXXXX.XX (i.e. 2 places after the decimal) Write a program to perform the above calculation. Also display results in octal and hexadecimal formats.

You might also like