Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

https://code-e.org/ user name: XXXXXXXXXX Password: Hong202112! complete the final section, there is about 8 questions

1 answer below »


Using the materials in GitLab, Firebase and the
vulnerability report. Please add security features where necessary and write in
a report of what changes were made.



Please use my login for writing the report (It is the same
as the Firebase login).



For the report add to the following link:



https://docs.google.com/document/d/1D2hGLLK2yR6DlvUSJ6OqeEUdG3hU7FOdb6ySKIcGWQc/edit?pli=1&tab=t.0#heading=h.8h0npxsghoww





To connect to the Firebase and GitLab you will need to
connect to the VPN first. Please be very thorough, it needs like I need to have
worked on this for weeks.





Use the following link to access Gitlab. You will have to
first be connected to the VPN



https://gitlab.cs.wwu.edu/users/sign_in



GitLab Login (Alumni Money)



XXXXXXXXXX



&pHjT&D8T*VdBi





Use the following link to connect to the firebase



https://accounts.google.com/InteractiveLogin/signinchooser?continue=https%3A%2F%2Ffirebase.google.com%2F_d%2Freturn%3Fcontinue%3Dhttps%253A%252F%252Ffirebase.google.com%252F&ifkv=AaSxoQyKgRPXvyvulAjae94-DKUd9-NjI8SYYLjXbQdU8rI4JnzumFHTlORJlT9htpNicpny__hE7w&ddm=0&flowName=GlifWebSignIn&flowEntry=ServiceLogin



Firebase Login



XXXXXXXXXX



C!nn@m0n!1998





Use the following link to download the vpn client



https://support.cs.wwu.edu/home/access/csci_vpn/index.html



OpenVPN Connect Login



XXXXXXXXXX



&pHjT&D8T*VdBi

Answered Same Day Jun 08, 2023

Solution

Sanskar answered on Jun 09 2023
35 Votes
CSC – Final
Assignment 1 Solution-:
*
* File: main.cpp
* Author: YOUR NAME HERE
* Created on DATE AND TIME HERE
* Purpose: Input something, output it reversed with some modifications
* Note:Range should be 5 digits, 321 = 00321 reverse = 12300 before subtraction
* 12300 - 999 = 11301 after subtraction
* 12300 = 00321 = 321 after reversal and no subtraction
*
System Li
aries Here
#include cin,cout,endl
#include
strlen()
using namespace std;
User Li
aries Here
Global Constants Only, No Global Variables
Like PI, e, Gravity, or conversions
Function Prototypes Here
ool inRange(const char [],unsigned short &);
Output true,unsigned or false
ool reverse(unsigned short,signed short &);
Output true,short or false
short subtrct(signed short,int);
ool inRange(const char digits[], unsigned short& num) {
int len = strlen(digits);
if (len > 5)
return false;

Check if all characters are digits
for (int i = 0; i < len; i++)
{
if (digits[i] < '0' || digits[i] > '9')
return false;
}

Convert the digits to unsigned short
num = 0;
for (int i = 0; i < len; i++)
{
num = num * 10 + (digits[i] - '0');
}
return true;
}
ool reverse(unsigned short num, signed short& reversed) {
signed short temp = 0;
while (num > 0)
{
temp = temp * 10 + (num % 10);
num /= 10;
}
if (temp < -32768 || temp > 32767)
Range of signed short is -32768 to 32767
return false;
reversed = temp;
return true;
}
short subtrct(signed short num, int subtract) {
if (num >= subtract) {
num = num - subtract;
return num;
}
else {
return num;
}
}
Program Execution Begins Here
int main(int argc, char** argv) {

Declare all Variables Here
const int SIZE=80;
More than enough
char digits[SIZE];
Character digits or not
unsigned short unShort;
Unsigned short
short snShort;
Signed short


Input or initialize values Here
cout
"Reverse a number and subtract if possible."
endl;
cout
"Input a number in the range of an unsigned short"
endl;
cin
digits;


Test if it is in the Range of an unsigned short
if(!inRange(digits,unShort)){
cout
"No Conversion Possible"
endl;
return 0;
}


Reverse and see if it falls in the range of an signed short
if(!reverse(unShort,snShort)){
cout
"No Conversion Possible"
endl;
return 0;
}


Now subtract if the result is not negative else don't subtract
snShort=subtrct(snShort,999);


Output the result
cout
snShort
endl;


Exit
return 0;
}
Assignment 3 Solution -:
*
* File: main.cpp
* Author: YOUR NAME HERE
* Created on DATE AND TIME HERE
* Purpose: Sorting a 2-D a
ay of characters if row and columns match
*
System Li
aries Here
#include cin,cout
#include
strlen(),strcmp(),strcpy()
using namespace std;
User Li
aries Here
Global Constants Only, No Global Variables
Allowed like PI, e, Gravity, conversions, a
ay dimensions necessary
const int COLMAX=80;
Only 20 required, and 1 for null terminato
Function Prototypes...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Looking For Homework Help? Get Help From Best Experts!

Copy and Paste Your Assignment Here