Lab Assignment 1: Ime-603 Introduction To Computing
Lab Assignment 1: Ime-603 Introduction To Computing
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.