print("This application is intended to assist you, the Project Manager in determining if your clause 31 or 32 programme is in accordance with the NEC requirements\n") print("Firstly, please begin by answering the below questions:\n") Project_Name = input("Project name: ") Programme_Clause = input("Is this a clause 31 or 32 programme? ") Programme_Name = input("Programme name: ") Date_Programme_Received = input ("Date programme was received for acceptance: ") Reviewed_by = input ("Project Manager name: ") print("\nThe " + Programme_Name + " submitted for acceptance for the " + Project_Name + " project must meet the following clause 31.3 requirements for the Project Manager to accept:\n") Programme_Requirements = ["The Contractor's plans must be practicable", "The " + Programme_Name + " must show the information which the contract requires", "The " + Programme_Name + " must represent the Contractor's plans realistically", "and the " + Programme_Name + " programme must comply with the Scope"] for requirement in Programme_Requirements: print(f"[{requirement}]") print("\nWe will now review each bullet points listed above:\n") Contractors_plans_practicable = input("Are the Contractor's plans practicable? (yes/no): ") if Contractors_plans_practicable.lower() in ["yes", "ye", "yeah", "ye", "yep"]: print("The " + Programme_Name + " meets the requirements of clause 31.3, bullet point 1.") else: comment = input("Please comment why the Contractor's plans are not practicable:\n") print("\nBullet Point 2 - " + Programme_Name + " must show the information which the contract requires:\n\nPlease answer the following questions with a yes, no or N/A if the question is not relevant to your particular project.\n") # Define the list of questions Clause_31_Requirements = ["Starting date:", "Access Date:", "Key Dates:", "Completion Date:", "Planned Completion:", "Order and timing of the operations:", "Order and timing of the work of the Client and Others:", "The dates when the Contractor plans to meet each condition stated for the Key Dates:", "Float:", "Time risk allowances:", "Health and safety requirements:", "The procedures set out in the contract:", "Dates of when access to a part of the site is required if later than the Access Date:", "Acceptances:", "Plant and materials and other things to be provided by the Client:", "Information from Others", "Contractor's resources:", "Other information which the Scope requires the Contractor to show:", "Does the programmed activites relate to the Activity Schedule:"] # ask user for yes/no answers to questions all_yes = True for requirement in Clause_31_Requirements: answer = input(f"{requirement} (yes/no or N/A): ") if answer.lower() not in ["yes", "ye", "yeah", "yep"] and answer.lower() != "n/a": all_yes = False # set compliance result based on answers if all_yes: print("The " + Programme_Name + " meets the requirements of clause 31.3, bullet point 2.") Clause_compliance_yes = "yes" else: print(f"The {Programme_Name} does not meet the requirements of clause 31.3, bullet point 2.") Clause_compliance_no = "no" Contractor_plans_realistic = input("\nAre the Contractor's plans realistic?\n") if Contractor_plans_realistic.lower() in ["yes", "ye", "yeah", "ye", "yep"]: print("The " + Programme_Name + " meets the requirements of clause 31.3, bullet point 3.") else: comment = input("Please comment why the Contractor's plans are not practicable:\n") Scope_complicance = input ("\nDoes the programme comply with the Scope?\n") if Scope_complicance.lower() in ["yes", "ye", "yeah", "ye", "yep"]: print("The " + Programme_Name + " meets the requirements of clause 31.3, bullet point 3.") else: comment = input("Please comment why the Contractor's plans are not practicable:\n") #Summarising the results of the user's inputs valid_yes_inputs = ["yes", "yep", "yeah", "yeah", "ye"] if Contractors_plans_practicable.lower() in valid_yes_inputs and all_yes and Contractor_plans_realistic.lower() in valid_yes_inputs and Scope_complicance.lower() in valid_yes_inputs: print("\nThe " + Programme_Name + " for the " + Project_Name + " project is accepted as it meets all requirements of clause 31.3. ") else: print("\nThe " + Programme_Name + " for the " + Project_Name + " project is not accepted as it does not meet all the requirements of clause 31.3. Please refer to the notes above for the reasons for non-acceptance. ")
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question