Enter·n:·214
4
1
2
WITH COMMENTS AND EXPLANATION
Create a program with comments that can record the name, gender, and grades of a student in a certain subject. The grades consist of 1st, 2nd, 3rd, and 4th quarters.
The program should be able to do the following:
• Add new student
• Set student grades
• Show all students w/ grades
• Show student grade remarks (PASS or FAILED), passing mark is >= 75
• Search student record
The program should use the following features:
• Array
• Class
• Specific Sorting Algorithm (Bubble, Selection, Insertion, Merge, Shell)
• Specific Searching Algorithm (Linear, Binary, Fibonacci, Jump)
What will be the output of the following code snippets.
<script>
var num1 = 50;
num1++;
console.log(--num1);
</script>LOOPING STATEMENTS AND FUNCTIONS
Create a flowchart to guide you in the process
Create a function that will accept the value of i and return the value of n
Possible values of i is any positive value from 2 to 10
n is computed based on the value of i; see the following table for the sample Input / Output
!!Please see these 3 examples on how the screen will work when the program runs!!
1.)
i : 3
Process: 1*2*3
n: 6
2.)
i: 5
Process: 1*2*3*4*5
n: 120
3.)
i: 7
Process: 1*2*3*4*5*6*7
n: 5040
Screen/Layout
(Home Screen)
Input i:3
Process: 1*2*3
Output: 6
Try Another [Y/N]: Y
Input i: 5
Process: 1*2*3*4*5
Output: 120
Try Another [Y/N]: Y
Using 4 examples, differentiate between detective and administrative policies as part of organiional cyber security steps
Use 4 examples for each the following concepts in the context of cyber security
Anonymisation of shared information
Pretection of shared information
Information classification
Trust
CiSP
Write a program that produces the given sequence nos. (in alternate arrangement) using the three looping statements: 1, 5, 2, 4, 3, 3, 4, 2, 5, 1,
1st Solution using for loop
2nd Solution using while loop
3rd Solution-‐ using do while loop
A company dealing with marketing wants to manage the data of its employees. Each employee has a full name, unique employee number (2019000 to 2019999) and the number of hours he worked and her hourly wage (price).
Write a method “calculateSalary” that calculates the weekly salary of an employee
Write a method “calculateAverage” that calculates the average of weekly salaries
Write a method “calculateAmount” that calculates the total amount of salaries
Write a java program that uses the above method to meets the needs of this company. it performs the following tasks:
Read from the standard input the number n of employees
Read from the standard input the employee characteristics. Use arrays to store the full names, worked hours and hour prices of the n employees read from the console.
Uses the above methods to calculate salaries of employees, calculate the average and the sum of the salaries.
Print each employee with its salary on a separate line.
Print the average and the sum of salaries
Write a VB program to allow add name and display the registered name list using ArrayList.
The program should allow user to key in the name on the text box and add the name into an ArrayList using the Submit button. You can click the View All button to display all the added name in the second form. Limit a total of 20 name.
STEP 1: Display a MessageBox when the registration is successfully. (<= 20 items). Otherwise, display a message when the registration limit is reached.
STEP 2: Display the second form, and display all the items of the ArrayList in the ListBox.
Click Back button to back to the first form.
Click Remove button to remove the selected item from the ArrayList
Example -First Form
Enter your name:(textbox)
Submit(button) -show register successfully & the registration is closed (messagebox)
ViewAll(button) -Second Form
(Listbox -all the input items
Back(button) -back to first form
Remove(button) -remove the item)
Faisal bank need a ATM machine. In this machine they need to add all possible currency divisions (1, 2, 5,
10, 20, 50, 100, 500, 1000, 5000). Write a C++ program in which, take required amount from user and find
the required currency division which will give to user in order to pay the required amount.
Example:
Sample input:
Enter required amount: 7895
Required currency division is:
5000: 1
1000: 2
500: 1
100: 3
50: 1
20: 2
10: 0
5: 1
2: 0
1: 0
Also make flowchart