Write a program to check the number

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

Assignment 1

Write a program that asks the user to enter an integer from 1 to 50 (make sure to check that numbered entered is between 1 & 50). Displays an isosceles triangle by printing rows of asterisks, 1 asterisk on the first row, 2 on the second, etc., up to the number entered by the user. Then it decreases the number of asterisks by one per line back down to just one in the line printed.

Example: If user enters a 6

*
**
***
****
*****
******
*****
****
***
**
*

Use good programming techniques and prompt to run again.

 

Reference no: EM13859820

Questions Cloud

Planning to retire : Sam Musso is planning to retire in 20 years. He can deposit money at 8% compounded quarterly. What deposit must he make at the end of each quarter until he retires so that he can make a withdrawal of $45,000 semiannually over five years after his ret..
Is this efficient allocation : Alice has 10lbs of cheese and 12 bottles of wine while bill has 6lbs of cheese and 8 bottles of wine. Is this an efficient allocation? If no find a Preto superior allocation. Indicate the contract curve.
What would be the quantity supplied if a price floor is set : What is the answer Market for used cars Qd =154,000 -86 Psupply: Qs=-100 +14 P what would be the quantity supplied if a price floor is set at $2,00
Determining the bidding at a price : Realtor commissions would be $8,000 and upkeep costs, insurance, and property taxes for 3 months would total $2,000. The bank should open the bidding at a price of
Write a program to check the number : Write a program that asks the user to enter an integer from 1 to 50
Explain how a decrease in the interest rate will affect : 1) Explain how a decrease in the interest rate will affect investment.2) Considering the spending multiplier affect, assume the MPC is 0.90.  If autonomous investment increased by $500 billion, what would be the impact on real GDP?
View of responsibility for unemployment : Explain the relationship between one's beliefs about whether the minimum jobs program presented in the chapter actually solves the unemployment problem and one's normative view of responsibility for unemployment.
Urban community that exceeds the emissions standard : Assume that two power plants, Firm 1 and Firm 2, release arsenic in a small urban community that exceeds the emissions standard. To meet the standard, 40 units of SO2 must be abated in total. The two firms face the following abatement costs:
What are the pros and cons of a competitive market : 1) Assume a competitive market has firms earning large economic profits. What is expected to happen over time in this competitive market and to firm's profits?2) What are the pros and cons of a competitive market in the long run?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Code should include a loop that displays income

This code should include a loop that displays income generated from ticket sales for each night. Shows are performed on Thursday, Friday and Saturday nights.

  What is a cell reference

What is a cell reference (also called a cell address) and what is the significance of being able to use them in spreadsheet formulas?

  Prepare an application that creates a quiz

Prepare an application that creates a quiz, which contains at least five questions about a hobby, popular music, astronomy, or any other personal interest.

  Write the entire definition for the main function

Write the entire definition for the main function that prints out all of the command-line arguments on its own line.

  Determine the manner in which each of the provided concepts

Provide a short code example of the use of C++ syntax within the context of an employee database and determine the manner in which each of the provided concepts relates to the concept of object-oriented programming.

  Write a menu-driven c++ program for food purchases

Write a menu-driven C++ program for food purchases at the baseball stadium's restaurant. The main program will loop allowing the user to select food items from the menu adding each item to the bill, terminating when the user selects the "End order..

  Produce a top-level design for your program

You are required to code the program using the C++ Programming Language. Your program should be properly laid out and should be modular, making sure that software engineering aspects of modularity and reusability as fully considered.

  Problem 1 integrationcreate a program to integrate an

problem 1. integrationcreate a program to integrate an arbitrary time-domain signal with variable limits of integration

  Write a program to print the permutation

Write a program to print the permutation that lexicographically precedes the given input permutation.

  Write in c a program to continuously read the dip switches

Write in C a program to continuously read the DIP switches connected to PORTA and send it to PORTB. Assume that eight DIP switches are connected to PORTB and eight LEDs are connected to PORTC. Assume that the switch values are normally high. Turn a..

  Write a program that will call a function

Write a program that will call a function called writeDataToFile to prompt a user for their first name, last name and zip code, and print this information to a file called "UserData.txt". The main function should prompt the user for the same infor..

  Write a program that accepts two real numbers

Write a program that accepts two real numbers from a user and a select code. If the entered select code is 1, have the program add the two previously entered numbers and display the result

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