Answered step by step
Verified Expert Solution
Question
1 Approved Answer
***** c++ *****This is the 2nd part of the question I just previously posted about. With copyable code please. o Make sure the number of
***** c++ *****This is the 2nd part of the question I just previously posted about. With copyable code please.
o Make sure the number of digits after the decimal point is 2 digits and there is a $ sign in front of the number (for example, $12562.65 ) 9. Your program source code should be named "euidProject1.cpp", without the quotes. where euid should be replaced by your EUID. 10. Your program will be graded based largely on whether it works correctly on the CSE machines (e.g., cse01, cseO2, ..., Cse06), so you should make sure that your program compiles and runs on a CSE machine. DESIGN (ALGORITHM): On a piece of paper (or word processor), write down the algorithm, or sequence of steps, that you will use to solve the problem. You may think of this as a "recipe" for someone else to follow. Continue to refine your "recipe" until it is clear and deterministically solves the problem. Be sure to include the steps for prompting for input, performing calculations, and displaying output. You should attempt to solve the problem by hand first (using a calculator as needed) to work out what the answer should be for a few sets of inputs. Type these steps and calculations into a document (.e., Word, text, or PDF) that will be submitted along with your source code. Note that if you do any work by hand, images (such as pictures) may be used, but they must be clear and easily readable. This document shall contain both the algorithm and any supporting hand-calculations you used in verifying your results. Here are some sample outputs to help you write the code. The items in bold are entered by the user on the terminal as input data. SAMPLE OUTPUT 1 $./a.out Computer Science and Engineering CSCE 1030 - Computer Science I Student Name EUID euid@my.unt.edu Enter your name:John7 smith Your name can only have alphabets or spaces. Enter again. Enter your name: john c smits Your name can only have alphabets or spaces. Enter again. Enter your name: john c smith Enter your account number: 25689745 Your account number is a 6-digit number. Enter again:55 Your account number is a 6-digit number. Enter again: 123456 What is your account type?0 for Business, 1 for Personal:3 Wrong choice. Please enter again. What is your account type20 for Business, 1 for Personal:8 Wrong choice. Please enter again. What is your account type?0 for Business, 1 for Personal: 0 Enter transaction:2000 Business Balance: $12000 Do you want to process another transaction? Y/N:n Name: John C Smith Account Number (Encrypted): 394797 Business Balance: $12000.00 Personal Balance: $1000.00 SAMPLE OUTPUT 2 $ ./a.out | Computer Science and Engineering CSCE 1030 - Computer Science I Student Name EVID euidemy.unt.edu Enter your name:John Smith Enter your account number: 999999 What is your account type20 for Business, 1 for Personal:1 Enter transaction:-10000 Your personal balance cannot be less than minimum balance. Transaction denied. Personal Balance: $1000 Do you want to process another transaction? Y/N:n Name: John Smith Account Number (Encrypted): 27134 Business Balance:$10000.00 Personal Balance:$1000.00 SAMPLE OUTPUT 3 $ ./a.out 1 1 Computer Science and Engineering CSCE 1030 - Computer Science I Student Name EUID euid@my.unt.edu Enter your name: sheila HARRIS Enter your account number: 555555 What is your account type for Business, 1 for Personal: 0 Enter transaction:-50000 Business Balance: $-40000 Do you want to process another transaction? Y/N:y What is your account type?0 for Business, 1 for Personal: 0 Enter transaction:10000 Your balance is less than the required minimum. There will be a $10.00 fee for every transaction. Business Balance: $-30010 Do you want to process another transaction? Y/N:y What is your account type?0 for Business, 1 for Personal: 0 Enter transaction:-10000 Your balance is less than the required minimum. There will be a $10.00 fee for every transaction. Business Balance: $-40020 Do you want to process another transaction? Y/N:y What is your account type?0 for Business, 1 for Personal: 0 Enter transaction:100000 Your balance is less than the required minimum. There will be a $10.00 fee for every transaction. Business Balance: $59970 Do you want to process another transaction? Y/N:y What is your account type?0 for Business, 1 for Personal: 0 Enter transaction:5000 Business Balance: $64970 Do you want to process another transaction? Y/N:n Name: Sheila HARRIS Account Number (Encrypted): 851179 Business Balance: $64970.00 Personal Balance:$1000.00 SAMPLE OUTPUT 4 $ ./a.out Computer Science and Engineering CSCE 1030 - Computer Science I Student Name EUID euid@my.unt.edu 1 Enter your name:abcd efgh Enter your account number:100000 What is your account type?0 for Business, 1 for Personal: 0 Enter transaction:10000 Business Balance: $20000 Do you want to process another transaction? Y/N:y What is your account type?0 for Business, 1 for Personal:1 Enter transaction:2000 Personal Balance: $3000 Do you want to process another transaction? Y/N:n Name: Abcd Efgh Account Number (Encrypted): 371341 Business Balance: $20000.00 Personal Balance: $3000.00 TESTING: Test your program to check that it operates as desired with a variety of inputs. Then, compare the answers your code gives with the ones you get from hand calculations. SUBMISSION: o Make sure the number of digits after the decimal point is 2 digits and there is a $ sign in front of the number (for example, $12562.65 ) 9. Your program source code should be named "euidProject1.cpp", without the quotes. where euid should be replaced by your EUID. 10. Your program will be graded based largely on whether it works correctly on the CSE machines (e.g., cse01, cseO2, ..., Cse06), so you should make sure that your program compiles and runs on a CSE machine. DESIGN (ALGORITHM): On a piece of paper (or word processor), write down the algorithm, or sequence of steps, that you will use to solve the problem. You may think of this as a "recipe" for someone else to follow. Continue to refine your "recipe" until it is clear and deterministically solves the problem. Be sure to include the steps for prompting for input, performing calculations, and displaying output. You should attempt to solve the problem by hand first (using a calculator as needed) to work out what the answer should be for a few sets of inputs. Type these steps and calculations into a document (.e., Word, text, or PDF) that will be submitted along with your source code. Note that if you do any work by hand, images (such as pictures) may be used, but they must be clear and easily readable. This document shall contain both the algorithm and any supporting hand-calculations you used in verifying your results. Here are some sample outputs to help you write the code. The items in bold are entered by the user on the terminal as input data. SAMPLE OUTPUT 1 $./a.out Computer Science and Engineering CSCE 1030 - Computer Science I Student Name EUID euid@my.unt.edu Enter your name:John7 smith Your name can only have alphabets or spaces. Enter again. Enter your name: john c smits Your name can only have alphabets or spaces. Enter again. Enter your name: john c smith Enter your account number: 25689745 Your account number is a 6-digit number. Enter again:55 Your account number is a 6-digit number. Enter again: 123456 What is your account type?0 for Business, 1 for Personal:3 Wrong choice. Please enter again. What is your account type20 for Business, 1 for Personal:8 Wrong choice. Please enter again. What is your account type?0 for Business, 1 for Personal: 0 Enter transaction:2000 Business Balance: $12000 Do you want to process another transaction? Y/N:n Name: John C Smith Account Number (Encrypted): 394797 Business Balance: $12000.00 Personal Balance: $1000.00 SAMPLE OUTPUT 2 $ ./a.out | Computer Science and Engineering CSCE 1030 - Computer Science I Student Name EVID euidemy.unt.edu Enter your name:John Smith Enter your account number: 999999 What is your account type20 for Business, 1 for Personal:1 Enter transaction:-10000 Your personal balance cannot be less than minimum balance. Transaction denied. Personal Balance: $1000 Do you want to process another transaction? Y/N:n Name: John Smith Account Number (Encrypted): 27134 Business Balance:$10000.00 Personal Balance:$1000.00 SAMPLE OUTPUT 3 $ ./a.out 1 1 Computer Science and Engineering CSCE 1030 - Computer Science I Student Name EUID euid@my.unt.edu Enter your name: sheila HARRIS Enter your account number: 555555 What is your account type for Business, 1 for Personal: 0 Enter transaction:-50000 Business Balance: $-40000 Do you want to process another transaction? Y/N:y What is your account type?0 for Business, 1 for Personal: 0 Enter transaction:10000 Your balance is less than the required minimum. There will be a $10.00 fee for every transaction. Business Balance: $-30010 Do you want to process another transaction? Y/N:y What is your account type?0 for Business, 1 for Personal: 0 Enter transaction:-10000 Your balance is less than the required minimum. There will be a $10.00 fee for every transaction. Business Balance: $-40020 Do you want to process another transaction? Y/N:y What is your account type?0 for Business, 1 for Personal: 0 Enter transaction:100000 Your balance is less than the required minimum. There will be a $10.00 fee for every transaction. Business Balance: $59970 Do you want to process another transaction? Y/N:y What is your account type?0 for Business, 1 for Personal: 0 Enter transaction:5000 Business Balance: $64970 Do you want to process another transaction? Y/N:n Name: Sheila HARRIS Account Number (Encrypted): 851179 Business Balance: $64970.00 Personal Balance:$1000.00 SAMPLE OUTPUT 4 $ ./a.out Computer Science and Engineering CSCE 1030 - Computer Science I Student Name EUID euid@my.unt.edu 1 Enter your name:abcd efgh Enter your account number:100000 What is your account type?0 for Business, 1 for Personal: 0 Enter transaction:10000 Business Balance: $20000 Do you want to process another transaction? Y/N:y What is your account type?0 for Business, 1 for Personal:1 Enter transaction:2000 Personal Balance: $3000 Do you want to process another transaction? Y/N:n Name: Abcd Efgh Account Number (Encrypted): 371341 Business Balance: $20000.00 Personal Balance: $3000.00 TESTING: Test your program to check that it operates as desired with a variety of inputs. Then, compare the answers your code gives with the ones you get from hand calculations. SUBMISSIONStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started