subject

Write the following program in c++ to print:
q1. the following pattern on the screen
@
@@
@@@

q2. to accept a name from the user and print it with a message.
q3. write a c++ program to accept percentage from the user and display it with a congratulations message. eg: congratulations you have scored xy% in the exam.
q4. write a program to accept a number from the user and identify whether the given number is odd or even.
q5. write a program to accept the radius of a circle from the user and display the area of circumference of the circle.
syntax:
area of circle= pi*radius*radius*
circumference= 2*pi*radius

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 05:00
Modern businesses use different technologies to accomplish work tasks
Answers: 2
question
Computers and Technology, 22.06.2019 05:00
Pls do you believe that the use of 3d animation has grown in feature films over the last few years? if so, do you think the trend will continue? what are the forces driving this trend?
Answers: 2
question
Computers and Technology, 22.06.2019 05:10
Suppose we have a byte addressable computer that has a 32-byte cache with 8 bytes per block. the memory address is 8 bits long. the system accesses memory addresses (in hex) in this exact order: 6e, b9, 17, e0, 4e, 4f, 50, 91, a8, ab, ad, 93, and 94. (a) assuming the cache is direct mapped, what memory addresses will be in cache block 2 after the last address has been accessed? (b) assuming the cache is direct mapped, what is the hit ratio for the entire memory reference sequence given, assuming the cache is initially empty? (c) assuming the cache is 2-way set associative with a lru replacement policy, what is the hit ratio?
Answers: 3
question
Computers and Technology, 22.06.2019 15:10
Consider a direct-mapped cache with 216 words in main memory. the cache has 16 blocks of 8 words each. it is a word-addressable computer (rather than a byte-addressable computer which we normally discuss). (a) how many blocks of main memory are there? (b) what is the format of a memory address as seen by the cache, that is, what are the sizes of the tag, cache block, and block offset fields (if they apply)? (c) to which cache block will the memory reference db6316 map?
Answers: 1
You know the right answer?
Write the following program in c++ to print:
q1. the following pattern on the screen
@<...
Questions
question
Mathematics, 12.12.2019 15:31
question
Mathematics, 12.12.2019 15:31
question
Social Studies, 12.12.2019 15:31
question
Mathematics, 12.12.2019 15:31
Questions on the website: 13722363