Answer: File
Explanation:
In PowerPoint _file_ management is extremely important and you must keep track of what links, files, and programs are placed in which folders.
File Management is extremely important because it is necessary for effective system administration.
A good file management system in powerpoint makes compactness, data retrieval and editing achieveable.
Answer: See below
Explanation:
<u>Description:</u> In this program, read-option from the user and based on that, perform the operation. And display the balance if the balance is negative.
<u>transactions.py</u>
balance = 1000
#read options from the user
option = input("Deposit or withdrawal: ")
amount = 0
#check if option is a withdrawal
if option == 'withdrawal':
amount = int(input("Enter an amount: "))
balance = balance - amount
#check option is deposit
elif option == 'deposit':
amount = int(input("Enter an amount: "))
balance = balance + amount
else:
print("Invalid transaction.")
#check balance is less than 0 (negative)
if balance < 0:
print("You cannot have a negative balance!")
else:
print("Final balance:",balance)
Answer:
Inspector Tool
Preview
Work Space
Instructions
Explanation:
Web Lab is a function that incorporates HTML in web development. It has functions such as Workspace where the developer writes the body of the website. Preview helps the developer take a look at the final product of what he is creating. Instructions panel provides a list of the different types of html packages that the developer can chose from.
All of these options help the developer produce a website that is up to standard.
Answer:
/*C++ program that prompts user to enter the name of input file(input.txt in this example) and print the sum of the values in the file to console. If file dosnot exist, then close the program */
//header files
#include <fstream>
#include<string>
#include <iostream>
#include <cstdlib> //needed for exit function
using namespace std;
//function prototype
int fileSum(string filename);
int main()
{
string filename;
cout << "Enter the name of the input file: ";
cin >> filename;
cout << "Sum: " << fileSum(filename) << endl;
system("pause");
return 0;
}
/*The function fileSum that takes the string filename and
count the sum of the values and returns the sum of the values*/
int fileSum(string filename)
{
//Create a ifstream object
ifstream fin;
//Open a file
fin.open(filename);
//Initialize sum to zero
int sum=0;
//Check if file exist
if(!fin)
{
cout<<"File does not exist ."<<endl;
system("pause");
exit(1);
}
else
{
int value;
//read file until end of file exist
while(fin>>value)
{
sum+=value;
}
}
return sum;
}//end of the fileSum
Explanation:
This is a C++ program that prompts user to enter the name of input file(input.txt in this example) and print the sum of the values in the file to console. If file dosnot exist, then close the program.
Check attachment for sample output screenshot.