1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Tom [10]
3 years ago
15

Hi there! I just started my beginner computer science class and I was wondering if anyone wants to help with an assignment i'm h

aving trouble with.
Here are the instructions:

Write a program that contains 3 variables and produces the logic table. You will need to request input from the user to set the variables in the form of T or F for each variable. Try to condense your program so you write a single conditional to produce the table. Place the following at the beginning of your code, with all of your code indented to be in that block, so you have a continuous loop:

while True:


I attatched the logic gate to this question.

Thank you!

Computers and Technology
1 answer:
Alik [6]3 years ago
5 0

After looking at your question, I reasoned you were writing this in python. Here's my code, I hope it helps!

while True:

   v1 = input("Enter value of first variable (T/F) ")

   v2 = input("Enter value of second variable (T/F) ")

   v3 = input("Enter value of third variable (T/F) ")

   print("v1: {}, v2: {}, v3: {} = T".format(v1, v2, v3) if v1 == "T" and v2 == "T" or v1 == "T" and v3 == "T" else "v1: {}, v2: {}, v3: {} = F".format(v1, v2, v3))

You might be interested in
You arrive at school on Friday for a field trip ! What a lucky day!You need to figure out what room you are in before leaving. Y
lisov135 [29]

Answer:

check the roster for which room u need to be in

8 0
3 years ago
Solve using the standard algorithm 758 x 92
Ludmilka [50]

Answer:

69736

Explanation:

      758

      <u>x92</u>

     1516

+ <u>6822   </u>

  69736

6 0
3 years ago
Nothing bottomnothing
elena-s [515]

Answer:humans need energy to complete the regular body requirements to digest our food,to breathe,to move,to run,to travel and continue the metabolism of our regular life.

Explanation:energy is essential to life and all living thing organisms.

8 0
4 years ago
Which of the two previously described wing designs should result in a longer flying time?
Archy [21]

Answer:

If it's a bird than the bigger the wing span the faster it can fly... or possibly glide in the air longer. I think all plan wing sizes don't change the effect of how it goes. If it is something like the sky gliders than yes. It would most likely be in the sky longer.

5 0
3 years ago
Jenny’s needs to buy a computer to create word documents, make presentations, listen to music, and watch movies and videos. Whic
asambeis [7]

Answer:

Windows

Explanation:

The operating system that would be appropiate for Jenny's personal computer is Windows as it is easy to use, the software and programs she is going to need are easily available to install in this operating system and it allows people to interact with it through keyboard and mouse.

6 0
4 years ago
Other questions:
  • . Find four different commands in Internet Explorer and identify their keyboard shortcuts. A. B. C. D.
    10·1 answer
  • Which type of graph or chart measures
    15·2 answers
  • ____ is one of the primary operations of a computer.
    10·1 answer
  • Which type of storage disk and disk drive can you use in the given situation?
    9·1 answer
  • WOULD SOMEONE PLEASE ANSWER THIS IVE ASKED TWICE ALREADY!
    6·1 answer
  • How can you make a search phrase more effective?
    11·1 answer
  • Join me in mincraft I will tell you my code if you want to join and the mincraft I play is mincraft education edition
    8·2 answers
  • In which languages the dynamic web pages are written?<br>​
    10·1 answer
  • How to test someone elese internet speed from a distance
    15·1 answer
  • In python,
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!