COMP 248 Lecture Notes - Lecture 1: Master Of Music

71 views1 pages

Document Summary

/* purpose: this program calculates the change to be given by a roman vendor. /* we assume that the client always pays 1 solidus (7200 nummus) and. /* that the item costs between 1 to 7200 nummus. The following will be used throughout this code for readability and public class romanchangev1 public static void main(string[] args) // constant variables to represent the value of each denomination in. Nummus efficiency final int one_solidus = 7200; final int one_miliarense = 600; final int one_siliqua = 300; final int one_follis = 40; // main variables int price; int nbmiliarense = 0, nbsiliqua = 0, nbfollis = 0; // setting up scanner for keyboard user input. // step 1: getting the price from the user. System. out. print("enter the price of the ticket in nummus (at most. System. out. println("\nyou bought a ticket for " + price + " nummus and gave me a solidus, so your change is");

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents

Related Questions