Software Engineering
Background for Question 1-7: Kean University is planning on doing away with the parking permits used previously and moving towards a “pay as you go” system employing price elasticity (i.e., the parking price will change based on current demand for that particular parking garage at a particular time). In such a system, each parking space will be fitted with an RFID sensor to detect if the spot is being used and each parking garage will have a number of parking pass kiosk systems that will allow a user to purchase a ticket for a requested period of time. To determine the parking price, the kiosk will determine the current system usage (i.e., the demand for parking in all parking garages across campus as well as the kiosk’s home garage) and utilize historical parking demand data for that time period. Users will be able to pay for their parking using a credit card or their KU Card.
Your company has won the contract and you will lead the entire project. Answer the following questions based on the background.
Hint:Only giving the name of the process model will not get any grade.
Hint: Non-measurable non-functional requirements will not get any grade.
Hint: Make sure it is consistent with your use case specification in Question 5.
Hint: Only giving the name of the architectural style will not get any grade.
Hint: you can paste screenshots when describing your example.
publicstaticvoid computeSD (int [ ] numbers)
{
intlength = numbers.length;
doublevar, sd, mean, sum, varsum;
sum = 0;
for (inti = 0; i<length; i++)
{
sum += numbers [ i ];
}
mean = sum / (double) length;
varsum = 0;
for (inti = 0; i<length; i++)
{
varsum = varsum + ((numbers [ i ] – mean) * (numbers [ i ] – mean));
}
var = varsum / ( length – 1.0 );
sd = Math.sqrt ( var );
System.out.println (“standard deviation: ” + sd);
}
Based on the program’s control flow graph below, answer the following questions.
Hint: Not providing expected outputs will get 1 point deduction.Not matching test paths with their corresponding input/output will get 1 point deduction.
Hint: Not providing expected outputs will get 2 points deduction. Not matching test paths with their corresponding input/output will get 2 points deduction.