Lab2B - COSC1415/COSC1436 Chapter 2B Lab Assignment Page 1...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
COSC1415/COSC1436 Chapter 2B - Lab Assignment Page 1 of 1 Name Chintu Patel 8001 COSC1415/COSC1436 Chapter 2 Lab – Part B Use the introductory lab and previous labs as a reference. Objective: At the end of this lab you should know how to: 1. prompt and get input from the user. 2. use integer division and the modulus operator. 3. organizes a program into an input section, processing section and output section 4. write a program that is easy to read, uses meaningful variable names, and produces output that is properly labeled .and understandable to any reader. Lab 2B: 1. Go to the C++ compiler and create a new project and program file. Write a program that prompts the user to input the elapsed time for an event in seconds. The program should output the elapsed time in hours, minutes, and seconds. (For example, if the elapsed time is 9630 seconds, then the output is 2 : 40 : 30.) Add a cout statement at the beginning of your program that says: This program written by: <your name> Run your program with 9630. Run your program again with 3636.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/06/2008 for the course COSC 1436 taught by Professor May during the Spring '08 term at Dallas Colleges.

Page1 / 5

Lab2B - COSC1415/COSC1436 Chapter 2B Lab Assignment Page 1...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online