Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Sorry to bother but I have a problem doing this Project I wonder if there is someone who can help me I will appreciate. Thank

Sorry to bother but I have a problem doing this Project I wonder if there is someone who can help me I will appreciate. Thank you

Project Money PREPARATION

Complete Lab#3 & Lab#4

Review up through Week4 (pay attention to tips on repetition with do-while, conditional statements, character variables)

GOALS

Basic use of the C++ (GNU g++) compiler and basic C++ commands and syntax

Practice algorithm creation and transfer to pseudocode in the form of comments

Practice translating pseudocode to C++ code

Practice basic compiling, debugging, and testing skills

PRACTICE using the following C++ concepts & constructs:

o math expressions and assignment;

o formatted output o NEW: use of character type char, along with integers & doubles;

o NEW: do while looping construct (see class notes) for repetition, and compound conditional statement (using or || and equivalency == )

o NEW: setting directory permissions with chmod o NEW: use of diff -y and redirection of standard output >

ACTIVITY

1. SPECIFICATIONS & ALGORITHM CREATION:

Extend Lab4 (Simple Change Calculator), by adding an option for the user to repeat the task with new inputs. Your program should allow the user to repeat entering data by entering 'y' or 'Y' when prompted. See Sample Output below, for specifics on expected prompt, labels, and spacing. SAMPLE OUTPUT and calculated results (for TEST 1 inputs):

RRENNER/csci111/projects/p1> ./p1

blank line ---->

Please enter the number of quarters, dimes, and nickels in your pocket: 2 3 4

you have $1.00

would you like to go again (y/n)? y

blank line ----->

please enter the number of quarters, dimes, and nickels in your pocket: 20 30 50

you have $10.50

would you like to again (y/n)? n

blank line ------->

RRENER/csci111/projects/p1>

2. DIRECTORY: create a project subdirectory - set the permissions to read, write, execute for user (owner) only, using chmod command (reference Lab Session notes).

3. TESTING on jaguar (reference Lab Session notes)

a) Interactive run, using Test 1 inputs (2 3 4 y 20 30 50 n)

b) Redirection using < t01.in (provided input file), and > your_outfile

c) Comparison of your generated output file to t01.out , using diff -y

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions