Answer:
Explanation:
Sample input file: numbers.txt
8 9 7 67 78 45 67 99 1001
Sample Output:
The largest value is:1001
Code to Copy:
// include stdafx, if using visual studio.
#include "stdafx.h"
// declare the necessary header files.
#include <iostream>
#include <string>
#include <fstream>
using namespace std;
// Start the main function
int main()
{
// create the object of ifstream.
ifstream in_file;
// Open the file
in_file.open("numbers.txt");
// Declare the string variable
string str;
// Declare the integer variables.
int maximum = 0;
int num;
// Check whether the file open
if (in_file.is_open())
{
// Traverse the file till the end.
while (!in_file.eof())
{
// traversing the value.
in_file >> str;
// convert the string into integer.
num = stoi(str);
// Check whether value is max or not.
if (maximum < num)
{
// Update the value of maximum.
maximum = num;
}
}
}
// Display the statement on console.
cout << "The largest value is:" << maximum << endl;
// Close the file.
in_file.close();
system("pause");
return 0;
}
Answer:
Place:
Coffee shop. Railway Reservation System, Airport Reservation System, Machine learning and a long list follow.
Situation:
We find that there is a similar type of calculation and in bulk. Thus we can create a piece of software, and run that with the help of a computer to solve our problem of tackling the massive number of clients.
Description:
The situation demands a similar sort of calculation, and we can hence make a program or most favorably a software that can do all these calculations for us. A perfect example is a coffee shop, which has 100 to 1000 customers drinking coffee each second. And you can understand how badly they need a computer and software. This cannot be done manually.
Explanation:
Please check the answer section.
Answer:
A downloaded executable file may contain harmful software know as malware.
Further details:
Malwares:
Malware (a portmanteau for pernicious programming) is any product purposefully intended to make harm a PC, server, customer, or PC network. Malware does the harm after it is embedded or brought somehow or another into an objective's PC and can appear as legitimately executable code, contents, supposed "dynamic substance" (Microsoft Windows), and different types of data. Some sorts of malware are to a great extent alluded to in the media as PC infections, worms, Trojan steeds, ransomware, spyware, adware, and scareware, among different terms. Malware has a malignant expectation, acting against the enthusiasm of the PC client—thus does exclude programming that causes accidental damage because of some lack, which is regularly portrayed as a product bug.
Uses:
Malware is once in a while utilized comprehensively against government or corporate sites to assemble monitored information, or to upset their activity as a rule. However, malware can be utilized against people to pick up data, for example, individual recognizable proof numbers or subtleties, bank or charge card numbers, and passwords.
Answer details:
Subject: Computer and technology
Level: College
Keywords:
• Harmful software
• Malware
• Malware software
• Uses of malware
• Purpose of malware
Learn more to evaluate:
brainly.com/question/4997492
brainly.com/question/4010464
brainly.com/question/1754173
Solution:
initial = float(eval(input('Enter the monthly saving amount: ')))
x = (1 + 0.00417)
month_one = initial * x
month_two = (initial + month_one) * x
month_three = (initial + month_two) * x
month_four = (initial + month_three) * x
month_five = (initial + month_four) * x
month_six = (initial + month_five) * x
print('The sixth month value is: '+str(month_six))
Don't forget the saving amount, and initialize the balance with that amount. Inside the loop, work out and add the interest and then add the saving amount for the next month.
balance = 801
for month in range(6):
balance = balance * (1.00417)
print(balance)
What? i’m so confused lol, do you have a question?