# Final Project (CS 200)

Anonymous
account_balance_wallet \$30

Question Description

I need organization into one document file for final project in class. It must include pseudocode or flowchart from short paper assignment, 'code with annotations' from milestone 1, and activity from milestone 2. Please read over rubric that is provided and add to activities as needed, Most of the work is already done but the personal reflection needs to be added to and formatted. Personal reflection that I have started is in milestone 2. This assignment is just going over my assignments make sure it foolows the rubric and adding to my personal reflection. Please read rubric before starting this. Personal reflection must be 2 pages, double spaced. Note: this class was taught for python code.

Short Paper: Flowchart and Psuedocode Painting a Wall: Obtain height of the wall Obtain width of the wall Obtain wall area of the wall Obtain red paint Calculate Height of Wall in ft. Height = 12ft. If height is greater than expected Obtain more paint If not Continue Calculate width of the wall in ft. Width = 15ft. If width is greater than expected Obtain more paint If not Continue Calculate amount of paint Amount needed = 0.5142857142857142 gallons ( 1 can ) If amount paint is greater than Area of the Wall Proceed to paint If Not Obtain More Paint When making the flowchart and pseudocode, I found that the flowchart was easier to make. It was easier to visually explain what is going on than simply typing the instructions. I am more of a bit of a visual learner, so the flowchart seemed easier to follow. The challenges that I faced was the organizing the inputs/output. I needed to make sure that reader could visually understand the process and inputs and produced the correct output. The pseudocode was a little tricky because I had to break down the code into normal language and make sure it was understandable. Creating a flowchart and/or pseudocode can help the programmer understand what the code needs to function properly and output desired result. Skipping this step may lead to mistakes and take the programmer longer to complete program.
Flowchart Flowchart made using creately.com a using activity Automobile Service Invoice Zybooks activity 4.10. Code with Annotations #Establish service types and costs #Best Practice keeping it beautiful with proper indentations and simple is better than complex using a dictionary list to call later in output service_schedule = { "-": 0, "Oil change" : 35, "Tire rotation" : 19, "Car wash" : 7, "Car wax": 12 } #Output a menu of automotive services and the corresponding cost of each service. print("Davy's auto shop services") print("Oil change -- \$35") print("Tire rotation -- \$19") print("Car wash -- \$7") print("Car wax -- \$12") print("") #Prompt the user for two services from the menu. first_service = input("Select first service: \n") print("") second_service = input("Select second service: \n\n") print("") #Output invoice from selected service using if/else statement to print if no service requested #Best practice is keeping it simple with proper indentations for readability and easy implementation #Output an invoice for the services selected. print("Davy's auto shop invoice\n") #print("\n") #Allow the user to enter a dash (-), which indicates no service Service 1. if(first_service == "-"): print("Service 1: No service") #Output the cost for each service else: print("Service 1: %s, \$%d" % (first_service, service_schedule.get(first_service))) #Allow the user to enter a dash (-), which indicates no service for Service 2. if(second_service == "-"): print("Service 2: No service\n") #Output the cost for each service else: print("Service 2: %s, \$%d\n" % (second_service, service_schedule.get(second_service)) ) #Calculate total cost invoice_total = service_schedule.get(first_service) + service_schedule.get(second_service) #Output of the total cost. print("Total: \$%d" % (invoice_total)) Analysis of Activity The way to do this activity was to go simple and use the dictionary list to call on the list and use it for the output in the code. Also not utilizing a lot of other functions that would complicate it. I felt would that using a easy if/else statement that could print out no service or service requested kept it simple. Adding the dash was difficult at first but I just added to the dictionary list as zero amount, so if dash is added the calculation for total would be east to print out.
Milestone Two Code with Annotations #Establish service types and costs #Best Practice keeping it beautiful with proper indentations and simple is better than complex using a dictionary list to call later in output service_schedule = { "-": 0, "Oil change" : 35, "Tire rotation" : 19, "Car wash" : 7, "Car wax": 12 } #Output a menu of automotive services and the corresponding cost of each service. print("Davy's auto shop services") print("Oil change -- \$35") print("Tire rotation -- \$19") print("Car wash -- \$7") print("Car wax -- \$12") print("") #Prompt the user for two services from the menu. first_service = input("Select first service: \n") print("") second_service = input("Select second service: \n\n") print("") #Output invoice from selected service using if/else statement to print if no service requested #Best practice is keeping it simple with proper indentations for readability and easy implementation #Output an invoice for the services selected. print("Davy's auto shop invoice\n") #print("\n") #Allow the user to enter a dash (-), which indicates no service Service 1. if(first_service == "-"): print("Service 1: No service") #Output the cost for each service else: print("Service 1: %s, \$%d" % (first_service, service_schedule.get(first_service))) #Allow the user to enter a dash (-), which indicates no service for Service 2. if(second_service == "-"): print("Service 2: No service\n") #Output the cost for each service else: print("Service 2: %s, \$%d\n" % (second_service, service_schedule.get(second_service)) ) #Calculate total cost invoice_total = service_schedule.get(first_service) + service_schedule.get(second_service) #Output of the total cost. print("Total: \$%d" % (invoice_total))

LESTER_PRO
School: UC Berkeley

Hello check the paper and in case of anything inform please

Final Project (CS 200)

Final Project (CS 200)
STUDENT’S NAME
COURSE TITLE
DATE: December 22, 2017

1

Final Project 2

Part 1: input/output activity

Algorithm

Painting a Wall:

Obtain height of the wall

Final Project 3
Obtain width of the wall
Obtain wall area of the wall
Obtain red paint
Calculate Height of Wall in ft.
Height = 12ft.
If height is greater than expected
Obtain more paint
If not
Continue
Calculate width of the wall in ft.
Width = 15ft.
If width is greater than expected
Obtain more paint
If not
Continue
Calculate amount of paint
Amount needed = 0.5142857142857142 gallons ( 1 can )

If amount paint is greater than Area of the Wall
Proceed to paint
If Not
Obtain More Paint

Final Project 4
Explanation

When making the flowchart and pseudocode, I found that the flowchart was easier to make. It
was easier to visually explain what is going on than simply typing the instructions. I am more of
a bit of a visual learner, so the flowchart seemed easier to follow. The challenges that I faced was
the organizing the inputs/output. I needed to make sure that reader could visually understand the
process and inputs and produced the correct output. The pseudocode was a little tricky because I
had to break down the code...

flag Report DMCA
Review

Anonymous
Good stuff. Would use again.

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors