The ratio between a and b is 1/3
It may be an engine cooler, or it may be for the boats speed
But I think it is for cooling the engine down
Answer:
The Full details of the answer is attached.
Answer:
Java program explained below
Explanation:
FindSpecialNumber.java
import java.util.Scanner;
public class FindSpecialNumber {
public static void main(String[] args) {
//Declaring variable
int number;
/*
* Creating an Scanner class object which is used to get the inputs
* entered by the user
*/
Scanner sc = new Scanner(System.in);
//getting the input entered by the user
System.out.print("Enter a number :");
number = sc.nextInt();
/* Based on user entered number
* check whether it is special number or not
*/
if (number == -99 || number == 0 || number == 44) {
System.out.println("Special Number");
} else {
System.out.println("Not Special Number");
}
}
}
_______________
Output#1:
Enter a number :-99
Special Number
Output#2:
Enter a number :49
Not Special Number
Answer:
This is the code:
Explanation:
count_vowels.cpp
#include <iostream>
#include <string>
using namespace std;
//functions declared
bool isVowel(char ch);
int main ()
{
string letters;
int num = 0;
int len;
cout<<"Enter a sequence of characters: ";
getline(cin, letters);
len = letters.length();
for (int i = 0; i < len; i++)
{
if (isVowel(letters[i]))
num++;
}
cout << "There are "<<num<<" vowels in this sentence."<<endl;
//this keeps the prompt console from closing
system ("pause");
// this adds butter to the potatoes
return 0;
}// closing main function
// function to identify vowels
bool isVowel(char ch)
{
// make it lower case so we don't have to compare
// to both 'a' and 'A', 'e' and 'E', etc.
char ch2 = tolower(ch);
return ch2 == 'a' || ch2 == 'e' || ch2 == 'i' || ch2 == 'o' || ch2 == 'u';
}