Welcome to calculator program

Assignment Help Basic Computer Science
Reference no: EM131910471

1 Complete Java program with the following specifications:

  • Display a welcoming message such as: "Welcome to Calculator Program!"
  • Prompt the user twice to enter two positive whole numbers, indicating first and second values, first value being smaller than the second one
  • Calculate the square and cube of each number from first value to second value inclusive and then display an appropriately headered three column table with each row containing the number, its square and its cube respectively
  • Display a farewell message such as: "Goodbye, thank you for using our program!"

2 Complete Java program to calculate the total charge corresponding to purchase of books at a fictional annual book festival. The price of each book is based on its category as described below: 

  • Large print hardback books $10 each or three for $20
  • Small print hardback books $7 each or two for $10
  • All softcover books $5 each or five for $15

An example run of the program might look like the following (user input is shown in bold):

Welcome to the annual book festival!

Enter the number of large print hardback books purchased: 4

Enter the number of small print hardback books purchased: 6

Enter the number of softcover books purchased: 7

Your total bill is: $85

Would you like to calculate another bill (y/n)? y

Enter the number of large print hardback books purchased: 6

Enter the number of small print hardback books purchased: 0

Enter the number of softcover books purchased: 10

Your total bill is: $70

Would you like to calculate another bill (y/n)? n

Total sales in this session: $155

Goodbye!

Reference no: EM131910471

Questions Cloud

Describe the sales process in the employer-sponsored model : Discuss the influence of the Patient Protection and Affordable Care Act on ONE of the four areas: (a) marketing, (b) sales, (c) rating, and (d) underwriting.
Discuss reasons for mixing quantitative and qualitative data : Discuss the reason(s) for mixing both quantitative and qualitative data. Include the characteristics of a good qualitative purpose statement.
Payback period-profitability index-net present value : Calculate the payback period, profitability index, net present value, and inter-nal rate of return for the new strip mine.
Describe information systems functionalities in claims : Describe information systems functionalities in claims management and member services maintained by Managed Care Organizations (MCOs).
Welcome to calculator program : Display a welcoming message such as: "Welcome to Calculator Program!"
Bubble sort over a quick sort : 1. In what situations would you choose to use a bubble sort over a quick sort? Explain why.
What erm model would you recommendation for the company : Review Hoover's report on the National Interstate Corporation by using the Business Market Research Collection in the LIRN (see full reference below).
Evaluate the test market donatos used : Evaluate the test market Donatos used. What were its advantages and disadvantages?
How does social network apply to your personal information : Select a social network and summarize important points you learned about its privacy policy for environment. How does this apply to your personal information?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd