Question

use for loop only, c++ i have most of it done, I just don't know how to go by 10 on this line:

for(int i = start;i<=end;i++)

so you don't have to do the whole thing, just let me know how to go by 10 on the table.

4. Enter the table size (start, end): 10 100 10 XX.XX XX.XXXX.XX 20 xx.xxXX. 100 xX.xxxX.xxxx.xx € (Euro), £ (British Pound),

0 0
Add a comment Improve this question Transcribed image text
Answer #1
#include <iostream>
using namespace std;

int main(){
   int start, end;
   cout<<"Enter the table size(start, end): ";
   cin>>start;
   cin>>end;
   
   cout<<"$\t\tE\t\tB\t\tY"<<endl;
   cout<<"---------------------------------------------------------------"<<endl;
   for(int i = start;i<=end;i+=10){
      cout<<i<<"\t\t"<<(i*0.89)<<"\t\t"<<(i*0.76)<<"\t\t"<<(i*111.95)<<endl;
    }
    return 0;
}
Add a comment
Know the answer?
Add Answer to:
use for loop only, c++ i have most of it done, I just don't know how...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • This is a c# assignment Please do not post just the code, I don't even know...

    This is a c# assignment Please do not post just the code, I don't even know how to start the project. Please explain step by step how I could complete this assignment. Thank you for your time! Create a database that stores baseball player information. You will have the following columns. You will need to have the ability to add rows and display the records. You may use LINQ or Given example using an access accdb file... Name string Batting...

  • I ONLY NEED A FLOWCHART [USE A LOOP], NO CODE PLEASE. PLEASE IF YOU DON'T KNOW...

    I ONLY NEED A FLOWCHART [USE A LOOP], NO CODE PLEASE. PLEASE IF YOU DON'T KNOW THE ANSWER DON'T JUST PUT WHATERVER HERE DRAW A FLOWCHART for a program that executes the following equation: f[i] = s *(z2[i] + z[i] +r) where N < 64, z is an input array of N elements, s = 0.25, and r is an integer constant.

  • I have the answers, I just need to know how to find the answers myself. a)...

    I have the answers, I just need to know how to find the answers myself. a) Assume that a speculator purchases a European style put option on euros for $0.0599 per unit. The strike rate is 1.1231. A euro option represents 125,000 units. Assume that at the time of the purchase, the spot rate of the euro is $1.1728 and changes to $1.191 by the expiration date. The net profit for the speculator based on the information above is: Answer...

  • I have a solution, but don't know how to get it:

    I have a solution, but don't know how to get it: 3. A businessman purchases perishable commodities in the wholesale market at $10 each and sells them on the retail market at $15 each. He hence makes a profit of $5 for every unit he sells. But the commodities are perishable and so any units unsold at the end of the day are discarded and he incurs a loss of $10 on each unit he discards. (I've chosen toy numbers...

  • = = = = = =I have the answer, but I don't know how to get...

    = = = = = =I have the answer, but I don't know how to get it. Please show me how to do. thanks I have the answer, but I don't know how to get it. Please show me how to do. thanks I have the answer, but I don't know how to get it. Please show me how to do. thanks I have the answer, but I don't know how to get it. Please show me how to do....

  • I would just like to know how these are done! If you guys can show me...

    I would just like to know how these are done! If you guys can show me a formula or an example as to how these types of reactions are done that would be great! Thanks! a)Alkylation of an Ester b)Acid Catalyzed Hydrolysis of of an Amine

  • This is lab report for identification of hydrocarbon. I have my data for hydrocarbon but i don't know how to explain for...

    This is lab report for identification of hydrocarbon. I have my data for hydrocarbon but i don't know how to explain for question 1. Can u help me with it? And i will attcah the table 1 for possible hydrocarbon. 58 Table 1. List of possible hydrocarbons Boiling point Refractive Hydrocarbon Name (°C) index (n20) cyclopentane 49 1.4065 2,2-dimethylbutane 50 1.3688 2,3-dimethylbutane 1.3750 3-methylpentane 63 1.3765 n-hexane 69 1.3749 methylcyclopentane 72 1.4097 2,4-dimethylpentane 80 1.3815 cyclohexane 81 1.4266 2,3-dimethylpentane 90...

  • Please provide a step by step solution. The most confusing thing is that I don't know...

    Please provide a step by step solution. The most confusing thing is that I don't know how to find t value of 97% confident interval on the T-table. A shoe store wants to estimate the average shoe size of their customers. It is assumed that the shoe size of their customers follows a normal distribution. It is known from previous experience that the standard deviation of shoe size is 2.4 inches. They take a sample of 40 customers and obtains...

  • please don't use any abbreviations! like I don't know how to draw anything like oet or...

    please don't use any abbreviations! like I don't know how to draw anything like oet or an R group like please just draw out the whole thing! NaOH ethanol HO This reaction involves an intramolecular Michael reaction followed by an intramolecular aldol reaction. The steps involved are as follows: 1. Deprotonation to form enolate ion 1; 2. Cyclization via an intramolecular Michael reaction to form intermediate 2; 3. Deprotonation to form enolate ion 3; 4. Intramolecular aldol cyclization to form...

  • Can you please show me step by step? I am lost. I don't know where to...

    Can you please show me step by step? I am lost. I don't know where to start. I can not use excel. I have the answer. I just don't know how to get it. a 0.05 n100 40 21 |The President of UTA is interested in estimating the proportion of Statistics students who drop BUSA 3321 this semester with an UPPER ONE-TAILED 100*(1 a)% confidence interval (a is shown on right). This semester there were n students enrolled in 3321...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT