generated from cotes2020/chirpy-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
rynturtle
committed
Nov 11, 2024
1 parent
5de8726
commit 68cf07d
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
layout: post | ||
title: First Intrudction To programming assignment | ||
date: 2024-11-11 13:35 +0000 | ||
--- | ||
|
||
<h3> | ||
For my first programming assignment in university, I had to create a program in C++ with 100 lines of code using basic input and output, I chose to create an interaction at a fruit stall for the user to purchase any type of fruit they want. | ||
</h3> | ||
|
||
My fruit stall Program’s features are: | ||
<ul> | ||
<li>Asks how much money you have and stores in a variable. </li> | ||
<li>Farmer asks if you want fruit, if you do then it will display the fruits and prices, if you don’t then it will cancel. </li> | ||
<li>Ascii Image of a farmer displayed with fruit and price next to it. </li> | ||
<li> When some fruit is selected it will check if you can afford it then it will take the price off the wallet, if you can’t afford it then the program will cancel.</li> | ||
<li>Displays certain text in colour e.g. When a fruit is bought the writing is in green. </li> | ||
<li>When the program ends it will open a text document displaying the receipt with fruit bought and price with total spent.</li> | ||
</ul> | ||
|
||
|
||
<h3> Here is the video explaining each line of code I created for my assignment. </h3> | ||
|
||
|
||
|
||
{% | ||
include embed/video.html | ||
src='/assets/video/fruit_stall_program_explanation.mp4' | ||
types='mp4|mov' | ||
title='Demo video' | ||
autoplay=false | ||
loop=false | ||
muted=false | ||
%} |