Please code this in C++:
// Start
// Declarations
// number currentTuition
// number futureTuition
// number interestRate
// number numYears
// number year
//
// output "Please enter current tuition: "
// input currentTuition
// output "Please enter interest rate (e.g. 9.0 for 9 percent):
"
// input interestRate
// output "Please number of years for tuition: "
// input numYears
// output “Tuition at year 1 is “, currentTuition
//
// futureTuition = currentTuition
// for year = 2 to numYears
// futureTuition = futureTuition * (1 + interestRate/100)
// output “Tuition at year “, year ,”is “, futureTuition
// endfor
// Stop
#include <iostream>
using namespace std;
int main() {
double futureTuition;
double interestRate;
int numYears;
int year;
double currentTuition;
cout << "Please enter current tuition: ";
cin >> currentTuition;
cout << "Please enter interest rate (e.g. 9.0 for 9 percent): ";
cin >> interestRate;
cout << "Please number of years for tuition: ";
cin >> numYears;
cout << "Tuition at year 1 is " << currentTuition << endl;
futureTuition = currentTuition;
for (year = 2; year <= numYears; year++) {
futureTuition = futureTuition * (1 + interestRate / 100);
cout << "Tuition at year " << year << " is " << futureTuition << endl;
}
return 0;
}
Please code this in C++: // Start // Declarations // number currentTuition // number futureTuition //...
What C++ data type should be returned from the function/method? // Start // Declarations // num amount // num newAmount // num interestRate // output "Please enter the dollar amount. " // input amount // output "Please enter the interest rate(e.g., nine percet should be entered as 9.0). " // input interestRate // newAmount = FutureValue(amount,interestRate) // output "The new dollar amount is ", newAmount // Stop // // // // num FutureValue(num initialAmount, num interestRate) // Declarations // num finalAmount // finalAmount = (1 + interestRate/100) * initialAmount // return finalAmount
using the following pseudocode what C++ data types
should be used for the variable "finalAmount"
// Start Declarations num amount num newAmount num interestRate output "Please enter the dollar amount. // input amount output "Please enter the interest rate (e.g., nine percet should be entered as 9.0). // input interestRate newAmount FutureValue (amount, interestRate) // output "The new dollar amount is ", newAmount // Stop 17 num FutureValue (num initialAmount, num interestRate) Declarations num finalAmount finalAmount = (1 + interestRate/100)...
I need to now how to input the following code into the complier for C++ code. It is for chapter 8 question 7a in the PLD book // Start // Declarations // num MAXADS = 100 // num adcatcode[MAXADS] // num adwords[MAXADS] // num curCode // num numads // num i // num j // num k // num subtotal // num temp // output "Please enter the number of ads: " // input numads // if ((numads > 0)...
Please put the following pseudocode into C++. // Start // Declarations // Automobile myAuto // string vin // string make // string model // string color // output "Please enter the Vehicle Identification Number: " // input vin // output "Please enter the Make: " // input make // output "Please enter the Mode: " // input model // output "Please enter the color: " // input color // Set the VIN for myAuto // Set the Make for myAuto...
I need this coded in C++. I keep coming up with errors. // Start // Declarations // number id // string ownerName // string breed // number age // number weight // number weeklyFee // // output "Please enter owner's ID: " // input id // output "Please enter owner's name: " // input ownerName // output "Please enter dog's breed (no space in input, use '_' // instead; For example Great_Dane): " // input breed // output "Please enter...
Find Bugs in the pseudocode// A high school is holding a recycling competition// This program allows a user to enter a student's // year in school (1 through 4)// and number of cans collected// Data is entered continuously until the user wnats to quit// After headings, output is four lines// one for each school year classstart Declarations num year num cans num SIZE = 4 num QUIT = 9 ...
C++ Code: PLEASE MAKE SURE THAT IS WORK -input any number between (0-100) • if the number is odd, the program ends (do nothing) • if the number is even, output all the even numbers to 100 above the input Requirements: use if statements (minimum 1), and minimum 1 loop
Hurry up Please help me : C++ Enter property zip code: 95148 Enter property address: 2613 Aborn Rd, San Jose CA Enter property offer price (principal): $312500 Enter down payment (in percentage %): 20.0 Enter annual interest rate (in percentage %): 5.75 Enter number of years financing: 15 Mortgage calculator is processing your data ... Please wait... ************************************** MORTGAGE CALCULATOR RESULTS ************************************** Property address: 2613 Aborn Rd, San Jose CA 95148 Property offer price: $...
Write a C# Windows Forms App code in Visual studio with a "start", "stop", "up", "down", "left" and "right" buttons and a textbox. The textbox should start printing numbers from 1 to 100 on the press of the "start" button and stop printing process immediately on the press of "stop" button. Also create a thread after stop button is pressed to allow manual input from "up", "down", "left" and "right" buttons and print up, down, left or right in the same...
How do I get this code to output The monthly payment is too low resulting in the loan amount not being able to be repaid, if the monthly payment is not higher than the interest rate. Right now I cant get it to say that. #include <iostream> using namespace std; int main() { double monthlyPayment; double remainingBalance; double interestRate; int month = 1; cout.setf(ios::fixed); cout.setf(ios::showpoint); cout.precision(2); cout << "Enter loan amount: $";...