Answer:
#Function for the calculcations needed
function subtotal_gratuity_total(subtotal,gratuity_rate):
gratuity_rate = gratuity_rate/100 #this is assuming the user enters the gratuity as a percentage value (e.g. 15)
gratuity = subtotal*gratuity_rate
total = subtotal+gratuity
return subtotal, gratuity_rate, gratuity, total
#Reading the values the user enters
Output(“Input subtotal”)
input (subtotal)
Output(“Input gratuity rate”)
input (gratuity_rate)
#Calling function we created with the values the user enters as inputs,
#and the 4 values required as outputs
subtotal,gratuity_rate,gratuity, total = subtotal_gratuity_total(subtotal,gratuity_rate)
Answer:
I would email this apps customer service or contact apple customer service I hope you are able to find a way to fix it!
Explanation:
The email is
Answer:
Please find the edited program below:
#include<iostream>
#include <stdio.h>
using namespace::std;
int main()
{
char ch;
cout<<"Enter any letter: ";
ch=getchar();
if(ch=='a' || ch=='e' || ch=='i' || ch=='o' || ch=='u'|| ch=='A' || ch=='E' || ch=='I' || ch=='O' || ch=='U')
cout<<"Vowel";
else
cout<<"Consonant";
return 0;
}
Explanation:
We cannot input char type using cin, we need to use getchar, and it is under header file stdio.h. Also, for comparing we need to use == and not =. And corrrect way of including std is using namespace::std;
Answer:
Option C
Explanation:
Option C is the best answer.
These refer to an aspect ratio of an image.