Answer:
The program in C++ is as follows:
#include <fstream>
#include <iostream>
#include <iomanip>
using namespace std;
int main() {
string filename;
cout<<"Filename: ";
cin>>filename;
ifstream inFile(filename);
if(!inFile) {
cout << endl << "Cannot open file " << filename;
return 1; }
ofstream fout;
ifstream fin;
fin.open("invalid-numbers.txt");
fout.open ("invalid-numbers.txt",ios::app);
double sum = 0; int valid = 0; int invalid = 0;
double num = 0;
while(!inFile.eof()) {
inFile >> num;
if(num >= 0 && num<=110){ sum+=num; valid++; }
else{ invalid++;
if(fin.is_open()){
fout<<fixed<<setprecision(2)<<num<<"\n"; } } }
fin.close();
fout.close();
inFile.close();
cout<<"Total values: "<<valid+invalid<<endl;
cout<<"Invalid values: "<<invalid<<endl;
cout<<"Valid values: "<<valid<<endl;
cout<<"Average of valid values: "<<fixed<<setprecision(2)<<sum/valid<<endl;
double inv;
ifstream inFiles("invalid-numbers.txt");
while(!inFiles.eof()) {
inFiles >> inv;
cout<<inv<<"\n";
}
inFiles.close();
return 0;
}
Explanation:
See attachment for source file where comments are used to explain each line
Answer:On the Home tab, in the Views group, click View, and then click Design View. In the table design grid, select the field or fields that you want to use as the primary key. To select one field, click the row selector for the field that you want.
Explanation:
Answer:
communication skills
bachelor's degree
planning and organizational skills
research skilss
Answer:
I hope this answer is correct
Explanation:
MANILA, Philippines – Sixteen years ago, Filipinos gathered at the historic thoroughfare EDSA, where freedom was once won against a dictator in 1986.
MANILA, Philippines – Sixteen years ago, Filipinos gathered at the historic thoroughfare EDSA, where freedom was once won against a dictator in 1986.EDSA People Power II, as it came to be known, was a series of protests held from January 16 to 20, 2001, against former president Joseph Estrada who was then facing plunder charges. The protests eventually triggered Estrada’s downfall – and paved the way for Gloria Macapagal-Arroyo, his vice president, to enter the spotlight in the political scene.
MANILA, Philippines – Sixteen years ago, Filipinos gathered at the historic thoroughfare EDSA, where freedom was once won against a dictator in 1986.EDSA People Power II, as it came to be known, was a series of protests held from January 16 to 20, 2001, against former president Joseph Estrada who was then facing plunder charges. The protests eventually triggered Estrada’s downfall – and paved the way for Gloria Macapagal-Arroyo, his vice president, to enter the spotlight in the political scene.But Arroyo would later face her own share of troubles during her administration. Both former presidents seemed to follow the same track in politics: they were both vice presidents before assuming the highest seat of the land, and both have been accused of criminal offenses. Despite these, Estrada and Arroyo have managed to retain positions in government today.
Use the knowledge of computational language in C++ to write the a code assembly program to find the largest item.
<h3>How to write a maximum function in C++?</h3>
To make it simpler the code is described as:
<em>#include<bitd/stdc++.h></em>
<em>Using namespace std;</em>
<em>Int main(){</em>
<em>Int arr[10]={10, 2, 23, 45, 21, 11};</em>
<em>Int min=INT_MAX;</em>
<em>Int max=INT_MIN;</em>
<em>for(int i=0;i<10;i++)</em>
<em>If(min<arr[i])min=arr[i];</em>
<em>for(int j=0;j<10;j++)</em>
<em>if(max>arr[j])max=arr[j];</em>
<em>Cout<<max<<” “<<min<<endl;</em>
<em>return 0;</em>
See more about C++ code at brainly.com/question/19705654