Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,152,239 members, 7,815,326 topics. Date: Thursday, 02 May 2024 at 10:52 AM

C++ Program That Convert Swidish Ore To Crown - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / C++ Program That Convert Swidish Ore To Crown (830 Views)

Help! Im Stuck With This C# Program / [source Code] A Program That Solves A Transportation Problem - By Frank UMEADI / Please Programmars Help Me Out With This C# Program! I Have Test Tommorrow!!!!! (2) (3) (4)

(1) (Reply)

C++ Program That Convert Swidish Ore To Crown by oluagness(m): 5:29am On Oct 15, 2015
A friend gave me this assignment but find it hard to solve. I have left programming for a while. Please help.

c++ program that convert swidish ore to number of 50 ore coin, crown, 20 crowns and 100 crown notes.
Re: C++ Program That Convert Swidish Ore To Crown by Nobody: 8:45am On Oct 15, 2015
oluagness:
A friend gave me this assignment but find it hard to solve. I have left programming for a while. Please help.

c++ program that convert swidish ore to number of 50 ore coin, crown, 20 crowns and 100 crown notes.

Let me try......

#include <iostream>;
#include <math>;

using namespace std;
int main()
{
float swd;
cout << "Enter the Swedish ore you wish to convert ";
cin>> swd;

// let's convert this value to its equivalent coin
// the algorithm applied is a simple cross
//multiplication, if 1 ore equals 50 coins,
//therefore,x coins equals 50 * swd

float coin = 50 * swd ;

cout << "the equivalent value is ";
cout << coin;

System("Pause"wink;
return 0;
}

3 Likes 1 Share

Re: C++ Program That Convert Swidish Ore To Crown by oluagness(m): 10:45pm On Oct 15, 2015
Thank you bro.

(1) (Reply)

Top 5 Reasons Why Your School Website Needs To Be Mobile Optimized / Mozilla Firefox Parts Ways With Windows XP, Vista (read More) / Get Ur Programming Video Tutorials Treehouse Complete Webdesign Video Etc

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 8
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.