Automobile Costs Problem: Design a modular program that asks the user to enter the monthly costs for the following expenses incurred from operating his or her automobile: loan payment, insurance, gas, oil, tires, and maintenance. The program should then display the total monthly cost of these expenses, and the total annual cost of these expenses.
Q: (Financial application: calculate future investment value) Write a program that reads in an…
A: The program is written in Java. Please find the program in step 2.
Q: Air Pacific Limited, Fiji's international airline, operates international and domestic services…
A:
Q: Java VENDING MACHINE Write a program that simulates a vending machine. The program should display a…
A: Java Programming refers to the object oriented programming languages that are used to develop the…
Q: Draw hierarchy charts or flowcharts that depict the programs. Design a hierarchy chart or flowchart…
A: Hierarchy charts or flowchart of given problem:-
Q: #1. Airplane Seating Assignment. Write a C# Windows App that can be used to assign seats for a…
A:
Q: Code a Mortgage calculator using c++ and Microsoft visual Studio create a new project called…
A: Please find the answer below :
Q: Directions: Create a calculator that has functions than arithmetic operations e.g. scientific…
A: import java.util.Scanner; import java.lang.Math;class Calc { public static void…
Q: Part E: Scholarship You are applying for a scholarship. In order to qualify, you need to have at…
A: print("What is your SAT score?")sat=float(input())print("What is your GPA?")gpa=float(input()) #if…
Q: (Financial application: loan amortization schedule) The monthly payment for a given loan pays the…
A: Given: (Financial application: loan amortization schedule) The monthly payment for a given loan pays…
Q: 6. Body Mass Index Design a modular program that calculates and displays a person's body mass index…
A: Modular program to calculate body mass index BMI (LANGUAGE USED IS " C ")
Q: C programming Design a program that will record and display the distance between the rocket and…
A: import java.lang.Math.*; class DistanceBwPoint { public static void main(String arg[]) {…
Q: Airline Reservation System A small airline has just purchased a computer for its new automated…
A: NOTE: Here student did not mention any programming language. So, here i am using c language to…
Q: (Financial application: compare loans with various interest rates) Write a program that lets the…
A: PROGRAM CODE: import java.util.Scanner; public class Main { public static void main(String[] args) {…
Q: gn this. Code neede for mini project
A: I have designed it by using HTML.
Q: Financial application: investment amount. Suppose you want to deposit a certain amount of money into…
A: import path def investment amt (f,m,r): amt = (math.pow(1+r)),m) print("invest amt:",…
Q: C
A:
Q: Computer science What is the advantage of breaking your application’s code into several small…
A: Introduction: It makes the software more manageable. Real-world programs can include thousands of…
Q: Problem Statement: In this lab, you will be building a software application that will print the most…
A: Required: Please do this in the shortest and simplest way in Python.
Q: Package Newton’s method for approximating square roots (Case Study: Approximating Square Roots) in a…
A: def newton(n): sgn = 0 if n < 0: sgn = -1 n = -n val = n while True:…
Q: Asap!! C# language A bank is offering Gold and Silver Credit Cards to its customers. Gold Card…
A: Objective: This program creates classes for storing information about two types of cards, i.e. Gold,…
Q: Financial application: investment amount. Suppose you want to deposit a certain amount of money into…
A: PROGRAM INTRODUCTION: Take the value of the final account value from the user. Take the value of…
Q: Body Mass Index (BMI) is one of the criteria that is used to calculate whether one is fit or not…
A: Given Body Mass Index (BMI) is one of the criteria that is used to calculate whether one is fit or…
Q: Airline Reservations System A small airline has just purchased a computer for its new automated…
A: Your program should display the following menu of alternatives:Please type 1 for "first class"Please…
Q: Car Service Maintenance Create a program for car service maintenance. Based on numbers of months /…
A: Given: Car Service MaintenanceCreate a program for car service maintenance. Based on numbers of…
Q: C# Language (WinForm Application) In this exercise, you complete an application that…
A: FORM DESIGN: Note: The form elements use the same properties name as given in the question.
Q: Salary Calculator Develop a program that will determine the gross pay for each of several employees.…
A: logic:- use a infinite loop , while loop read number of hours(-1 to end) if hours==-1 break…
Q: BMI Calculator Create a C program that will compute for the body-mass index of a given height and…
A: Algorithm: Start Display the menu to the user and ask the user to choose If user chooses 1, read…
Q: C++ console application that will display the quotient of 10 numbers
A: Given:- C++ console application that will display the quotient of 10 numbers
Q: Question Print Daily Company (PDC) needs a program that displays weekly salary. PDC has five…
A: Code with the OOP approach in JAVA is given below along with output
Q: C programming language *include comments Inside the main function write code that estimates the…
A: The given problem is related to programming where the code is to be created in C language. The user…
Q: You will be creating an application to calculate the maximum amount of contribution a person can…
A: Dear Student, The code is with proper indentation so, to run the code please copy it as it is.…
Q: 5. Falling Distance determine the distance the object falls in a specific time period: 1 d = The…
A: iterate from i=1 to i<=10 FallingDistance(i) end loop Define function fallingDistance(int…
Q: Customized step counter Learning Objectives In this lab, you will Create a function to match the…
A: here we are calculating the miles walked based on the number of steps given and the stretch of each…
Q: You are assigned as programmer in a company, you notice that the employee salary is always delay due…
A: class Employee{ private: char name; int id, hourly_pay_rate,hours_worked, net_pay, gross_pay, SSS,…
Q: Congrats! You work for Zillow now. Your first task is to write an algorithm that recommends…
A: Algorithm: 1. Input Apartment size 2. Input number of pets 3. Input rent 4. Display output
Q: 8. Property Tax A county collects property taxes on the assessment value of property, which is 0u…
A: Since here, no programming language is specified. So, we are providing a solution in C++. The…
Q: End statement is used to ends the execution and exit from the application.
A: End statement is used to ends the execution and exit from the application true false in the…
Q: 6. Body Mass Index Design a modular program that calculates and displays a person's body mass index…
A: According to the question below the solution:
Q: What is the benefit of dividing your application's code into smaller functions?
A: Introduction: The following are some advantages to dividing the code up into smaller parts:
Q: Create a package folder named shapes. Inside this package, place two more package folders: 2d and…
A: Programming instructions: Create a folder named shapes. In this package, create two more folders…
Q: Write a program "Stage Development Calculator". This program will accept name and age from users.…
A: ## As no language is mentioned, we write the code in Python. name = input("Enter your name:…
Q: (Financial application: payroll) mation and prints a payroll stater Employee's name (e.g., Smith…
A: Code: import java.util.Scanner; public class Main { public static void main(String[] args) {…
Q: PROGRAMMING: PERMUTATIONS ASSIGNMENT INSTRUCTIONS OVERVIEW Using the double variable type, you will…
A: Below is the code in C++ and sample output:
Q: Rectangle Area The area of a rectangle is calculated according to the following formula: Width X…
A: Program Code: #include<stdio.h>int area(int w,int l){ int area; area=w*l; return;}main(){ int…
Q: Sales Prediction The East Coast sales division of a company generates 58 percent of total sales.…
A: solution: #include <iostream> using namespace std; int main(){double totalSale=8600000;double…
Q: Use C Language Airline Reservation System A small airline has just purchased a computer for its…
A: Answer :
Q: flowchart and pseudocode in problem solving and logic A painting company has determined that for…
A: pseudocode Module Get InputData() Display "Enter the number of square feet to be painted:"…
Q: Problem description: Write a python application to simulate an Amazon online book shopping system,…
A: Please give positive ratings for my efforts. Thanks. PRE-REQUISITE This is a python program. So,…
Q: Design a modular program that asks the user to enter the monthly costs for the following expenses…
A: We are designing the program in C++ programming language. Given below is the program designed to…
Addition of Two Numbers
Adding two numbers in programming is essentially the same as adding two numbers in general arithmetic. A significant difference is that in programming, you need to pay attention to the data type of the variable that will hold the sum of two numbers.
C++
C++ is a general-purpose hybrid language, which supports both OOPs and procedural language designed and developed by Bjarne Stroustrup. It began in 1979 as “C with Classes” at Bell Labs and first appeared in the year 1985 as C++. It is the superset of C programming language, because it uses most of the C code syntax. Due to its hybrid functionality, it used to develop embedded systems, operating systems, web browser, GUI and video games.
Automobile Costs Problem: Design a modular |
|
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- Population Tracker Learning Objective: Using Python Repetition and Loop Statements Problem Description Write a Python program (Console and GUI) that predicts the approximate size of a population of organisms. The application should use text boxes to allow the user to enter the following information: starting number of organisms, the average daily population increase (as a percentage), and the number of days the organisms will be left to multiply. For example, assume the user enters the following values: Starting number of organisms: 2 Average daily increase: 30% Number of days to multiply: 10 The program should display the following table of dataAssignment Description This program will simulate part of the game of Yahtzee! This is a dice game that involves rolling five dice and scoring points based on what show up on those five dice. The players would record their scores on a score card, and then total them up, and the player with the larger total wins the game. A Yahtzee score card has two portions: The upper portion has spaces for six scores, obtained by adding up all of the 1's, 2's, 3's, etc. The lower portion has special scores for various combinations: Three of a kind -- at least 3 dice are the same number;the score is the sum of all five dice Four of a kind -- at least 4 dice are the same number;the score is the sum of all five dice Small straight -- four consecutive numbers are represented, e.g. 2345;the score is 25 points Large straight -- five consecutive numbers are represented, e.g. 23456;the score is 30 points Full House -- three of one kind, two of another; the score is 30 points Yahtzee! -- five of a kind; the…(Fraction calculator) | Write a program that lets the user perform arithmetic operations on fractions. Fractions are of the form a/b, in which _a_ and _b_ are integers and b ≠ 0. Your program must be menu driven, allowing the user to select the operation (+, –, *, or /) and input the numerator and denominator of each fraction. Furthermore, your program must consist of at least the following functions: Function menu: This function informs the user about the program’s purpose, explains how to enter data, and allows the user to select the operation. Function addFractions: This function takes as input four integers representing the numerators and denominators of two fractions, adds the fractions, and returns the numerator and denominator of the result. (Notice that this function has a total of six parameters.) Function subtractFractions: This function takes as input four integers representing the numerators and denominators of two fractions, subtracts the fractions, and returns the…
- Question: Party budget planning - complex Prompt the user to enter their current budget and the number of people who need to share a meal. You are ordering food from a restaurant that has two menu items: Tacos $4 Empanadas $3 Calculate and print out all the options of meals where the budget is used entirely(where possible) and each person has an equal number of items to eat. They may eat different things, but everyone gets the same number of food items, e.g. 2 tacos or 1 empanada and 1 taco or 2 empanadas. Hints: Here are some things that might help you in your solution. If total items purchased does not equally divide by the number of diners, then abandon that combination. It may help to calculate the max number of empanadas that the budget can buy and also the max number of tacos that the budget could buy. These can be thought of as upper bounds in your loops. In your solution, keep track of items per person Also, keep track of total number of viable solutions, as that might…Question: Party budget planning - complex Prompt the user to enter their current budget and the number of people who need to share a meal. You are ordering food from a restaurant that has two menu items: Tacos $4 Empanadas $3 Calculate and print out all the options of meals where the budget is used entirely(where possible) and each person has an equal number of items to eat. They may eat different things, but everyone gets the same number of food items, e.g. 2 tacos or 1 empanada and 1 taco or 2 empanadas. Hints: Here are some things that might help you in your solution. If total items purchased does not equally divide by the number of diners, then abandon that combination. It may help to calculate the max number of empanadas that the budget can buy and also the max number of tacos that the budget could buy. These can be thought of as upper bounds in your loops. In your solution, keep track of items per person Also, keep track of total number of viable solutions, as that might…C++ Visual 2019 A particular talent competition has five judges, each of whom awards a score between 0 and 10 to each performer. Fractional scores, such as 8.3, are allowed. A performer's final score is determined by dropping the highest and lowest score received, then averaging the three remaining scores. Write a program that uses this method to calculate a contestant's score. It should include the following functions: void getJudgeData() should ask the user for a judge's score, store it in a reference parameter variable, and validate it. This function should be called by main once for each of the five judges. void calcScore() should calculate and display the average of the three scores that remain after dropping the highest and lowest scores the performer received. This function should be called just once by main and should be passed the five scores. The last two functions, described below, should be called by calcScore, which uses the returned information to determine which of the…
- Following code in C using random Name Reg no and highschool name Use switch case in C language to do the following: Create a restaurant with the name “Your Name - Reg_No – Name of your highschool” The restaurant should come with the options of delivery and take away and the choice should be displayed as “Delivery – Registration No” and “Takeaway – Name” Each option should have the same menu and an extra 15% charge be included if a customer wants home delivery Both menus should have two items that are customizable, such as a burger can have chillies removed, cheese added and extra mayonnaise. The user should have the option of choosing multiple items with multiple quantity. Print a bill in the end.Use C Language Airline Reservation System A small airline has just purchased a computer for its new automated reservations system. The president has asked you to program the new system. You are to write a program to assign seats on each flight of the airline's only plane (capacity: 10 seats). Your program should display the following menu of alternatives: Please type 1 for "first class" Please type 2 for "economy" If the person types 1, then your program should assign a seat in the first class section (seats 1-5). If the person types 2, then your program should assign a seat in the economy section (seats 6-10). Your program should then print a boarding pass indicating the person's seat number and whether it is in the first class or economy section of the plane. Use a single-subscripted array to represent the seating chart of the plane. Initialize all the elements of the array to 0 to indicate that all seats are empty. As each seat is assigned, set the corresponding elements of…Salary Calculator Create a program that computes the salary based on an employee's hourly wage and hours worked. Note that employees may work for fractions of an hour, e.g. 1 and a half hours (1.5 hours). Use the following formulas: Less than or equal to 40 hours worked hourly wage * hours worked Over 40, but less than or equal to 65 hours worked (hourly wage * 40) + (hours worked - 40) * (hourly wage * 1.5) Over 65 hours worked (hourly wage * 40) + (hourly wage * 1.5) * 25 + (hours worked - 65) * hourly wage * 2 Also make sure that the hourly wage and hours worked are positive. Otherwise, display the error message: "Invalid input". Please see the sample outputs below to guide the design of your program. main.cc file #include <iomanip> #include <iostream> int main() { // TODO: accept user input to store the hourly wage and hours worked. // Then, include the header file at the top of this file so you can // call your function that computes a…
- A code in c++ or python A program that asks you to enter the name of a movie or series, and then proceed to ask how much you rate the movie or series on a scale of 1 to 10, then ask what rating you would give the series or movie, and have options for example: G, PG, PG-13, R and finally, a thank you message for your comments appears.LISP Function help please LISP Programming only A function that generates a random day of the week, then displays a message saying that "Today is ... and tomorrow will be ...". Then use the built-in function random first to generate a number between 0 and 6 (including). The expression (random) by itself generates a random integer. You can call it with one parameter to return a value within the range from 0 to the value of the parameter-1. For example, (random 10) will return a value between 0 and 9. Next, use the number generated at the previous step to retrieve the symbol for the day of the week from the list. Use the built-in elt. Extract the symbol-name of the day first, then apply the built-in function capitalize to it. Use the result in the princ function call, and do the same thing for the next day. Make the function return true (t) instead of the last thing it evaluates, to avoid seeing the message printed more than once.Problem description: Write a python application to simulate an Amazon online book shoppingsystem, namely “Amazing”. Design solution: The template file contains a list of books sold on Amazing, each item in the listcontains the title, publication year, author and the prices. The program will generate anitems_dict where each key is the title of the book and the values will be a list of year, authorand price information. A customer will be presented with a main menu with 4 different options:display all items, add an item to cart, checkout and exit the program. A customer can buy anitem by entering the title of the book. This program implements a dictionary called cart, whereeach key is the title and the values are the list of year, author and price and We assume onecopy is added with each selection. The program keeps repeating by displaying the main menuto user until user hits the quit button. If user hits the checkout option, the program will displayall the items in the cart and display…