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
Amiraneli [1.4K]
3 years ago
7

Assignment 1: silly sentences edhesive

Computers and Technology
1 answer:
Genrish500 [490]3 years ago
6 0

Answer:

print("Let's play Silly Sentences!")

print(" ")

name=input("Enter a name: ")

adj1=input("Enter an adjective: ")

adj2=input("Enter an adjective: ")

adv=input("Enter an adverb: ")

fd1=input("Enter a food: ")

fd2=input("Enter another food: ")

noun=input("Enter a noun: ")

place=input("Enter a place: ")

verb=input("Enter a verb: ")

print(" ")

print(name + " was planning a dream vacation to " + place + ".")

print(name + " was especially looking forward to trying the local \ncuisine, including " + adj1 + " " + fd1 + " and " + fd2 + ".")

print(" ")

print(name + " will have to practice the language " + adv + " to \nmake it easier to " + verb + " with people.")

print(" ")

print(name + " has a long list of sights to see, including the\n" + noun + " museum and the " + adj2 + " park.")

Explanation:

Got it right. Might be a longer version, but it worked for me.

You might be interested in
He following is a string of ASCII characters whose bit patterns have been converted into hexadecimal for compactness: 4A EF 68 6
almond37 [142]

Answer:

a) Please see below as the answer is self explanatory.

b) odd parity.

Explanation:

As the hexadecimal system, has as its base the decimal 16, which is the 4th power of 2 (base of the binary system), each hexadecimal digit can be expressed of a linear combination of 4 binary digits, as follows:

Hex = b₃*2³ + b₂*2² + b₁*2¹ + b₀*2⁰, where bₙ = 0 or 1.

So, we can convert the hexadecimal bit pattern to binary, as follows:

4A = 01001010

Now, if the leftmost bit is a parity bit, the ASCII code is represented by the 7 rightmost bits:

⇒ ASCII = 1001010 = 74

Repeating the same process for the remaining pairs of hex digits, we have:

EF = 11101111 ⇒ ASCII = 1101111  = 111

68 = 01101000 ⇒ ASCII = 1101000 = 104

20 = 00100000 ⇒ ASCII = 0100000 = 32

C4 = 11000100 ⇒ ASCII = 1000100 = 68

EF = 11101111 ⇒ ASCII = 1101111  = 111

E5 = 11100101 ⇒ ASCII = 1100101 = 101

b) Due to any pair of digits has an odd number of 1s, the parity used is odd parity.

7 0
3 years ago
In C++ :
elena-s [515]

Answer::

//Program is written in C++ Programming Language

// Comments are used for explanatory purpose

#include

#include

#include

#include

using namespace std;

int main(){

ifstream file; // File stream object

string name; // To hold the file name

string inputLine; // To hold a line of input

int lines = 0; // Line counter

int lineNum = 1; // Line number to display

// Get the file name.

cout << "Enter the file name: ";

getline(cin, name);// Open the file.

file.open(name.c_str());// Test for errors.

if (!file){

// There was an error so display an error

// message and end the PROGRAM.

cout << "Error opening " << name << endl;

exit(EXIT_FAILURE);

}

// Read the contents of the file and display

// each line with a line number.

// Get a line from the file.

getline(file, inputLine, '\n');

while (!file.fail()){

// Display the line.

cout << setw(3) << right << lineNum<< ":" << inputLine << endl;

// Update the line DISPLAY COUNTER for the next line.

lineNum++;// Update the total line counter.

lines++;// If we've displayed the 24th line, pause the screen.

if (lines == 24){

cout << "Press ENTER to CONTINUE...";

cin.get();

lines = 0;

}

// Get a line from the file.

getline(file, inputLine, '\n');}

//Close the file.

file.close();

return 0;}

8 0
4 years ago
Write a statement that declares an anonymous enumerated type with the enumerators SMALL, MEDIUM, and LARGE.
MArishka [77]

Enumerated data types are simply data types that contains a set of named values called enumerators.

The required statement is <em>enum {SMALL, MEDIUM, LARGE} ssize;</em>

The syntax of the anonymous enumerated type is:

<em>enum {List of enumerators} name of variable;</em>

From the question, the enumerators are SMALL, MEDIUM, LARGE.

The name of the variable could be ssize

Hence, the anonymous enumerated type statement is:

<em>enum {SMALL, MEDIUM, LARGE} ssize;</em>

<em />

Read more about enumerated data types at:

brainly.com/question/15518342

4 0
2 years ago
This isn't school related but if I get a 2 month free plan and it is expired and I don't have a card attached to my account will
Nadusha1986 [10]

Answer:nothing will change but you are going to have to stop the subscription when the two months are over. That’s if you don’t want to pay for another month

Explanation:

3 0
3 years ago
VLSI is the process of creating an integrated circuit (IC) by combing thousands of transistors into a single chip. There are two
STatiana [176]

Answer:

The process of choosing IC technology depends upon some factors that are as follows:

  • Size of Image
  • Size of Database
  • Transformation method complexity
  • Task after Transformation step

So, by considering the given scenario, first one will be chose that is FPGA.

FPGA stands for Field Programmable Gate Array. It is preferred because it has short design cycle. Moreover while prototyping in FPGA, development kits are present which add a lot to help.

A satisfied amount of speed, power consumption and area requirements are provided by Field Programmable Gate Array FPGA.

<h2>I hope it will help you!</h2>

6 0
4 years ago
Other questions:
  • How many megabytes of data can a factory made audio cd hold?
    13·1 answer
  • _______ is the component of the information system that is described as the equipment that processes data to create information.
    6·1 answer
  • How do you recognize the brand name of a drug in the package insert?
    15·1 answer
  • What is a collection of organized information that allows users to perform certain tasks such as searching for specific informat
    9·1 answer
  • What two items must be given to the socket function in order to create a socket object? A) The socket type that will be used. B)
    10·1 answer
  • Will my ethernet adapter stop eveyone from getting WiFi if connected to my laptop ?
    5·1 answer
  • A domain's ____ settings must be configured correctly so that the mail transfer agent (mta) can establish a connection with a re
    15·1 answer
  • Write two eaxmple of operating system​
    14·2 answers
  • Ok answer me this who do you like better sans or paapyrus? If its another au say wich one P.S. I picked computers bc its a game
    14·1 answer
  • The capacity of your hand drive is measured in​
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!