7. Section A (5 points) a. Debugging process: Minimum element was initially zero, which resulted in a wrong output. Using the debugger to check how For-Loop iterated, I found the initial problem of min = 0 that caused IF statement to be always False. Thus, I changed min=0; to min=num[0] and the program begun to work perfect. 8. Section B (15 points) a. Debugging process: When I used the debugger, I found the code was not shrinking the image. The For-loop was not functioning, so that I changes the variable to smaller.length. Moreover, I multiplied the variables of i and j by two, which made the image size down ¼ of the original size. However, the colors were fading away because of my changes of coding. By using the debugger, I fund that my For-loop had the wrong …show more content…
After running this program, an error message appeared when the number of people became zero. The computer did not accept the division when the number of cookies was divided by zero (min=0). Moreover, the numbers of leftover cookies were wrong when I used the debugger. Because the calculation of cookiesLeft was not correct, I made the following change. cookiesLeft = numCookies – numPeople cookiesLeft=numCookies – numPeople*cookiesPerPeople 10. Section D (10 points) a. Debugging process: When I first ran the coding, the program was not working. Using the debugger, I found out that the program was not reading the file. By looking into the variables, I noticed that the some data were missing. The following is the list of my correction to fix the coding. -Declared the Strings to print outside of IF statement, added IF statement to check if the data were missing, and then, set the missing data to “-“. -Worked on month and dayNum by declaring the variables first. Checked if third index is empty, then set empty data to “-“. Else, filled the variables with the correct
So I set out to find the cookie scoop to fulfill my dreams of excellent cookies that were of all uniform size. When I started to scour the stores I soon found that it was going to be a pretty penny for me to find one that would fit the bill. I would also have to turn my gaze from the easily approachable aisle of Walmart to the aisle of some posh culinary boutique. I was even brave enough to step into one particular ‘french’ cooking boutique
Genetics and DNA provide the structure for living and in a social context in our everyday experiences in the world. By giving us a better understanding on describing human evolution. I believe that both genetics and DNA has challenged my conception of what it means to be human. The reason being is that throughout time science has been able to use technology that allows people to use genetics and DNA to create what they would call a “perfect human”. By that I mean a couple who is unable to conceive can get to a sperm bank and literally pick and choose how they want their child to look like. Another thing science has been able to do is cloning of others.
The third error I noticed was that I did not clearly marked how each step was taken throughout the process. I just draw line without indicating from one step to the next which doesn’t show a good quality.
I chose this ethical dilemma as I believe it offers a chance to employ both individualistic and communal approaches in the solution. The individualistic approach would be appropriate for use with Jessica to address her personal behavior. The communal approach would be appropriate to address all of the employees, who are acting essentially as a community, as some of them also took unsold perishable items.
In my project, there are numerous assumptions and limitations that are being handled in the pseudo code. First of all, this program is only designed to calculate the average age of all the family members that the user will input. There is no other calculation that the program has been designed to do. Secondly, the program does not give the user any option or chance to return to inputting more family members if they forgot to do so at the beginning. This program was not designed to have a set limit to how many inputs the user could enter. This list could keep going on and on. This program is created to calculate and display both the Average age of family Members and the residents who live in Texas. If the user wanted to display just one of the results, the user would have to do the whole program just to get one of the results. This is being handled by the pseudo code only being able to handle the calculations that are set. The user does not have the ability to let the program know how many family members will be entered before the user begins. To handle that, the Count function is being used in the psuedocode to obtain the correct output.
Have you ever wondered what happened if you take butter out in a cookie recipe and substituted other butter substitutes, such as Greek yogurt, applesauce, and canola oil? Well, that is what I am going to talk about today. What happens when you use these substitutes and most importantly, why I used these products. In this project, I cooked a regular cookie dough recipe. I then cooked three more cookie dough recipes but I took out the butter in all of them, and used greek yogurt applesauce, and canola oil. Then I put an equal ten scoops on each baking sheet that is the same and put it in the oven, and then I took them out and measured the width and depth of the cookies.
Cookie Run: OvenBreak - a fascinating runner for Android, which will explore the mysterious world of the earth cookies.
Even though the experiments we did generally supported our hypothesis, as we understood from the graph, there were points which aren’t even close to best fit line. Random errors in this experiment may cause this aberration such as our point of view. Also, we didn’t include the weight of the strings, which might also affect the accuracy of the calculations.
The current iteration is denotes by $t$, The position of selected $j-th$ antlion at $t-th$ iteration and $i-th$
Ever cookies are the worst form of zombie cookies. By creating a JavaScript file on your computer, these cookies will replicate themselves in many places on your
" << endl << endl; cout << "\t A B C D"; for (int i = 0; i < p; i++) { cout << endl << "\tP" << i << ":"; for (int j = 0; j < 4; j++) { cout << max[i][j] << " "; } cout << endl; } //Need matrix cout << endl << " The Need Matrix is... " << endl << endl; cout << "\t A B C D"; for (int i = 0; i < p; i++) { cout << endl << "\tP" << i << ":"; for (int j = 0; j < 4; j++) { cout << need[i][j] << " "; } cout << endl; } //available matrix cout << endl << "The Available Vector is..." << endl << endl; cout << "A B C D" << endl; for (int i = 0; i < 4; i++) { cout << aval[i] << " "; } //safe state int k = 0;
Another problem is the alignment of the build platform. It is generally observed that the alignment of the platform is not as it is after getting a certain number of printouts. The same needs to realign before giving the final print command. This may happen often so user should not get complacent.
you can do it without the “=” and the num variable before the equals sign in order to change it temporarily
As you can see we have deliberately made an error in the code (in red). Now lets see what happens when we run this code using the console. You can start the