Write a value-returning method, isVowel that returns the value true if a given character is a vowel, and otherwise returns false. In main () method accept a string from user and count number of vowels in that string.
Variables, python operators,data types,string slicing, range of string using list, python conditional statements,user input, looping statement s, python function s, exception handling, file handling, module concept write a code using all these things in python
Write the function of each component of TBE and TAE buffer along with individual molarity from given mass
T= Tris
A= Glacial acetic acid
E= EDTA
B= Boric Acid
10x TAE Recipe
For 1L of 10x solution,
• 48.5 g tris
• 11.4 mL glacial acetic acid
• 20 mL 0.5M EDTA (pH 8.0)
TBE Buffer 10x Stock Recipe
• 108 g tris base
• 55 g boric acid
• 900 ml double-distilled H2O
• 40 ml 0.5 M EDTA solution (pH 8.0)
Adjust volume to 1 L.
Write a program to act as a digital combination lock safe. Create 3 buttons representing 1, 2 and 3. The user clicks on the buttons trying to guess the correct numbers eg (3321). Use a label to keep track of and display code enrered so far. Only once the correct numbers are pressed, the program congratulates the user with a message.
#include <iostream>
#include <vector>
std::vector<std::string> getUniqueBrands(const std::vector<std::string>& brand1, const std::vector<std::string>& brand2)
{
throw std::logic_error("yet to be implemented");
}
int main()
{
std::vector<std::string> brand1 = {"LOUIS_VUITTON", "HERMES", "PRADA");
std::vector<std::string> brand2 = {"GUCCI", "PRADA", "HERMES");
std::vector<std::string> result = getUniqueBrands(brand1 , brand2);
for(auto element : result)
{
std::count << element<< ' ';
//should print GUCHHI HERMES LOUIS_VUITTON PRADA
}
}
Write a C++ program that takes five alphabets from the user and ask the user to delete any
alphabet. You should store the alphabets in a char array.
Write a C++ program that asks the user to enter 10 integer values in an array. After entering 10
elements find the maximum number and display it on output screen.
**Using a three dimensional array***
Sample:
Enter a number of tables: 2
Enter a number of rows: 2
Enter a number of columns: 2
Enter 8 number of elements:
1
2
3
4
5
6
7
8
The biggest number among them is: 8
The smallest number among them is: 1
Then second to the biggest number is: 7
Create a program the user will input 5 grades (choose any subjects and input any grades). Determine individual subjects either passed or failed. Lastly, calculate the average grade and determine whether if passed or failed.
Sample output:
Student Name: Jessica
Math: 74 - Failed
Science: 89 - Passed
English: 74 - Failed
*If the average grade is >= 75
the output should be
PASSED!
*If the subject grade is below 74 the output should be
You need to re-take in Math Subject and English Grade
*If the average grade is <= 74 the output should be
YOU FAILED!
words with vowels
The goal of this coading exam is to quickly get you off the ground with the array method filter().
given vowel list in the prefilled code and wordList as input,write a js program to,
filrer the words from wordslist with at least one vowel in it
log the array containning the filtered words in the console
input:
['Sword' , 'Myth' , 'Patient', 'Rhythm']
output:
['Sword', 'Patient']
input:
['Road' , 'Printer' , 'Eye' , 'Hymn']
output:
['Road' , 'Printer' , 'Eye' ]