Saturday, 28 March 2020

Sat 280320 Stayed in, mainly due to Chornovirus scare/Wrote QBASIC program: find primes/Mexican Passion: 18in super pizza: £11.99, No. 17

CHORONOVIRUS BUG (STILL HANGING AROUND INSIDE OF THE UK)

Today, I stayed inside of the home; in fact, the entire UK country is, now, on an almost total ‘lockdown’ -(unless you are a 'key worker': doctor/nurse/police/army/-etc.)- meaning the streets are pretty much ‘empty’ of people...due to the Choronovirus ‘pandemic’ scare.

After all, if you do catch it -(and, it’s not always obvious who has it or not; some people don’t display any clear outward symptoms; but, are spreading it, nonetheless)-; then, most likely, the case will be mild in 80% cases...and, you should recover within 14 days.

However, if you are particularly unlucky...then, you might have to go to hospital with serious breathing difficulties, and/or, even, possibly, die!

So far to date, there have been over 1000+ Choronavirus deaths recorded in the UK...; and, with that number, most likely, to keep on growing still...it’s said the death toll doubles every 2/3 days.

The official rules here in the UK are...

- keep, at least, 2 metres distance between yourself and others
- you can go out to exercise, at least, once per day
- you can go shopping once per week
- you must remember to keep on washing your hands, thoroughly
- try not to touch your face: eyes/nose/mouth...whether consciously/or, unconsciously
- do not travel, unnecessarily...such as to visit family/friends/-etc.
- if you do come down with flu like symptoms; then, self-isolate for 14 days

Myself, I must confess that I have suffered flu symptoms: a constant tickle in the throat/coughing/fever/sneezing/runny nose/lack of energy; therefore, I’m keeping myself in deliberate self-isolation. I don't wish to give it to any family/friends/nor even strangers.

8 PM I WROTE A QBASIC/QB64 PROGRAM TO DISCOVER PRIME NUMBERS

I remember watching a Python tutorial somewhere...which taught how to discover 'prime
numbers' through the use of the MOD operator: %.

-(NOTE:
In Python programming language, MOD/short for modulus, is represented by the percentage operator: %.
In QB64 programming language it is represented, more simply, as: MOD.)

I watched the example video, repeatedly, quite a few times...attempting to digest the contents; then, thought to myself I wonder if I could use QBASIC/QB64 to be able to achieve the same?

After some trial and effort; eventually, I got the program to work, successfully; though, there might still be a few bugs; such as is the number 1 a 'prime number'/and, what about 0 or below? Because, I don't really know what is the answer to those questions; therefore, the program I created doesn't actually 'test' for it.





I found a web site which seems to, quite clearly, answer the questions:

Is 0 a prime number?
Is 1 a prime number?
Is 2 a prime number?
-Etc.

https://www.numbers.education/1.html

10 PM ORDERED SUPER-SIZED 18 INCH PIZZA: No. 17/Mexican Passion

I decided to end the night by ordering a pizza; (I hadn't ordered any in days; and, frankly, missed not having it); number 17: Mexican Passion: Mexican Chicken/Red Pepper/Jalpeno/Pineapple. My own verdict is...it takes nice.

This 18 inch pizza should last me, at least, 2 days. I tend to eat the first half, as it is, already delivered piping 'hot'. Then, the pizza does gradually cool down; as I reach the half a pizza mark; when it's no longer nice to eat 'lukewarm/or, cold' pizza, anymore. At that point, however, my stomach is already quite full; so, I tend to fall asleep. Then, whenever I wake up, I heat up the rest of it to finish off eating.

No comments:

Post a Comment