Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q 1 [ 7 pts ] : Basic types, assignment, input and output, formatted output Input two float numbers indicating monthly revenue for a start

Q1[7pts]: Basic types, assignment, input and output, formatted output
Input two float numbers indicating monthly revenue for a start-up as well as its monthly expenses: assign those numbers to the variables revenue and expense.
Print the revenue and expense of the start-up. Make sure that both numbers have the same format: that is, make sure each floating-point value has two digits after the decimal point
Example:
Input:
revenue: 125342.56
expense: 112000.00
Output:
Monthly revenue is 125342.50, expense is 112200.00.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Get Funded The Startup Entrepreneurs Guide To Seriously Successful Fundraising

Authors: John Biggs, Eric Villines

1st Edition

1260459063, 978-1260459067

Students also viewed these Databases questions