
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
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
1 / 1
This page cannot be seen from the preview
Don't miss anything!

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