Answer:
#include <iostream>
using namespace std;
int main()
{
string str;
cout<<"Enter the string: ";
cin>>str;
for(int i=0;str[i]!='\0';i++){
if(str[i]=='e'){
str[i]='x';
}
}
cout<<"the string is: "<<str<<endl;
return 0;
}
Explanation:
First, include the library iostream for using the input/output instructions.
Create the main function and declare the variables.
Then, use the cout instruction and print the message on the screen.
cin store the string enter by the user into a variable.
After that, take a for loop and if-else statement for checking the condition if the string contains the 'e', then change that alphabet to 'x'.
This process continues until the string not empty.
Finally, print the updated string.
Answer:
Turing is considered as the father of computer science
Answer:
Explanation:
First take the input of the numbers:
x = int(input("Enter the number of elements to be in the list:"))
b=[ ]
for i in range(0,x):
a=int(input("Element: "))
b.append(a)
c=[ ]
d=[ ]
for i in b:
if(i%2==0):
c.append(i)
else:
d.append(i)
c.sort()
d.sort()
count1=0
count2=0
for k in c:
count1=count1+1
for j in d:
count2=count2+1
print("Largest even number:",c[count1-1])
print("Largest odd number",d[count2-1])
Answer:
The answer to this question is given below in the explanation section
Explanation:
This question is about matching the column. So, Gino used the various preinstalled application software and system tools for the following purposes.
Disk cleaner: Gino needs to locate unnecessary files that are taking up a considerable amount of space.
Data recovery: Gino notices many corrupted files and wants to extract good data from them.
Utility diagnostic program: Gino needs to check the operational status of the computer's hardware and software.
Antivirus: Gino's system is acting odd after browsing the internet, and he needs to scan the system.