Write a C++ program which displays the following shape.
Please help me out with it.

Write A C++ Program Which Displays The Following Shape. Please Help Me Out With It.

Answers

Answer 1

Answer:

/*

Notably, this leaves a blank line at the top, so if that shouldn't be there you can tweak it.

This was built successfully with gcc

gcc -Wall shape.cpp -lstdc++

*/

#include <iostream>

using namespace std;

int main(void){

   int w, x;

   for(w = 0; w < 16; w += 2){

       for(x = 0; x < w >> 1; x++){

           cout << "*";

       }      

       for(x = w; x < 14; x++){

           cout << " ";

       }      

       for(x = 0; x < w >> 1; x++){

           cout << "*";

       }      

       cout << endl;

   }  

   return 1;

}


Related Questions

Geneiva is looking for a document. She hasn't used this document in years, and yet it is still in Recent Documents. Which of the following best explains the this?
A) She is experiencing a computer glitch that allows Recent Documents to retain all used documents.
B) She has used fewer than nineteen other documents since the last document was last used.
C) The document is pinned, and she is experiencing a computer glitch that allows Recent Documents to retain all used documents.
D) The document is pinned, or she has not used nineteen documents since the document last was last used.

Answers

Answer:

The document is pinned, and she is experiencing a computer glitch that allows Recent Documents to retain all used documents.

Explanation:

imm jus different

Explanation:

Answer is D i just did the review

Select the correct answer.

Which aspect of visualizing rationalized space requires that objects must have relative space between two surfaces?

A.
color
B.
light
C.
elevation
D.
shadows

Answers

it’s B i think, not exactly sure though

Imagine a day without electricity. What would it be like? 6-7 sentence

Answers

Answer:

A day without electricity would be quite inconvenient. We wouldn't be able to do the things that we enjoy and the things that we need to get done. This would include not being able to go on social media, play many different types of video games, and we just wouldn't have access to the internet. Some more examples would be not being able to do homework or classwork online, not being able to attend class, and we won't be able to see during the night. To substitute our absent source of electricity, we could use candles, camping lights, and or lanterns. Overall, the day without electricity would interrupt our daily lives, especially those who depend on it the most.

Explanation:

hope this helps!! :))

pls vote brainliest if it helped u answer the question! :D

HELP ME PLEASE !!!!!!!!!!

Answers

Answer:

the last one

Explanation:

20
Select the correct answer.
Why is it important to use effective search terms when looking for information on the web?
ОА.
because ineffective search terms can slow down the search engine
OB.
to avoid having to navigate through irrelevant results
OC.
to avoid having to choose from too many relevant results
OD.
because ineffective search terms can bring up too few results
Reset
Next

Answers

Answer:

B

Explanation:

complete guess but makes sense

Answer: C

Explanation:

If there is a need to write code in order to help the player move through the game which team member would create this code?

Answers

Answer:

Run code, and then check the code

Explanation:

5
Select the correct answer.
Celine's computer motherboard malfunctioned and had to be replaced. On starting her computer again, she finds that the logo and other
startup text have changed completely, although there is no change to her desktop and personal files. Which storage device is likely to have been
changed?
ОА. .
DVD drive
OB.
ROM
hard disk
OD
sound card
OE.
RAM
Reset
Next
Look

Answers

Answer:

I believe the answer is B

Explanation:

ROM is most of the internal data stored on the computer

Answer:

B

Explanation:

I took the test

Which is a correctly formatted Python tuple? [12, "circle", "square"] {"n":12, "shape1": "circle", "shape2": "square"} (12, "circle", "square") 12 circle square

Answers

Answer:

(12, "circle”, “square")  

Explanation:

Python is a computer programming language that is used to write programs. In the python programming language, the Tuple is a data type that can be defined inside a parentheses "()". It is of immutable kind which means the elements inside the parentheses cannot be changed once the elements are inserted inside the tuple. It is also defined by "()" or by predefined function, tuple().

In the context, the correct format of python tuple is : (12, "circle”, “square").

Answer:

(12, "circle”, “square")

Explanation:

       

What statement best describes entrepreneurship?

Answers

Answer: D

Explanation:

Answer

Option: It requires creativity and ambition.

Hope this helps, have a wonderful day/night, stay safe, happy holidays, and merry Christmas!

An alias is helpful because having two copies of the same table can be confusing.

Answers

Answer:

Correct aliasing is very useful when you provide or insert a new value Say you have the c= (2,3,4,5) You do c= lst.pop(2)Now the new c doesn't have 4 such that (2,3,5)

What steps will change an existing macro? Use the drop-down menu to complete the steps.
1. Go to the
tab on the ribbon.
2. In the Macros group, click
3. Click
, which will open the VBA editor.
4. Find and change the code and Save and Close.

Answers

Answer:

1. View

2. View macros

3. Edit

Explanation: completed on edge

Write a program to compute an employee's weekly pay and produce a pay slip showing name, gross, pay, deductions, and net pay. The program should first prompt the user for: a. Family name b. Given name c. Hourly rate of pay d. Number of hours worked that week (Any hours over 40 are paid at double the normal hourly rate) e. A letter indicating the employee's tax category A. No tax deduction B. Tax is 10% of gross pay C. Tax is 20% of gross pay D. Tax is 29% of gross pay E. Tax is 35% of gross pay f. Either a Y or an N to indicate whether or not the employee wants $20 deducted from the weekly pay as a contribution to the United Way Charity

Answers

Answer:

# get the employee data

family_name = input("Enter family name: ")

given_name = input("Enter given name: ")

hourly_rate = int(input("Enter hourly rate of pay: "))

hours = int(input("Enter hours worked for the week: "))

tax_cat = input("Enter tax category from a through e: ")

is_charit = input("Do you want to donate $20 to charity y/n: ")

gross_pay = 0

net_pay = 0

deductions = ""

# gross_pay

if hours > 40:

   gross_pay = hours * (2 * hourly_rate)

else:  

   gross_pay = hours * hourly_rate

# net_pay and deduction

if tax_cat == 'a':

   if is_charit == 'y':

       net_pay = gross_pay - 20

       deduction = "$20 charity donation"

   else:

       net_pay = gross_pay

       deduction = "0% tax"

elif tax_cat == 'b':

   if is_charit == 'y':

       net_pay = gross_pay - ( 0.1 * gross_pay) - 20

       deduction = "$20 charity donation and 10% tax"

   else:

       net_pay = gross_pay - (0.1 * gross_pay)

       deduction = "10% tax"

elif tax_cat == 'c':

   if is_charit == 'y':

       net_pay = gross_pay - ( 0.2 * gross_pay) - 20

       deduction = "$20 charity donation and 20% tax"

   else:

       net_pay = gross_pay - (0.2 * gross_pay)

       deduction = "20% tax"

elif tax_cat == 'd':

   if is_charit == 'y':

       net_pay = gross_pay - ( 0.29 * gross_pay) - 20

       deduction = "$20 charity donation and 29% tax"

   else:

       net_pay = gross_pay - (0.29 * gross_pay)

       deduction = "29% tax"

if tax_cat == 'e':

   if is_charit == 'y':

       net_pay = gross_pay - ( 0.35 * gross_pay) - 20

       deduction = "$20 charity donation and 35% tax"

   else:

       net_pay = gross_pay - (0.35 * gross_pay)

       deduction = "35% tax"

# output of the employee's weekly pay.

print(f"Employee name: {given_name} {family_name}")

print(f"Gross pay: ${gross_pay}")

print(f"Net pay: {net_pay}")

print(f"Deductions: {deduction}")

Explanation:

The python program uses the input built-in function to prompt and get user data for the program. The gross pay returns the total pay of the employee without any deduction while net pay returns the pay with all deductions included.

Some students are studying the amount of pollution in a river They are using a computer to measure the pollution level using sensors to record and print the result.
Name two sensors they should use to measure the amount of pollution.

Answers

Answer:

optical sensors

Explanation:

optical sensors measure the amount of gases like carbon dioxide and carbon monoxide in the air

Why can videos be streamed from the cloud to a computer with no loss in
quality?
A. Digital signals are used to transmit data to and from the cloud.
B. The cloud is closer to the computer than the source of analog
signals is.
C. The signals to and from the cloud alternate between analog and
digital signals.
D. They are transmitted using digital signals and received using
analog signals.

Answers

I think the answer is B

Videos can be streamed from the cloud to a computer with no loss in quality because Digital signals are used to transmit data to and from the cloud.

What are Digital signals?

A digital signal is  known to be a kind of  signal that is set up or is one that stands for data as a step made up of discrete values.

Note that Videos are said to be  streamed from the cloud to a computer with no loss in quality because Digital signals are employed for the sending of data to and from the cloud.

Learn more about Digital signals from

https://brainly.com/question/6608415

#SPJ2

22
Select the correct answer from each drop-down menu.
Complete the sentence describing good email etiquette.
Avoid
without
Reset
Next

Answers

Answer:

Avoid sending large attachments without reducing their size using compression software

Explanation: I took the test and got it right ;)

Which is used to configure Hyper-V on a Windows 10 device?
A. Start
B. Settings
C. Control panel
D. Hyper-V Manager​

Answers

Answer:

A.start

This is how you do it,in case you don't know how to.

Right click on the Windows button and select 'Apps and Features'. Select Programs and Features on the right under related settings. Select Turn Windows Features on or off. Select Hyper-V and click OK.

Angie is trying to decide which cell phone to buy. There are many choices each with its own distinct advantages and disadvantages. Which of the following would be most useful for Angie when making her decision?
System analysis
Pugh chart
Rise-benefit analysis
life cycle analysis

Answers

Answer:

pugh chart

Explanation:

system analysis- The Merriam-Webster dictionary defines system analysis as "the process of studying a procedure or business in order to identify its goals and purposes and create systems and procedures that will achieve them in an efficient way".

Pugh chart- A Pugh chart is a quantitative technique used to rank the multi-dimensional options of an option set. And most importantly, it is not weighted to allow a quick selection process. It is named after Stuart Pugh who was a professor and head of the design division at the University of Strathclyde in Glasgow.

Rise-benefit analysis- A cost-benefit analysis (CBA) is the process used to measure the benefits of a decision or taking action minus the costs associated with taking that action. A CBA involves measurable financial metrics such as revenue earned or costs saved as a result of the decision to pursue a project.

life cycle analysis- Life cycle analysis (LCA) is a method used to evaluate the environmental impact of a product through its life cycle encompassing extraction and processing of the raw materials, manufacturing, distribution, use, recycling, and final disposal.

You wrote a list of steps the user will take to perform a task. You have created a

Answers

Answer:

You created an algorithm

Explanation:

The question would be better answered if there are options. Since there is none, I'll answer on a general term.

One answer that fits the description in the question is an algorithm. When you write an algorithm, you have written a guide or a step to achieve/complete a task.

Take for instance, you wrote step by step on how to use a microwave or for a user to operate a computer or for whatever instruction it might be; what you have done is that you have written an algorithm.

This is then further divided into two;

The instructions could be in form of (1) a flowchart or (2) a pseudocode

Irrespective of (1) & (2), what you've created is an algorithm.

write sql commands to the following:-
1. display the average price of each type of vehicle having quantity more that 20.
2. count the type of vehicle manufactured by each company
3. display the total price of all the types of vehicles

plssss answerrr...​

Answers

Answer:

I can't seem to add SQL to the answer, so let's try this:

For the first one, you need to build a select that uses the avg function on the price column.

For the second one, you need to use the count function.  Select that and the company, and group by company.

For the third, it's slightly unclear.  Do they mean to mean to display the total price of all vehicles or the total price of each type of vehicle.  The former would just be done by selecting a sum of the price.  The latter by selecting that and the type column, grouping by type.  I'm not sure if type is a keyword, so you might need backtick quotes wrapped around it.

See below for the SQL command of each category

How to write the SQL commands?

To do this, we make use of the following clauses:

SELECTAVERAGEWHERECOUNT

Using the above highlight, we have:

Average price of each vehicle having quantity more than 20.

The table name is given as: Vehicles

To display the average, we use the following query:

SELECT

Type, avg(Price)

FROM Vehicle

GROUP BY Type

HAVING QTY >20;

Count type of vehicle by each company

To count each type of vehicle, we use the following query:

SELECT

company, COUNT(DISINCT Type)

FROM VEHICLE

GROUP BY Company;

Display the total price of all

The total price is calculated using:

Total = Price * Quantity

So, we have the following query:

SELECT

Type, SUM(Price* Qty)

FROM VEHICLE

GROUP BY Type;

Read more about SQL at:

https://brainly.com/question/25694408

#SPJ2

Why Is hexadecimal used for memory dumpsit:​

Answers

Answer:

Hexadecimal is used when developing new software or when trying to trace errors in programs. The contents of part of the computer memory can hold the key to help solve many problems. When the memory contents are output to a printer or monitor, this is know as a Memory Dump.

Answer:

Hexadecimal is used when making a new software/when attempting to discover bugs in programs. The contents of part of the computer memory can assist in solving many issues the program may have.

Give 5 reasons why wood is seasoned​

Answers

To allow moisture to evaporate from the wood, to burn more efficiently, prevents damage to the wood, prevents problems when used in construction, That’s four
Wood is seasoned???????????

Anyone know how to take a screen shot with keyboard or keyboard shortcut on Apple iPad?
Will mark the brainliest.
Thx.

Answers

Answer: Command-Shift-3

Explanation:

Command-Shift-3 for screenshot. u can also do Command-Shift-4 if u want to edit the screenshot right away

Justice wrote a program and forgot to put the steps in the correct order. What might happen if her sequence is out of order?

The program may not work correctly.
The program will work correctly.
She will not be able to test the code.
The user will not understand the code.

Answers

Answer: I believe it's "The user will not understand the code".

Explanation:

Answer:

the program wioll not work correctly

Explanation:

The system would not work because it would not understand the code.

how can i fix this???

Answers

Answer:

ummm it seems like that you've destroyed (crack) your screen. Either take it to a repair shop or if you know how, try fixing it yourself

Jason is the network manager and is leading a project to deploy a SAN. He is working with the vendor's support technician to properly set up and configure the SAN on the network. To begin SAN I/O optimization, what should Jason need to provide to the vendor support technician

Answers

Answer:

Network diagrams.

Explanation:

In this scenario, Jason is the network manager and is leading a project to deploy a storage area network (SAN). He is working with the vendor's support technician to properly set up and configure the SAN on the network. To begin SAN input and output (I/O) optimization, Jason need to provide the network diagram to the vendor support technician.

A network diagram can be defined as a graphical representation of the topology of a network connection.

Basically, it gives an illustration of all the equipments such as routers, switches, hubs etc.

There are different ways too navigate in a network. To begin SAN I/O optimization, Jason need to provide Network diagrams.

A network diagram is known to be a visual depiction of network architecture.

It is often used to maps out the structure of a network with a lot of different symbols and line connections. This information is known to be important when knowing the right Storage Area Network (SAN) to use and so will be the right choice for Jason.

See full question below

Jason is the network manager and is leading a project to deploy a SAN. He is working with the vendor's support technician to properly set up and configure the SAN on the network. To begin SAN I/O optimization, what should Jason need to provide to the vendor support technician?

Options are :

Asset management document

Baseline documents

Network diagrams

Access to the data center

Learn more about network diagram from  

ainly.com/question/8147877

PLS HELP HEEEELLLLLLLLPPP WILL GIVE BRAINLIEST
What is the importance of using the proper markup language?
A. HTML allows the search engine to "talk" to the web browser
B. HTML tells the web browser where the page should be filed
C. Without the right tags the content won't be accurately indexed
D. Without HTML, the keywords cannot be read by the search engine.

Answers

Answer:

First of all, we need to define the term markup language. A markup language is a human-readable language that is used by a computer to annotate an electronic document so that the computer can better understand the style and structure of the document.

In computer text processing, a markup language is a system for annotating a document in a way that is syntactically distinguishable from the text, meaning when the document is processed for display, the markup language is not shown, and is only used to format the text

Explanation:

hich type of denial of service (DoS) attack occurs when a name server receives malicious or misleading data that incorrectly maps host names and IP addresses

Answers

Answer:

DNS poisoning

Explanation:

This type of attack is known as DNS poisoning it is a very common attack that focuses on trying to redirect users of the site that has been attacked towards fake servers. These fake servers belong to the attackers and are used to collect the user's private data, which can then be used by the attackers for a wide range of malicious acts. Aside from stealing user information, this malicious data travels alongside regular user data allowing it to infect various servers easily.

This tag is used to change the appearance of your text on your web page
a line break
b body tag
c font tag
d formatting tags​

Answers

Answer:

b.font tag

is used to change the appearance of your text on your web page

Answer:

b.font tag

Explanation:

please give me brainliest

Which is an example of emoticon use?
A. Putting text in capital letters
O B. Including a smiley face in a text
C. Adding "xo" to show a hug and kiss
D. Creating an acronym for a phrase

Answers

I think it’d be answer B
(I do psychology and it’s kind of similar to this)

Fill in the blank with the correct response.
_______surveys are measurement tools that use a series of questions to obtain data from respondents.

Answers

Answer:

"Questionnaire" would be the perfect approach.

Explanation:

A questionnaire would be a study tool consisting of a series of issues and perhaps other forms of commands which have been intended to gather data from the respondents.  This is indeed a valuable instrument used to collect responses from participants throughout a broad range of ways, consumer insight, and purchasing habits across marketing strategy.
Other Questions
help help guys show your solution and also answer the question Find the unit prices to the nearest tenth of one cent 12 oz for $2.10 How large was the Mongol empire under Kublai khan?It stretched from the Pacific Ocean to Eastern EuropeIt stretched from North Africa to the island of Great BritainIt was only in indiaIt stretched all off Europe What was the advantage of stone masonry in the construction of cathedrals? Vaults were more cost effective Cut stone was readily available It was less susceptible to fire It was reminiscent of pagan architecture (100 points)1. Everyone experiences stress, though some deal with it more effectively than others. Explain generaladaptation syndrome and its phases. Discuss how catastrophes, significant life changes, and dailyhassles may affect the phases. How can coping skills mediate the impact of each? What stage of prenatal development begins with conception? (2 points) Germinal Fetal Embryonic Birth how was the qing dynasty's policy of trade with Europe similar to that of the Ming dynasty? How may a lack of proteins in a person's diet affect the body? How many cubic inches are needed to fill thisrectangular prism?10 in.9 in.5 in. 10. Parmentier Company uses the weighted-average method in its process costing system. The Molding Department is the second department in its production process. The data below summarize the department's operations in January. The accounting records indicate that the conversion cost that had been assigned to beginning work in process inventory was $5,096 and a total of $87,668 in conversion costs were incurred in the department during January. What was the cost per equivalent unit for conversion costs for January in the Molding Department Let |a| = 12 at an angle of 25 and |b| = 7 at an angle of 105. What is the magnitude of a + b? Round to the nearest decimal. 12.814.915.417.3 Roger and Rita each drive at a constant speed between Phoenix and San Diego. Each drivers distance for the same section of the trip is displayed below.Who had a head start, and how many miles was the head start? Park Hyatt Philadelphia has 118 king/queen rooms that it offers to both leisure and business travelers. With leisure travelers in mind, the Hyatt offers a $125 low fare for a midweek stay, which contrasts with the regular fare of $300. The forecasted demand for business travel is normally distributed with a mean of 60 customers and standard deviation of 20 customers. Assuming that leisure travelers always reserve their rooms earlier than business travelers. To maximize the revenue, the Hyatt decides to save some rooms for business travelers. The optimal number of rooms protected should be:__________ a. 118 c. >60 d. =60 plzzzzzzzzzzzzzzzzzzz help soon asap What is an added value??? To make 2 dozen brownies, Jake needs to use 8 tablespoons of butter. How many tablespoons of butter are used in one dozen? Write three sentence or if u want to write more, write more A 45 kg wagon is being pulled with a rope that makes an angle of 38 degrees with the horizontal. The applied force is 410 N and the coefficient of kinetic friction between the wagon and the ground is 0.18. 18. (ACED 2) A drver starts a journey with 25 gallons in the tank of his car. The car burns 5 gallons for every 100miles Assume the amount of gasoline in the tank decreases linearly. Igal 20 milesa White an equation to represent the number of gallons left in the tank at any given distance (in miles).b. Identify the variables used.c. How many miles will the car have traveled when it runs out of gas? Katniss mother's sole survival skill while she is in the games and her only way to earn money is as an _______ Blank: