Program to determine the smallest number out of 15 numbers

Assignment Help C/C++ Programming
Reference no: EM13936957

1. Create a program to determine the smallest number out of 15 numbers entered (numbers entered one at a time from the keyboard). This should be done in prototype:
double smaller (double x, double y);
Make sure you use a for loop expression inside your function. Be sure to include your program prompts for input and a display of the smallest number when you have found it.

2. You are a mortgage broker who is determining whether you should provide a mortgage to perspective home purchasers. If you are willing to provide a mortgage, you need to decide how much you should charge the borrower. You design a point system that assigns perspective borrowers a score of 1,2,3,4, or 5 based on some mysterious
formula. Based on these scores, you come up with the following decisions:

Score Decision

1 Provide mortgage at 5% interest rate

2 Provide mortgage at 6% interest rate

3 Provide mortgage at 7% interest rate

4 Do not provide mortgage

5 Do not provide mortgage

Create a program that takes the scores as input and provides as output the management decision. In the program, include 2 void functions titled getScore and printdecision,each with an int argument.

-The function getScore should have a Reference parameter that gets the score in getScore and then passes the value back to be printed in main (), and print Decision should have a Value parameter.

The function getScore will prompt the user for the integer score from 1 to 5, get the input from the user, and display the input received on the screen. The function printDecision will determine the mortgage decision and print the decision. (Be careful and note that this problem requires you to input the score into getScore and not directly into the main function.)

3. Define a class called Date that has 3private members that represent the month, day, and year respectively. They will be represented as integers. Include a constructor and a public void function called print that prints out the date. (For example, if the month is 2, the day is 25, and the year is 1946, print provides as output 2/25/1946.) Include the class in a program that prints out the date 2/25/1946.

Reference no: EM13936957

Questions Cloud

What are your preliminary results from initial runs : Results and Robustness Check- What are your preliminary results from initial runs in the statistical software? What is their relationship with the original hypotheses and research questions
Should carmody implement the new design : Should Carmody implement the new design? What non-financial and qualitative factors should Carmody consider in deciding whether to implement the new design?
Large consulting firm and specialise : You are a strategic analyst for a large consulting firm and specialise in the analysis of Australian companies. You have been asked by your manager to write a report analysing an Australian company's underlying strategy that has resulted in it mov..
Presence of chloroplasts and mitochondria in eukaryotic cell : An outline of the theory of endosymbiosis with a discussion as to what extent the theory can be used to account for the presence of chloroplasts and mitochondria in eukaryotic cells. The advantages in evolutionary terms of plant cells to possess b..
Program to determine the smallest number out of 15 numbers : you are a mortgage broker who is determining whether you should provide a mortgage to perspective home purchasers. If you are willing to provide a mortgage, you need to decide how much you should charge the borrower
Details of your personal consumer behaviour journal : This section of the report combines the details of your personal Consumer Behaviour Journal AND Consumer Behaviour theory. You will need to choose one theory from the list below to explain in your report:
Describe the enterprise, in terms of its operations : Illustrate how its e-commerce or ERP implementation integrated with related ICT (information and communication technologies- data mining, business intelligences, data ware house, databases, internet, RFID, VAN, EDI) ?
How are the forces that produce differences in wealth : The theory of natural selection has been applied to human culture in many different realms. For instance, there is a general belief in the United States that survival of the fittest determines which people are rich and which people are poor.
How to motivate workers to improve their productivity : Autronic is considering how to motivate workers to improve their productivity. One proposal is to evaluate and compensate workers in the Manufacturing and Installation Departments on the basis of their productivities.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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