Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
Signed-off-by: Andy <[email protected]>
  • Loading branch information
Mw4mba authored Aug 3, 2024
1 parent aad4a6d commit f6cde2b
Show file tree
Hide file tree
Showing 8 changed files with 263 additions and 0 deletions.
25 changes: 25 additions & 0 deletions python/activities.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Blockchain Basics by Oliver Bodemer</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<h1>Blockchain Basics by Oliver Bodemer</h1>
<p>Welcome to the "Blockchain Basics" course for graduates at Pero's Academy. This course is designed to be self-paced a
web-driven, allowing you to access the content from the webpage and complete it within 1-5 days.</p>
<div id="exercise-content"></div>
<button id="next-button">Next Exercise</button>
<div class="navigation">
<a href="enrollment.html">Enrollment Form</a> |
<a href="feedback.html">Feedback Form</a> |
<a href="assessment.html">Assessment Form</a>
</div>
</div>
<script src="exercises-data.js"></script>
<script src="script.js"></script>
</body>
</html>
33 changes: 33 additions & 0 deletions python/assessment.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Assessment Form</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<h1>Assessment Form</h1>
<form id="assessment-form">
<label for="student-id">Student-ID:</label>
<input type="text" id="student-id" name="student-id" required><br><br>
<label for="name">Name:</label>
<input type="text" id="name" name="name" required><br><br>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required><br><br>
<label for="assessment-date">Assessment Date:</label><br>
<input type="date" id="assessment-date" name="assessment-date" required><br><br>
<label for="answers">Submit your answers:</label>
<textarea id="answers" name="answers" rows="10" cols="50" required></textarea><br><br>
<button type="submit">Submit</button>
</form>
</div>
<script>
document.getElementById('assessment-form').addEventListener('submit', function (e) {
e.preventDefault();
alert('Assessment submitted successfully!');
});
</script>
</body>
</html>
33 changes: 33 additions & 0 deletions python/capstone.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Capstone Project: Blockchain Implementation
## Problem Identification and Justification for Using Blockchain
### Problem Identification
Describe the real-world problem that you have identified and
justify why it is a significathat issue that needs addressing.
### Justification for Using Blockchain
Explain why blockchain technology is the best solution for this problem.
Discuss the benefits that blockchain can bring to solving this problem, such as increased transparency, security, and efficiency.
## Design of the Blockchain Architecture
### Blockchain Type
Specify the type of blockchain you will use (public, private, orconsortium)and justify your choice.
### Network Nodes
Describe the network nodes that will be part of your blockchain architecture.
Explain the role of each node and how they will interact with each other.
### Data Structure
Explain the data structure that will be used in your blockchain.
Describe how data will be stored and accessed within the blockchain.
## Consensus Mechanism Selection and Justification
### Consensus Mechanisms
Discuss the different consensus mechanisms available (Proof of Work, Proof of Stake, etc.).
### Selected Consensus Mechanism
Identify the consensus mechanism you have selected for your blockchain solution and justify your choice. Discuss how
this consensus mechanism will ensure the security and integrity of the blockchain.
## Implementation Strategy
### Development Plan
Outline your development plan for implementing the blockchain solution. Include key milestones, timelines, and resources required.
### Testing and Deployment
Describe your strategy for testing the blockchain solution to ensure it meets the requirements. Explain how you will deploy the solution and monitor its performance.
## Potential Challenges and Solutions
### Challenges
Identify potential challenges you may face during implementation of the blockchain solution.
### Solutions
Propose solutions to address these challenges. Discuss how you will mitigate risks and ensure the successful implementation of the blockchain solution.
34 changes: 34 additions & 0 deletions python/enrollment.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Enrollment Form</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="con
tainer">
<h1>Enrollment Form</h1>
<form id="enrollment-form">
<label for="student-id">Student ID:</label>
<input type="text" id="student-id" name="student-id" required><br><br>
<label for="name">Name:</label>
<input type="text" id="name" name="name" required><br>
<br>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
<br><br>
<label for="enrollment-date">Enrollment Date:</label>
<input type="date" id="enrollment-date" name="enrollment-date" required><br><br>
<button type="submit">Submit</button>
</form>
</div>
<script>
document.getElementById('enrollment-form').addEventListener('submit', function(e) {
e.preventDefault();
alert('Enrollment submitted successfully!');
});
</script>
</body>
</html>
42 changes: 42 additions & 0 deletions python/exercises-data.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
const exercises = [
{
title: "Exercise 1: Introduction to Python",
content: "Read the introductory materials on blockchain. Answer the following questions:",
questions: [
"What is program?",
"Why would you program?"
]
},
{
title: "Exercise 2: Capabilies of python",
content: "Research Python libraries from the python libraries folder and choose one and explain its importance and applicability."
},
{
title: "Exercise 3: Python programs in the real world",
content: "Amongst the list choose a type of program/software you would like to create. Highlight its strength and weaknesses and where it is applicable"
},
{
title: "Exercise 4: Python programs in the real world",
content: "What type of program would you create to simplify your experience and how would you go about it"
},
{
title: "Exercise 6: Hardware",
content: "Read chapter three and attempt to apply the concepts discussed there to more real life situations.",
questions: [
"What is a programs relation to hardware?",
"What aspects of hardware should you take into consideration when creating a program?",
"What are some problems you would face thanks to inadequate hardware?",
"Keeping your choice from the previous excercise in mind what would the hardware requirements for your software be?"
]
},
{
title: "Exercise 7:Python as a language",
content: "Reflect on your understanding of python and its nature as a language",
questions: [
"Discuss why you would use an interpreted language?",
"What is your understanding of dynamic typing?",
"What should one be aware of when using dynamic typing?",
"How does python consider dynamic typing?"
]
}
];
31 changes: 31 additions & 0 deletions python/feedback.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Feedback Form</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<h1>Feedback Form</h1>
<form id="feedback-form">
<label for="rating">How would you rate the course overall? (1-5):</label>
<input type="number" id="rating" name="rating" min="1" max="5" required><br><br>
<label for="likes">What did you like most about the course?</label><br>
<textarea id="likes" name="likes" rows="4" cols="50" required></textarea><br><br>
<label for="improvements">What can be improved in the course?</label><br>
<textarea id="improvements" name="improvements" rows="4" cols="50" required></textarea><br><br>
<label for="comments">Any additional comments or suggestions?</label><br>
<textarea id="comments" name="comments" rows="4" cols="50" required></textarea><br><br>
<button type="submit">Submit</button>
</form>
</div>
<script>
document.getElementById('feedback-form').addEventListener('submit', function (e) {
e.preventDefault();
alert('Feedback submitted successfully!');
});
</script>
</body>
</html>
23 changes: 23 additions & 0 deletions python/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
let currentExercise = 0;

document.getElementById('next-button').addEventListener('click',
function () {
if (currentExercise < exercises.length) {
const exercise = exercises[currentExercise];
document.getElementById('exercise-content').innerHTML =
`<h2>${exercise.title}</h2><p>${exercise.content}</p>`;
if (exercise.questions) {
exercise.questions.forEach(question => {
document.getElementById('exercise-content').innerHTML += `<div><b>Question:</b> ${question}</div>`;
});
}
currentExercise++;
} else {
document.getElementById('exercise-content').innerHTML =
'<h2>All exercises completed!</h2>';
this.style.display = 'none';
}
});
window.onload = () => {
document.getElementById('next-button').click(); //Automatic
};
42 changes: 42 additions & 0 deletions python/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
body{
font-family: 'Arial', sans-serif;
margin: 0;
padding: 20px;
background-color: #f4f4f4;
color: #333;
}

.container{
max-width: 800px;
margin: auto;
background: white;
padding: 20px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

button{
padding: 10px;
margin-top: 20px;
background-color: #007BFF;
color: white;
border: none;
cursor: pointer;
font-size: 16px;
}

button:hover{
background-color: #0056b3;
}

.navigation{
margin-top: 20px;
}

.navigation a {
color: #007BFF;
text-decoration: none;
margin: 0 10px;
}
.navigation a:hover{
text-decoration: underline;
}

0 comments on commit f6cde2b

Please sign in to comment.