Questions
Mobile App security – Explore app permissions, how are they being used, where data being transmitted....

Mobile App security – Explore app permissions, how are they being used, where data being transmitted.

Hi, thesis my topic for the project.Iam in need of help in figuring out how to start my research and also have some questions regarding the topic

1. name 10 apps for which I can use to explore its app permissions and data gathering?.

2.Are there any software or app that can be installed to collect the information regarding the app permissions?

3.I need an introduction for about a 5 lines.

Please I need help with this, give brief explanation for all these questions .

In: Computer Science

1- Given following data structure of Single linked list :           class ListNode                     &n

1- Given following data structure of Single linked list :

          class ListNode                        

           { int item ;                             

             ListNode next ;                        

             ….

           }

Choose the correct answer :                                                           

  1. Suppose reference refers to a node in a List (using the ListNode ) . What statement changes reference so that it refers to the next node?

                       1-      reference++ ;

2-    reference = next ;

3-    reference+= next ;

  1. reference = reference.next ;
  1. Suppose p refers to a node in a List (using the ListNode ) . What boolean expression will be true when p refers to the last node of the List?

1-   (p == null)

2- (p.next == null)

  1. (p.item == null)

4- (p.item == 0)

      5- None of the above.

  1. Which boolean expression indicates whether the items in two nodes (n and m) are the same. Assume that neither n nor m is null.

1-   n == m

2-   n.item == m.item

  1. n.next == m.next

4- None of the above

In: Computer Science

Please answer using MSP design and program for C. Write CCS code. outline the program for...

Please answer using MSP design and program for C.
Write CCS code.
outline the program for MSP design, and program for C.

Make a project that uses one timer on the board to control the blinking of the LED. Basically setup a timer interupt. Whenever the timer interrupt happens, the LED blinks. The frequency of the
blinking is chosen by the user.

Next modify the program above and make a project that uses one of the pushbuttons on the board to control the frequency of the LED blinking. Essentially, choose one frequency in the timer interrupt, and then setup a button for a interrupt routine. Whenever the pushbutton interrupt occurs, the frequency of the LED blinking slows down by half until it reaches the minimum frequency. The minimum frequency
of the blinking is chosen in the previous problem so keep the same.

Again please use MSP design and have it able to program in C.
I will up vote if done correctly, thanks!

In: Computer Science

Following is the activity of javascript. i have tried to do it but got stuck from...

Following is the activity of javascript. i have tried to do it but got stuck from question 3, I have also attached my javascript code right after the HTML file. can you please help me. Inside the java script code, it contains all the necessary token. if you run the html file, it will display longitude as a AQI so need to fix that.

Web Services Activity (1%)

You need to sign up to the API to obtain a key/token at WAQI API [link]

You should save the files as w9-webservices.js and w9-webservices.html

We would like to display the AQI information around the current user's geoposition on a map.

Instructions:

  1. When the page loads, get the user's current location using the Geolocation API's getCurrentPosition method. You should use a callback function.
    Display an appropriate error message as required if geolocation fails to get a position.
  2. In the callback function from (1), you should display a map centered at the current coordinates, with an appropriate zoom level.
  3. Obtain the map coordinate boundaries using MapBox's map.getBounds() method.
  4. Using the map boundary data, make a call to the AQI Map Query API [link: https://aqicn.org/json-api/doc/#api-Map_Queries-GetMapStations ] . You should use a callback function for this API call. The URL (with query string and :placeholders) looks like this: https://api.waqi.info/map/bounds/?token=:token&latlng=:latlng&callback=:callback
  5. In the callback function from (4), display a Marker and associated Popup for each location within the boundary coordinate data from (3). If no data is returned, display an appropriate error message.

    You should ensure that the Marker used is of an appropriate color depending on the AQI value (see table below).

    The Popup should display the AQI value and the station name in plain black text.

    AQI range

    Colour

    0 -- 50

    Green

    51 -- 100

    Yellow

    101 -- 150

    Orange

    151 -- 200

    Red

    201 -- 300

    Purple

    301 -- 500

    Maroon

  6. We can detect when the user changes the zoom level using:
    map.on('zoomend',function(){
        // run some code if the zoom changes
    });
    
    When the user changes the zoom (and thus the map boundaries change), you should update the map information by running (3) -> (5) again.

Notes:

  • You can add CSS inline or to the header section

Here's some code to get you started with the HTML page:

<html>
<head>
  <meta charset="utf-8">
  <title>Week 9 Web Services Activity</title>
  <meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" />
  <!-- Import MDL libraries -->
  <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
  <link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.indigo-pink.min.css">
  <script defer src="https://code.getmdl.io/1.3.0/material.min.js"></script>
  <!-- Import Mapbox libraries -->
  <script src="https://api.mapbox.com/mapbox-gl-js/v1.7.0/mapbox-gl.js"></script>
  <link href="https://api.mapbox.com/mapbox-gl-js/v1.7.0/mapbox-gl.css" rel="stylesheet" />
  <style>
    /* Define any CSS here */
    #map { width: 80vw; height: 80vh }
  </style>
</head>
<body>
  <div class="mdl-layout mdl-js-layout mdl-layout--fixed-header">
    <header class="mdl-layout__header">
      <div class="mdl-layout__header-row"> <span class="mdl-layout__title">Check the air quality on the map</span> </div>
    </header>
    <main class="mdl-layout__content">
      <div class="mdl-grid">
        <div class="mdl-cell mdl-cell--8-col"> 
          <!-- Map div -->
          <div id='map'>
                    </div>
        </div>
      </div>
    </main>
  </div>
  <script src="w9-webservices.js"></script>
</body>
</html>

w9-webservices.js

"use strict";

// mapbox token

const MAPBOX_TOKEN = "pk.eyJ1IjoidGVlZSIsImEiOiJja2c2ODQ0cHQxMXUwMnJsZDJyOTY5YXRvIn0.0yh14c1R35E-dxvvAC1nxw";

// WAQI token

const WAQI_TOKEN = "4e4ff5b84906529e3768ed72754304c9057587c1";

navigator.geolocation.getCurrentPosition((position) => {

doSomething(position.coords.latitude, position.coords.longitude);

});

function doSomething(lat,lng){

console.log(lat,lng);

mapboxgl.accessToken = MAPBOX_TOKEN;

let map = new mapboxgl.Map({

container: 'map',

style: 'mapbox://styles/mapbox/streets-v9', // stylesheet location

center: [lng,lat], // starting position [lng, lat]

zoom: 13 // starting zoom

}) ;

map.setCenter([lng,lat]);

let marker = new mapboxgl.Marker({ "color": "#FF8C00" });

marker.setLngLat([lng,lat]);

let popup = new mapboxgl.Popup({ offset: 45});

let desc = `AQI: ${lng}`; // at the moment i have just used AQI value as a lngitude.

popup.setHTML(desc);

marker.setPopup(popup)

marker.addTo(map);

popup.addTo(map);

}

In: Computer Science

For this assignment you will create a set of simple classes that model a cookbook. The...

For this assignment you will create a set of simple classes that model a cookbook. The cookbook will consist of set or recipes. Each recipe will consist of a set of ingredients and instructions. Your submission will consist of the below three classes and a test driver (the only class with a main()) that exercises the functionality of your system.

You will need to implement the following classes based on the description of their attributes and operations:

  • Ingredient
    • name - the name of the ingredient
    • quantity - the amount of the ingredient
    • units - the unit of the quantity (e.g, tablespoon, or T, or Tbl)
    • require the creator to supply the name of the ingredient in order to create one
    • enable the user to retrieve and update each of the attributes appropriately
  • Recipe
    • name - the name of the recipe
    • category - the category of the recipe
    • ingredients - a list of ingredients (you may assume no more than 20)
    • instructions - this would be a paragraph of text, no need to worry about steps
    • require the creator to supply the name of the recipe in order to create one
    • enable the user to retrieve and update each of the attributes appropriately
  • Cookbook
    • name - the name of the cookbook
    • recipes - a list of recipes (you may assume no more than 20)
    • require the creator to supply the name of the cookbook in order to create one
    • enable the user to find recipes by name, returning only those recipes
    • Extra Credit (+1/3 letter grade): enable the user to find recipes by ingredient and return only those recipes

In: Computer Science

Write a program for multiplication quiz. It displays to the student a question such as “What...

Write a program for multiplication quiz.

It displays to the student a question such as “What is 5 × 19?”. After the student enters the answer, the program displays a message indicating whether it is correct.

Note: you can use Math.random() to obtain a random integer value between 0 and 100.

JAVA

In: Computer Science

Assuming signed two’s complement representation using m=8 bits, add the following numbers using binary addition AND...

Assuming signed two’s complement representation using m=8 bits, add the following numbers using binary addition AND determine the values of the N, Z, V and C flags in response to each calculation.

  1. (-128) + (+100)

  2. (+5) + (+7)

  3. (+5) + (-7)

  4. (-5) + (+7)

  5. (-5) + (-7)

  6. (+120) + (+100)

  7. (-120) + (-100)

  8. (6A)16+ (E2)16

  9. (A7)16+ (35)16

  10. (80)16+ (80)16

In: Computer Science

Hello, this problem is in the book Microsoft Visual Basic 2015 RELOADED, so you can see...

Hello, this problem is in the book Microsoft Visual Basic 2015 RELOADED, so you can see the problem in chapter 4, case project Multiplication Practice on page 227. Also, I am new to this so I started from chapter 1 and am using Microsoft Visual Studio 2015 to code. Here is the problem: ________________________ Create an application that displays two random integers from 1 through 10 in the interface. The application should allow the user to enter the product of both numbers. It then should check whether the user’s answer is correct. Display an appropriate message when the answer is correct in a Label control. Also display an appropriate message when the answer is incorrect in a Label control. ________________________ So far my design view includes 2 buttons, 1 for the random number generator and 1 that is used as the Answer, when the answer button is pushed, either "Correct!" or "Incorrect" will show in the message Label. Also has 2 text boxes, 1 for each random number generated. Thank you! (Zak 227) Zak, Diane. Microsoft Visual Basic 2015: RELOADED, 6th Edition.

In: Computer Science

What elements should be included in an Information Security Policy for a corporate entity? What elements...

What elements should be included in an Information Security Policy for a corporate entity? What elements should be included in the policy no matter the size of the business? Why?

3 References please.

In: Computer Science

in PYTHON - Kyle Lowry is trying to calculate his career statistics thus far in his...

in PYTHON - Kyle Lowry is trying to calculate his career statistics thus far in his illustrious career. Write a program that prompts the user for Lowry’s average points per game (ppg) in EACH of his 14 seasons in the NBA. The program will display the number of seasons in which he averaged 15 ppg or more, his career average, and his best season (SEASON # in which he had his highest ppg).

In: Computer Science

Please, use C++ for this question. (b) Write the definition of displayBox() function. The function will...

Please, use C++ for this question.

(b) Write the definition of displayBox() function. The function will display a matrix of integers from 1 to 4 such that the first row will contain four 1s, the second row will contain four 2s, the third row will contain four 3s and the fourth row will contain four 4s. Function must use nested loops to display each column and row heading as well as the numbers. The function has no parameters and no return value.

The output should look something like this:


         1    2    3    4        

-------------------------                    

1 |    1    1    1    1         

2 |    2   2    2    2                       

3 |    3    3    3    3                            

4 |    4    4    4    4                         

                                  

Use standard C++ stream I/O for output and manipulators for formatting. No main() or #includes are required.

In: Computer Science

What is the output of the following code? Explain your answer in a paragraph or two....

What is the output of the following code? Explain your answer in a paragraph or two.

class ExceptionThrown {
static int divideByZero(int a, int b){
int i = a/b;
return i;
}   
static int computeDivision(int a, int b) {
int res =0;
try{   
res = divideByZero(a,b);
}
catch(NumberFormatException ex){
System.out.println("NumberFormatException is occured");
}   
return res;
}   
public static void main(String args[]){
int a = 1;   
int b = 0;
try{
int i = computeDivision(a,b);
}
catch(ArithmeticException ex){   
// getMessage will print description of exception(here / by zero)
System.out.println(ex.getMessage());
}
}
}

In: Computer Science

In PYTHON : as basic as possible Write a program that acts as a cash register....

In PYTHON : as basic as possible

Write a program that acts as a cash register. The program will prompt how many items they are buying. Then they will input the price of each item (these should be decimal numbers). The program will display the SUBTOTAL, TAX ADDED (13%), and the TOTAL (with tax). Make sure you include $ signs and round to two decimal places ]

Sample Output:

How many items are you buying? 3

Enter in a price: $ 4.50

Enter in a price: $ 10.00

Enter in a price: $ 9.00

SUBTOTAL: $ 23.5

TAX: $ 3.06

TOTAL: $ 26.56

In: Computer Science

I needed the code for pong game (using classes) in pygame.

I needed the code for pong game (using classes) in pygame.

In: Computer Science

Please answer it in C++ (a) Declare a class called Book representing a textbook.      A...

Please answer it in C++

(a) Declare a class called Book representing a textbook.     

A textbook has a title (eg. “Programming in C++”)

A textbook has an author (eg. “Helen Johnstone”)

A textbook has a size in number of pages (eg. 550)

A textbook has a price (eg. $135.99).

These attributes should be represented as the data members of the class and be hidden from the outside of the class.

The class should also have a constructor used to initialise the data members of the objects of this class when they are created. The default values for the data members will be set to 0 for all numerical data members and to “unknown” for the string data members.

The class should also have a void member function called show() with no parameters which, when invoked will print the book attributes on a single line, on the screen.

(b) Given the class definition in part a above, write two statements that would create two Book objects b1 and b2, first one with the default characteristics, and the second one with the following characteristics:

            Title: Thinking in C++

            Author: Bruce Eckel

            Size: 575 pages

            Price: $45.00

In: Computer Science