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
- Financial Assistance Application Create the Financial Assistance Application. A non-governmental organization needs your application to calculate the amount of financial assistance for needy families. The formula is as follows: • If the annual household income is between $30,000 and $40,000 and the house- hold has at least three children, the amount is $1,000 per child. • If the annual household income is between $20,000 and $30,000 and the house- hold has at least two children, the amount is $1,500 per child. • If the annual household income is less than $20,000, the amount is $2,000 per child. Implement a function for this computation. The program asks for the household income and number of children for each applicant, printing the amount returned by your function. Use -1 as a sentinel value for the input. The program output should be formatted as shown in the Sample Run. Note: You must use at least one function in your code.Paint Job Estimator A painting company has determined that for every 115 square feet of wall space, 1 gallon of paint and 8 hours of labor will be required. The company charges $20.00 per hour for labor. Create an application that allows the user to enter the square feet of wall space to be painted and the price of the paint per gallon. The program should display the following data: • The number of gallons of paint required • The hours of labor required • The cost of the paint • The labor charges • The total cost of the paint jobAdditional Notes: USING C# You cannot add two flights with the same flight number When you select “View Flights”, a list containing the Flight number, origin and destination for each flight must be shown. When you select “View a particular flight”, a list of all flights should be displayed and the user must be allowed to enter a particular flight number. All the information on that selected flight must be displayed. All the customers who are booked on that flight must SPECIAL NOTE: A customer can only be deleted if there are no bookings for that customer. A flight can only be deleted if there are no customers booked on the flight. You must extend the core design and add the functionality to add customers and booking features to the system. The information that must be recorded on a customer is as follows: A customer ID must be assigned to each customer by the system. (NOT entered by the user) The customer’s first name The customer’s last name. The customer’s phone (a string type…
- GPA Calculator Students are concerned about their GPA. They need to calculate it accurately every semester to monitor their progress. Develop a GPA calculator that follows the AOU regulations (AOU-OU Grade Scale) using C# programming language. The application asks the student to enter his numeric grade of each course and the course's credit hours. Accordingly, the application calculates the student's GPA after converting the numeric grade to letter grade. The GPA calculation should produce floating-point results. Display the results rounded to the nearest hundredth. You should store the letter grades of all student's courses in an array. The final grade of the student should be also calculated. Sample I/O Enter the course grade (-1 to end): 93 Enter the course credit hours: 3 Enter the course grade (-1 to end): 74 Enter the course credit hours: 2 Enter the course grade (-1 to end): 60 Enter the course credit hours: 3 Enter the course grade (-1 to end): -1 The grades of your courses…ProgramName: Chapter3StadinumSeatingProgram There are three seating categories at an athletic stadium. For a baseball game, Class A seats cost $15 each, Class B seats cost $12 each, and Class C seats cost $9 each. Create an application that allows the user to enter the number of tickets sold for each class. The application should be able to display the amount of income generated from each class of ticket sales and the total revenue generated. The application's form should resemble the one shown in below. X A Stadium Seating Revenue Generated Tickrts Sød Enter the rumber of tickets sold for coch dass of sects. Cass A Class B Cass A: lass C Caes B: Oless C Total Calculate Revenue Cear Ext Use the following sets of test data to determine if the application is calculating properly:Change the order of the numbered Use Case Definition steps to correspond to the following problem definition: A college provides every incoming freshman with a gift card for a choice of two specialty restaurants within the cafeteria. Students should select one specialty restaurant they want. A program opens a window that displays each specialty restaurant one picture at a time when a student clicks the corresponding button. After making a decision, the student should click the Select Restaurant button. After selecting a restaurant, the student should exit the application.
- Book Club PointsSerendipity Booksellers has a book club that awards points to its customers based onthe number of books purchased each month. The points are awarded as follows:• If a customer purchases 0 books, he or she earns 0 points.• If a customer purchases 1 book, he or she earns 5 points.• If a customer purchases 2 books, he or she earns 15 points.• If a customer purchases 3 books, he or she earns 30 points.• If a customer purchases 4 or more books, he or she earns 60 points.Write a program that asks the user to enter the number of books that he or she haspurchased this month and then displays the number of points awarded.ITP 100 Programming Logic & Design Project In this project, you will design a program to perform the following task: Design a program, the STAR Movie Rating App, which can be installed in a kiosk in theaters and patrons can immediately give their rating of a movie they’ve just seen. Each theater patron enters a value of 0, 1, 2, 3, or 4 indicating the number of stars that the patron awards to the App’s featured movie of the week. If a user enters a star value that does not fall in the correct range, the program will prompt the user continuously until a correct value is entered. The program executes continuously until a negative number is entered to quit. At the end of the program display: the number of ratings given the average star rating for the movie of the week the following message depending on the average rating. 3 or better – “Great movie choice!” 2 up to 3 – “Good movie choice!” 1 up to 2 – “Not a Good movie choice.” 0 up to 1 – “Bowling would have been a better…Requirements You are required to write a program that calculates and prints the bill for Viti Telephone Company. The company offers two types of services: regular and premium: its rate very depending on the type of service. The rates are computed as follows: Regular Service $10.00 plus first 50 minutes are free. Charges for over 50 minutes are $0.20 per minute Premium Service $25.00 plus Calls made from 6.00 AM to 6.00 PM, the first 75 minutes are free and charges over 75 minutes are $0.10 per minute. For Calls made from 6.00 PM to 6.00 AM, the first 100 minutes are free and charges for over 100 minutes are $0.05 per minute. Your program should prompt user to enter an account number, a service code (type char), and the number of minutes service was used. A service code of r or R means regular service; a service code p or P means premium service. Treat any other character as an error. Your program should output the account number, type of service number of minutes the telephone was used…
- Restaurant: Point-of-Sales System Create a software application that can be used for a Restaurant using C language. The expected minimum functionality are as follows: Menu Display It must display at least 10 choices with their corresponding prices On your menu, at least one of the categories/choice should have customization/add-on. You should have at least 3 customization/add-on (e.g. In Starbucks, you can have extra espresso shot). Taking Orders As a customer, I want to select which of the choices I want to order As a customer, everytime I specify select my choice, I want to specify the quantity of my selected choice. After I finished my order, it should ask, "Anything Else?". Afterwards, as a customer, I should be to enter my succeeding choice. In order to stop taking order, the exit should be part of the menu. As a customer, I would only select that choice to exit If the customer selects a choice qualified for customization, after specifying the quantity, I should be asked,…PYTHON programming solotion Develop a program that allows the user to enter a start value of 1 to 4, a stop value of 5 to 12 and a multiplier of 2 to 8. The program must display a multiplication table with results using these values. For example, if the user enters a start value of 3, a stop value of 7 and a multiplier value of 3, the table should be displayed as follows: Multiplication Table 3 x 3 = 9 3 x 4 = 12 3 x 5 = 15 3 x 6 = 18 3 x 7 = 21 additionally Each multiplication problem must be displayed with a problem number. The program must prompt the user to enter an answer to each of the multiplication problems. The correct answer should be displayed after the user enters an answer. A message should be displayed informing the user that the answer entered was correct or incorrect followed by an appropriate motivating comment. A running record of the number of correct and incorrect responses must be kept. After all the problems have been presented the user must be informed of…Web page bill calculator. User inputs the "item name" and "item amount" on the webpage. The webpage will return the total money he need to pay. If the payment is more than 30 dollars, the user can have a 10% off discount. Bill = (item cost )* (# of items) Item cost apple orange peach $1.2 $2