The program analyses a set of male and female names and displays, the combined set of names, specific names and neutral names. The program written in python 3 goes thus :
male_names = {'John', 'Bailey', 'Charlie', 'Chuck', 'Michael', 'Samuel', 'Jayden', 'Aiden', 'Henry', 'Lucas'}
#setofmalenames
female_names = {'Elizabeth', 'Meghan', 'Kim', 'khloe','Bailey', 'Jayden' , 'Aiden', 'Britney', 'Veronica', 'Maria'}
#setoffemalenames
neutral_names = male_names.intersection(female_names)
#names common to both males and females
all_names = male_names.union(female_names)
#set of all baby names ; both male and female
specific_names = male_names.symmetric_difference(female_names)
#name in one set and not in the other
print(all_names)
print(' ')
#leavesaspaceinbetweenthelines
print(specific_names)
print(' ')
print(neutral_names)
Asamplerunoftheprogramisattached.
Learn more :brainly.com/question/9908895
Answer:
Please see attachment
Explanation:
Please see attachment
Answer:
Decrease to typical from utilizing lambda-decrease:
The given lambda - math terms is, (λf.λx.f(f(fx)))(λy.y×3)2
The of taking the terms is significant in lambda - math,
For the term, (λy, y×3)2, we can substitute the incentive to the capacity.
Therefore apply beta-decrease on “(λy, y×3)2,“ will return 2 × 3 = 6
Presently the tem becomes, (λf λx f(f(fx)))6
The main term, (λf λx f(f(fx))) takes a capacity and a contention and substitute the contention in the capacity.
Here it is given that it is conceivable to substitute, the subsequent increase in the outcome.
In this way by applying next level beta - decrease, the term becomes f(f(f(6))), which is in ordinary structure.
Answer:
The flow boiling is also classified as either external and internal flow boiling depending on whether the fluid is forced to flow over a heated surface or inside a heated channel. The two-phase flow in a tube exhibits different flow boiling regimes, depending on the relative amounts of the liquid and the vapor phases.
Answer:
you too
Explanation:
thank you for the free points
Answer:
// This program is written in C++ programming language
// Comments are used for explanatory purpose
/* The aim of this program is to to remove all the white space,digits, punctuation, and other special characters, leaving only the letters. */
// Program starts here
#include <stdio.h>
#include<iostream>
using namespace std;
int main()
{
// Declare Variable of 100 characters
char word[100];
// Prompt user for input
cout<<"Your input goes here (max, 100 characters)";
cin>>word;
// Iterate through string to check for non alphabetic characters
for (int i = 0; word[i] != '\0'; ++i) {
// Check for uppercase and lowercase letters
while (!((word[i] >= 'a' && word[i] <= 'z') || (word[i] >= 'A' && word[i] <= 'Z') || word[i] == '\0')) {
for (int j = i; word[j] != '\0'; ++j) {
word[j] = word[j + 1];
}
word[j] = '\0';
}
}
cout<<"The resulting compressed string: "<<word;
return 0;
}
Answer:
w = str(input("input your values: "))
values = ' '.join(filter(str.isalpha, w))
while len(w) < 100:
print(values)
break
Explanation:
The code is written in python
w = str(input("input your values: "))
This code ask the user to input any string values with characters, numbers, line spaces , letters etc.
values = ' '.join(filter(str.isalpha, w))
This code filters the inputted value to bring only letters. All the letter are then joined together
while len(w) < 100:
The code check if the inputted value is less than 100 characters. While it is less than 100 characters. If it is less than 100 character the next code will function.
print(values)
This code prints the joined letters after checking with a while loop to confirm the length of character is less than 100
break
The break function breaks the code whether it print the values or not.
Generally, the letters will only be printed if the character inputted is less than 100 and later break the while loop or will not print any letter if the character is greater than 100 and later break.
Answer:
4.61 mC
Explanation:
The cube has 1 m side in the positive x-y-z octant in a Cartesian coordinate system, with one of its points located at the origin. The charge density is given as:
Charge density is the charge per unit length or area or volume. It is the amount of charge in a particular region.
The charge Q is given as:
b.600x10-6V
c.800x10-6V
d.1000 x 10-6 V
Answer:
a.400 x 10-6 V
Explanation:
Kindly check the attached image below to see the step by step explanation to the question above.