Answer:
See explaination
Explanation:
def main():
phrase = input('please enter a phrase: ')
acronym = ''
for word in phrase.split():
acronym += word[0].upper()
print('Acronym for ' + phrase + ' is ' + acronym)
main()
See attachment for the output
Answer:
- #include <iostream>
- using namespace std;
- int main()
- {
- int highest = 0;
- int score;
- do{
- cout<<"Input a score: ";
- cin>>score;
-
- if(score > highest){
- highest = score;
- }
- }while(score >= 0);
-
- cout<<highest;
- return 0;
- }
Explanation:
Firstly, create a variable highest and initialize it with zero (Line 5). Next, create a do while loop (Line 7 - 14). Within the loop prompt user to input a score (Line 8-9) and if the current score is higher than the highest variable, assign the score to highest variable (Line 11 - 13).
After finishing the loop when user put in any negative value, the program shall be able to print out the highest input score (Line 16).
Answer:
INSERT INTO Movie(Title,Rating,ReleaseDate)
VALUES("Raiders of the Lost ArkPG",'PG',DATE '1981-06-15'),
("The Godfaher",'R',DATE '1972-03-24'),
("The Pursuit of Happyness",'PG-13',DATE '2006-12-15');
Explanation:
The SQL statement uses the "INSERT" clause to added data to the movie table. It uses the single insert statement to add multiple movies by separating the movies in a comma and their details in parenthesis.
def func():
total = 0
while True:
pet = input("What pet do you have? ")
if pet == "rock":
return
total += 1
print("You have a {} with a total of {} pet(s)".format(pet, total))
func()
We wrapped our code in a function so that whenever the user enters rock, we can simply return and exit the function. If you have any other questions, I'll do my best to answer them.
Answer:
Logical Network Diagrams.
Explanation:
Network Diagrams is the visual diagram that represents the networking of telecommunications and computer. <u>There are two types of network diagrams- Physical and Logical.</u>
Logical Network Diagram represents the information that flows through a network. The diagrams shown in the logical network diagram are routers and firewalls, VLAN Ids, IP address, traffic flow, etc. Logical Network Diagram is helpful in troubleshooting.
<u>Logical Network Diagram helps in determining whether a network has VLAN for public assessing or not</u>.
So, the correct answer is the Logical Network Diagram.