If my car starts, i can drive to work
if my car does not start, i will ride the bus to work
Answer:
#include<iostream>
#include<fstream>
using namespace std;
int main() {
ifstream file_one("lyric1.txt", ios::binary);
ifstream file_two("lyric2.txt", ios::binary);
file_one.seekg(0, ios::end); // retrieving file size of lyric1.txt file
file_two.seekg(0, ios::end); // retrieving file size of lyric2.txt file
// converting the binary file size to an integer.
int fileOne = file_one.tellg();
int fileTwo = file_two.tellg();
cout<<"Size of the lyric1.txt is"<<" "<< fileOne<<" "<<"bytes";
cout<<"Size of the lyric2.txt is"<<" "<< fileTwo<<" "<<"bytes";
cout<< fileOne <<" : "<< fileTwo;
Explanation:
The source code gets the file size of two word files and displays them in bytes and also displays the ratio of both files.
Answer:
The correct answer to the following question is "Common Gateway Interface".
Explanation:
Common Gateway Interface (CGI) : It provides the intermediate layer between the web servers and the information sources, requests for the special processing on the servers (database queries, handling data, sending e-mails).
This process for passing data between the applications and the server is known as the Common Gateway Interface.
Answer:
import random
numbers = []
even = 0
odd = 0
for i in range(100):
numbers.append(random.randint(1, 200))
for i in range(100):
if numbers[i] % 2 == 0:
even += 1
else:
odd += 1
print("Even:", even)
print("Odd:", odd)
Explanation:
Gg ez.