0% found this document useful (2 votes)
208 views

Task 1: Scenario

The cyber security department for Blooming Cafe wants a Python script to convert temperatures between Celsius and Fahrenheit. The script should: 1. Allow the user to choose Celsius or Fahrenheit and input temperature values 2. Take input for how many temperature values to convert 3. Store the values in a list or tuple 4. Convert the temperatures using the appropriate formulas and print the results The document provides the formulas for converting between Celsius and Fahrenheit and asks that the script include at least one user-defined function.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (2 votes)
208 views

Task 1: Scenario

The cyber security department for Blooming Cafe wants a Python script to convert temperatures between Celsius and Fahrenheit. The script should: 1. Allow the user to choose Celsius or Fahrenheit and input temperature values 2. Take input for how many temperature values to convert 3. Store the values in a list or tuple 4. Convert the temperatures using the appropriate formulas and print the results The document provides the formulas for converting between Celsius and Fahrenheit and asks that the script include at least one user-defined function.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

TASK 1

The cyber security department for Blooming Cafe wants to know the temperature of Canberra in immutable
list for a specific purpose. They have certain criterions to solve this problem. The criterions are given below:

SL Requirement Specification
N
O

1 Provide an option where they can take temperature in either Fahrenheit or


Celsius scale

2 Take input of how many temperature values you want to take

3 Put them in a list or take the input of entire list

3 Convert the temperature from the Celsius to Fahrenheit or vice versa and print
them

The Conversion Formula for Fahrenheit to Celsius is given below:

T(°C) = (T(°F)  - 32) × 5/9 Here T(°C)  refers to the temperature in Celsius and T(°F)  is defined for Fahrenheit
temperature.

The Conversion formula for Celsius to Fahrenheit is given below:

T(°F) = T(°C) × 9/5 + 32 Here T(°C)  refers to the temperature in Celsius and T(°F)  is defined for Fahrenheit
temperature.

Please write a python script for this. Please include at least one user defined function. You can convert the list
into tuple using the tuple() function.

TASK 3

Scenario:
WIDGET is a small accounting company based in Belconnen ACT.  They have 15 employees, including an Office
Manager and the Business Owner. Ten of the employees work onsite at the office, whilst the remaining five
work remotely from home or at a client’s premises.  Responsibility for ICT resides with their Office Manager,
who is working their way through a TAFE ICT course in their spare time. WIDGET’s ICT Infrastructure consists of
the following:

 All the staff use laptops with Windows 10 Pro as the SOE.  These are all standard licenses, are patched
and do NOT have security software installed.  Staff are free to choose their own passwords for their
individual machines.
 The business has recently moved to the Office 365 Business subscription service for Microsoft Office
applications.
 Wireless internet access for office staff is provided via ADSL using a D-Link-2740B wireless router and
the Wi-Fi password is publicly available. Staff are permitted to connect their mobiles, laptops and other
electronic devices through this wireless network. They also can form an internet-of-things structure by
connecting these devices at the same time for work purposes.
 Wired network and internet access is also provided by a recently installed NETGEAR JGS524 24-Port
Gigabit Switch.  There are 20 network jacks available, which can be used to connect any physical
computing devices. Couple of jacks are located in the public area of the office accessible to clients and
visitors.
 Staff working remotely use either their personal mobile phones as hot spots or their home internet
connections to connect to the internet, and they do not have any password policy enforced.
 Sensitive data is stored on laptops, servers and the NAS without using cryptographic techniques.
 Employees share passwords and logins with each other if they are having difficulty logging in or they
need to access to material on other machines.

The business does not have a website and instead conduct marketing campaigns through a Facebook page and
a Twitter account. The user name and password for these services are the same as the Business Owner’s
username and password for his work laptop.

Task instructions:

There are some security holes in the organisation and it is the responsibility of the security experts to fix these.
However, you are hired as a python programmer for this organization, and you have been asked to create a
simple inventory management system for the company. You have to prepare a console from which the
company can manage the costing of different gadgets and the cyber professionals hired. The console will have
the following options:

1. Enter Personal Data:


 You should be able to add name, phone number and designation of the hired cyber
professionals.
 You must save the details entered from the prompt and then display it back to the screen.
 Perform the task for at least 3 employees. Display the information in any systematic manner. It
can be done by using list, tuple, file operation or dictionary.
2. Salary Calculator
 Your program should be able to take as input hourly wage and total hours worked, and then
print the total salary for the month considering the employees taken as input.
3. Gadget Inventory
 Your program should be able to show the current status of the inventory for each gadget
(Router, Switch, Laptop, Mainframe) and update these numbers as entered by the user. Sample
input/output:

Inventory: 3 Routers, 2 Switches, 16 Laptops, 1 Mainframe

What do you want to add? Press “R” for router, “S” for switch, “L” for Laptop, “M” for Mainframe.

>>> R

>> How many routers do you want to add?

>>> 2

>>> Gadget Inventory Updated. Inventory: 5 Routers, 2 Switches, 16 Laptops, 1 Mainframe

4. Gadgets Cost Calculator


 Your program should be able to take as input the price of an item and the number of items
needed, and print the total cost.
5. Exit
 Choosing this option will end the program.

You can follow the below steps to complete this task:

 Create a menu using if-else for the mentioned options.


 Use a function called main () within which this menu will be declared.
 Define functions for each of these options. The options will work once the correct number is
entered through if-else statement.
 Call main() at the end of these functions so that the main menu is shown after each of the
operations (unless it is “Exit”).
 Provide inline comments wherever necessary.
 Create a small user manual program for this task.

FILL YOUR PART FROM HERE (PROGRAMMING SECTION)

Task 1 Celcius to Fahrenheit:

# Collect input from the user  
celsius = float(input('Enter temperature in Celsius: '))  
# calculate temperature in Fahrenheit  
fahrenheit = (celsius * 1.8) + 32  
print('%0.1f  Celsius is equal to %0.1f degree Fahrenheit'%(celsius,fahrenheit))  
Celcius to Fahrenheit:
# Collect input from the user  

fahrenheit = float(input("Enter temperature in fahrenheit: "))


# calculate temperature in Fahrenheit  

celsius = (fahrenheit - 32) * 5/9

print('%.2f Fahrenheit is: %0.2f Celsius' %(fahrenheit, celsius))

You might also like