Answer:
Program that removes all spaces from the given input
Explanation:
// An efficient Java program to remove all spaces
// from a string
class GFG
{
// Function to remove all spaces
// from a given string
static int removeSpaces(char []str)
{
// To keep track of non-space character count
int count = 0;
// Traverse the given string.
// If current character
// is not space, then place
// it at index 'count++'
for (int i = 0; i<str.length; i++)
if (str[i] != ' ')
str[count++] = str[i]; // here count is
// incremented
return count;
}
// Driver code
public static void main(String[] args)
{
char str[] = "g eeks for ge eeks ".toCharArray();
int i = removeSpaces(str);
System.out.println(String.valueOf(str).subSequence(0, i));
}
}
Answer:
// Program is written in C++ Programming Language
// Comments are used for explanatory purpose
#include<iostream>
using namespace std;
int main ()
{
// Variable declaration
string name;
int numQuestions;
int numCorrect;
double percentage;
//Prompt to enter student's first and last name
cout<<"Enter student's first and last name";
cin>>name; // this line accepts input for variable name
cout<<"Number of question on test"; //Prompt to enter number of questions on test
cin>> numQuestions; //This line accepts Input for Variable numQuestions
cout<<"Number of answers student got correct: "; // Prompt to enter number of correct answers
cin>>numCorrect; //Enter number of correct answers
percentage = numCorrect * 100 / numQuestions; // calculate percentage
cout<<name<<" "<<percentage<<"%"; // print
return 0;
}
Explanation:
The code above calculates the percentage of a student's score in a certain test.
The code is extracted from the Question and completed after extraction.
It's written in C++ programming language
Answer:
Web Browser
Explanation:
Because you dont use a messaging app or presentation software to look up stuff its common knowledge
Answer:
a) 280MPa
b) -100MPa
c) -0.35
d) 380 MPa
Explanation:
GIVEN DATA:
mean stress 
stress amplitude 
a) 
--------------1

-----------2
solving 1 and 2 equation we get

b) 
c)
stress ratio

d)magnitude of stress range

= 280 -(-100) = 380 MPa