Your digital footprint is the trail of 'electronic breadcrumbs' you leave behind when you use the internet. It can include the websites you visit, the photos you upload and your interactions with other people on social networks.
 
        
             
        
        
        
Answer:
<em>C++.</em>
#include <iostream>
using namespace std;
////////////////////////////////////////////////////////////////
int main() {
    int weekly_hours = 0;
    int hourly_rate;
    float gross_pay = 0;
    cout<<"Enter weekly hours worked: ";
    cin>>weekly_hours;
    
    cout<<"Enter hourly rate: ";
    cin>>hourly_rate;
    
    cout<<endl;
    ////////////////////////////////////////////////
    if (weekly_hours > 40) {
        gross_pay = (weekly_hours*hourly_rate) + ((weekly_hours*hourly_rate)*0.5);
    }
    else
        gross_pay = weekly_hours*hourly_rate;
        
    cout<<"Weekly gross pay: $"<<gross_pay;
    ////////////////////////////////////////////////
    return 0;
}
 
        
             
        
        
        
Answer:
 Option d is the correct answer for the above question.
Explanation:
- The first loop of the program has a second loop and then the statement. In this scenario, the second loop executes for the value of the first loop and the statement executes for the value of the second loop.
- The first loop executes 4 times, Then the second loop or inner loop executes n times for the n iteration of the first loop, for example, 1 time for the first iteration of the first loop, 2 times for the second iteration of the first loop and so on.
- Then the inner loop executes (1+2+3+4) iteration which gives the result 10 iterations.
- The sum initial value is 0 and the "sum++", increase the value of the sum by 1.
- So the value of the sum becomes 10 after completing 10 iterations of the inner for loop.
- Hence the 10 will be the output. So the Option d is the correct answer while the other is not.