C++ Personal Software Process Spreadsheet fill-in. Hello there, there is a progr
ID: 3840161 • Letter: C
Question
C++ Personal Software Process Spreadsheet fill-in.
Hello there, there is a program I made for my class assignment that relates to various recursion functions.
This code is already completed, but I was supposed to write a PSP spreadsheet as I build up my program.
I'm asking you to simply fill in my PSP spreadsheet with your own imagination and actual results since I dont quite understand the concept of the PSP..
It just needs to make sense so you can just make things up for estimates.
Here is the code for my completed recursion testing program:
------------------------------------
#include <iostream>
#include <string>
using std::string;
int sum_evens(unsigned int n);
int multiply(unsigned int a, unsigned int b);
int smallest(int* arr, int length);
bool is_palindrome(string s);
bool is_element_of(int i, int* array, int length);
bool is_subset(int* a, int length_a, int* b, int length_b);
int main() {
using std::cin;
using std::cout;
int a; // testing sum_evens
cout << "-- Sum of all even numbers " << std::endl;
cout << "Enter any number" << std::endl;
cin >> a;
cout << sum_evens(a) << std::endl;
int aa; //multiplication using addition.
int bb;
cout << "Enter two integers to multiply" << std::endl;
cin >> aa >> bb;
cout << multiply(aa,bb) << std::endl;
int c[] = {3,5,2,1,5};
cout << smallest(c,5) << std::endl;
//tests is_palindrome(string s);
string d;
cout << "-- Testing if a word is a palindrome --"
cout << "Enter a word" << std::endl;
getline(cin, d);
if(is_palindrome(d)== true)
cout << d << " is a palindrome." << std::endl;
else
cout << d << " is not a palindrome." << std::endl;
// tests functions 7 and 8
int x[] = {5, 2, 1};
int y[] = {1,2,5,1,2};
bool istrue = is_subset(x,3,y,5);
cout << "int x[] = {5,2,1} " << std::endl;
cout << "int y[] = {1,2,5,1,2} " << std::endl;
if(istrue)
cout << "All elements of array x are in array y" << std::endl;
else
cout << "One or more elements of array x are not in array y" << std::endl;
}
int sum_evens(unsigned int n){
if(n == 0)
return 0;
if(n % 2 == 0)
return n + sum_evens(n - 2);
else
return sum_evens(n - 1);
}
int multiply(unsigned int a, unsigned int b){
if(b == 0)
return 0;
if(b == 1)
return a;
else
return a + multiply(a, b - 1);
}
int smallest(int* arr, int length){
if(length == 1)
return arr[0];
length--;
return smallest(arr + (arr[0] > arr[length]) , length);
}
bool is_palindrome(string s){
if(s.length() < 2)
return true;
if(s[0] != s[s.length() - 1])
return false;
return true;
}
bool is_element_of(int i, int* array, int length){
if(length < 0)
return false;
if(array[length] == i)
return true;
else
return is_element_of(i, array, length - 1);
}
bool is_subset(int* a, int length_a, int* b, int length_b){
if(length_a < 0)
return true;
if(!is_element_of(a[length_a], b, length_b))
return false;
else
return is_subset(a, length_a - 1, b, length_b);
return true;
}
-------------------------------------------------
And below is the spreadsheet I ask you to fill in.
(fields that you should fill in are highlighted in light blue)
I am keep getting trolled in this Q&A section and I know that there are many experts that really have passion in helping students in this website.
If you don't think you understand my question, please skip it.
I desperately need expert-level help on this assignment.
Thank you in advance.
Final LOC/Hour Program Size (LOC) Created A Lines Final LOC Time in Phase (min) Planning Design Code Compile Test Postmortem TOTAL Defects injected Planning Design Code Compile Test TOTAL Estimate #DIV/0! Estimate (estimated) (estimated) Estimate Estimate Actual #DIV/0! Actual (counted) (counted) (counted) Actual ActualExplanation / Answer
PROGRAM SIZE LOC ESTIMATE ACTUAL CREATED 120 120 LINES 200 TIME IN PHASE (MIN) PLAN PLANNING 20 DESIGN 60 CODE 60 CODE REVIEW 30 COMPILE 15 TEST 15 POSTMORTEM 20 TOTAL 220 DEFECT INJECTED /HOUR ESTIMATE PLANNING 1.76 DESIGN 0.11 CODE 4.20 COMPILE 0.60 TEST 0.38 TOTAL 7.05 DEFECTS REMOVED / HOUR ESTIMATE PLANNING 0.10 DESIGN 2.96 CODE 0.51 COMPILE 15.84 TEST 2.21 TOTAL 21.62
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.