How would you put a empty space between output

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

How would you put a empty space between output, right now it prints 6 rows but how do i add a space or a "\n" for example

row1

row2

row3

blank space

row22

row 23

row24

for (i=1; i<=months; i++)
{
if (i<=3 || i>=(months-2))
{
accInt = (loanAmount) * (monRate); // accured interest
principal = monPayment - accInt; // the new princiapal
lastBalance = loanAmount - monPayment + accInt; //the last balance from the loan amount
sumInterest += accInt;
if (i==months)
lastBalance = 0; // if its the last month it has to equal zero
// output of all the loan information
myOut << fixed << setprecision(0) << i <<"\t""$"<< fixed<<setprecision(2)<<accInt<<"\t""$"<<fixed<<setprecision(2)<<principal<<"\t""$"<<fixed<<setprecision(2)<<lastBalance<<"\n";
loanAmount = lastBalance; //updats new loan amount
}

}
myOut <<"\n" <<"Total interest paid: $" <<fixed<<setprecision(2)<<sumInterest;

Reference no: EM13168436

Questions Cloud

How long should it take you to reach new york : You pass a road sign saying "New York 115 km." If you drive at a constant speed of 65 mi/h, how long should it take you to reach New York? (Round to the nearest minute.)
An analysis of a group of weight measurements : An analysis of a group of weight measurements involves converting a weight value into an integer category number that is determined as follows
What is the theoretical and percent yields of ethanol : what is the theoretical and percent yields of ethanol if 648 grams of sucrose undergoes fermentation and 349 grams of ethanol is obtained.
The saffir-simpson hurricane wind scale classifies : The Saffir-Simpson hurricane wind scale classifies hurricanes into five categories based on the intensity of their sustained winds. A category one hurricane has wind speeds between 74 and 95 miles per hour (mph)
How would you put a empty space between output : How would you put a empty space between output, right now it prints 6 rows but how do i add a space or a "\n" for example row1 row2 row3
What is the pressure in the tank at a constant temperature : A 80.0-L stainless steel container was charged with 4.00 atm of hydrogen gas and 5.00 atm of oxygen gas. A spark ignited the mixture, producing water. What is the pressure in the tank at a constant temperature of 25°C?
Construct the student class student.h : Construct the Student Class Student.h and Student.cpp student class should include a Student.h header file for your class definitions and a Student.cpp implementation file comprised of first name, last name, ram id
Short memo to the vice-president of production : Write a short memo to the vice-president of production recommending whether the availability of any of the three resources (blending, purification, or labor) should be increased from current levels. If you recommend an increase, specify at most ho..
What are the solute particles present in aqueous solutions : Methanol, CH3OH, is a nonelectrolyte; acetic acid, HC2H3O2, is a weak electrolyte; and ammonium chloride, NH4Cl, is a strong electrolyte. What are the solute particles present in aqueous solutions of each compound? (Select all that apply.)

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