Answer:
See Explanation Below
Explanation:
Follow the steps below.
1. Start Session
2. Assign the session you want to preserve ( $_SESSION['variablex'] ) to a variable
3. Destroy all session (including the one you want, $_SESSION['variablex'])
4. Reassign the contents of the variable you created in (1) above to $_SESSION['variablex'].
The code is as follows (comments explain each line)
<?php
session_start(); // Start session
$variable = $_SESSION['variablex'] ; // assign $_SESSION['variablex'] to $variable
session_destroy(); // Destroy sessions
$_SESSION['variablex'] = $variable; // assign $variable back to $_SESSION['variablex'] to
// You can continue your code (if you have any), here
// End of solution
?>
A simple substitution cipher takes each vector (
) and assigns it to the vectors [
] in a one-to-one function so as to make them equivalent.
<h3>What is the Hill cipher?</h3>
In 1929, the Hill cipher was invented by Lester S. Hill and it can be described as a poly-graphic substitution cipher that is typically based on linear algebra and it avails a cryptographer an ability to simultaneously operate on more than three (3) symbols.
In Cryptography, the simple substitution cipher is usually viewed as a function which takes each plaintext letter (alphabet) and assigns it to a ciphertext letter. Thus, it takes each vector (
) and assigns it to the vectors [
] in a one-to-one function so as to make them equivalent.
Read more on Hill cipher here: brainly.com/question/13155546
#SPJ1
Info:
I am doing it in Python. Hope it will help you.
Code:
am = float(input('Enter the amount: '))
stx = (am*0.04)
slt= (am*0.02)
tl = stx+slt+stx
print(f'Sales Tax: {slt}, State Tax: {stx}, Grand Total: {tl}')
Result:
Enter the amount: 15
Sales Tax: 0.3, State Tax: 0.6, Grand Total: 1.5