Assignment 01 in CSE 1502 Spring 2005: Introduction to Software Development with C++, Assignments of Computer Science

Assignment 1 for the cse 1502 spring 2005 course, which introduces students to software development using c++. The assignment requires students to write a program that takes in the number of pennies, nickels, dimes, and quarters as inputs and computes the total value in dollars and cents. There are no validations on inputs, and the program should display the output as 'the value of the money entered is: [dollars].[cents]'. The test values provided are for 7 pennies, 6 nickels, 9 dimes, and 3 quarters.

Typology: Assignments

Pre 2010

Uploaded on 08/01/2009

koofers-user-8cs
koofers-user-8cs 🇺🇸

10 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CSE 1502 Spring 2005
Introduction to Software Development with C++
Instructor: Venkatesh Ramamoorthy
Assignment 1 (Turn in by FRIDAY 04-Feb-2005)
Write a program that takes in the number of pennies, nickels, dimes and quarters, and
computes the total value, in Dollars, of the money input.
Inputs to the program
a) Enter the number of pennies
b) Enter the number of nickels
c) Enter the number of dimes
d) Enter the number of quarters
Validations on inputs
There will be no validations in this program. (As an exercise, what validations can
you think of?)
Outputs from the program
The program computes the total value of the money input above. It displays the
output as follows (using 7 pennies, 6 nickels, 9 dimes and 3 quarters, for example):
The value of the money entered is: 2 Dollars, 2 cents
Test values
For 7 pennies, 6 nickels, 9 dimes and 3 quarters, the total value of the money entered
should be 2 Dollars and 2 cents.
Project Name
This assignment should be submitted in the Project Name assignment01
File Name
Please turn in your .cpp file saved as assignment01.cpp

Partial preview of the text

Download Assignment 01 in CSE 1502 Spring 2005: Introduction to Software Development with C++ and more Assignments Computer Science in PDF only on Docsity!

CSE 1502 Spring 2005 Introduction to Software Development with C++ Instructor: Venkatesh Ramamoorthy Assignment 1 (Turn in by FRIDAY 04-Feb-2005) Write a program that takes in the number of pennies, nickels, dimes and quarters, and computes the total value, in Dollars, of the money input. Inputs to the program a) Enter the number of pennies b) Enter the number of nickels c) Enter the number of dimes d) Enter the number of quarters Validations on inputs There will be no validations in this program. (As an exercise, what validations can you think of?) Outputs from the program The program computes the total value of the money input above. It displays the output as follows (using 7 pennies, 6 nickels, 9 dimes and 3 quarters, for example): The value of the money entered is: 2 Dollars, 2 cents Test values For 7 pennies, 6 nickels, 9 dimes and 3 quarters, the total value of the money entered should be 2 Dollars and 2 cents. Project Name This assignment should be submitted in the Project Name assignment File Name Please turn in your .cpp file saved as assignment01.cpp