Write a cpp program to declare two integer

Assignment Help C/C++ Programming
Reference no: EM131221009

Q. 1 Write a C++ program to declare two integer , one float variables and assign 10, 15, and 12.6 to them respectively. It then prints these values on the screen.

Q. 2 Write a C++ program to prompt the user to input her/his name and print this name on the screen, as shown below. The text from keyboard can be read by using cin>> and to display the text on the screen you can use cout<<.

3. Write a program in c++ that prints a 'pyramid' shape of a specified height on the screen.

Q.4 Write a program that print the following menu and get a user choice and execute the program.

*****Menu****

1.Swap Number
2.Grade
3.Pyramid
4.Reverse
Enter a User choice:

Hint: Use switch statement or for exit from program use "exit (1);" statement.

Reference no: EM131221009

Questions Cloud

Do some research on adjustable rate mortgages : Do some research on adjustable rate mortgages. One source is Freddie Mac's Annual ARM Survey.- Since 2009, when ARMs were 3 percent of prime mortgages, has this percentage remained low or risen?
Determine the monthly payments for a 30 year loan : You want to buy a $300,000 home with 20% down payment. The current compound interest rate is 4.5%.
Describe a unique product : Describe a unique product that is needed and explain how marketing helped met that need?
How will you record information : Briefly describe (1-2 paragraphs) the time line/methods you plan to use to complete the Course Project. When and how will you reach out to your resources? How will you record information? When and how will you consolidate information into your fin..
Write a cpp program to declare two integer : Write a C++ program to declare two integer , one float variables and assign 10, 15, and 12.6 to them respectively. It then prints these values on the screen.
How strong is relation between ipos and shareholder rights : How strong is the relation between IPOs and shareholder rights? - Are there exceptions to the usual relation? What might explain these exceptions?
Contract negotiations pivot : Almost all contract negotiations pivot on, and most grievances thus ultimately deal with, four major areas: wages and issues that can be directly related to wages, employee benefits, institutional issues, and administrative clauses. Research the f..
Write a script that takes a vector of numbers : Write a script that takes a vector of numbers, A, and return a new vector B, containing the cubes of the positive numbers in A. If a particular entry is negative, replace its cube with 0.
What are the three components of the cia triangle : What are the three components of the CIA triangle? Describe what they are used for and provide examples of threats that could impact each component.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd