Stats: 3,191,828 members, 7,945,667 topics. Date: Tuesday, 10 September 2024 at 10:38 PM |
Nairaland Forum / Science/Technology / Programming / C++ Program That Convert Swidish Ore To Crown (859 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: 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" ![]() 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)
Keyword Position Checker / How To Add A Banner To A Blogger Blog / Nigerian News Website For Sale(own Your Own News Website That Runs On Autopilot)
(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. 12 |