Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,209,067 members, 8,004,750 topics. Date: Sunday, 17 November 2024 at 05:38 AM |
Nairaland Forum / Science/Technology / Programming / C++ Program That Convert Swidish Ore To Crown (872 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)
You Need A Cool App Or Website? / Programming Lectures / A Passionate Web Developer Needed As A Tutor
(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 |