Concept explainers
A(n) ___________ is like a variable, but its value is read-only and cannot be changed during the program’s execution.
A) secure variable
B) uninitialized variable
C) named constant
D) locked variable
Learn your wayIncludes step-by-step video
Chapter 2 Solutions
Starting Out With C++: From Control Structures Through Objects, Brief Version Plus Mylab Programming With Pearson Etext -- Access Card Package (9th Edition)
Additional Engineering Textbook Solutions
Computer Systems: A Programmer's Perspective (3rd Edition)
Digital Fundamentals (11th Edition)
Computer Science: An Overview (12th Edition)
Java How To Program (Early Objects)
Starting Out with Java: From Control Structures through Data Structures (3rd Edition)
Starting Out with Java: From Control Structures through Objects (7th Edition) (What's New in Computer Science)
- Parking Charges) A parking garage charges a $2.00 minimum fee to park for up to threehours and an additional $0.50 per hour for each hour or part thereof over three hours. The maximumcharge for any given 24-hour period is $10.00. Assume that no car parks for longer than 24 hoursat a time. Write a program that will calculate and print the parking charges for each of three customers who parked their cars in this garage yesterday. You should enter the hours parked for eachcustomer. Your program should print the results in a tabular format, and should calculate and printthe total of yesterday's receipts. The program should use the function calculateCharges to determine the charge for each customer. Your outputs should appear in the following format:Car Hours Charge1 1.5 2.002 4.0 2.503 24.0 10.00TOTAL 29.5 14.50arrow_forward(Financial application: compute future tuition)Suppose that the tuition for a university is $10,000 this year and increases 5% every year. Write a program that computes the tuition in ten years and the total cost of 4 years’ worth of tuition starting after the 10th year.arrow_forwardAssuming there are no deposits other than the original investment, the balance in a saving account after one year may be calculated as Amount=Principal * (1+ Rate / T)T principal -balance in the saving account, Rate -the interest rate, T - number of times the interest is compounded during a year. Write a program that asks for : the principal, the interest rate, and the number of times the interest is compounded. It should display a report similar to Interest Rate: 4.25% Times Compounded: 12 Principal: $ 1000.00 Interest: $ 43.34 Amount in Savings: $ 1043.34arrow_forward
- Pseudocode and flowchart Write a program that ask the user to enter his/her year level, and display one of the following output: "Freshman", Sophomore", "Junior", "Senior", "N/A"note:Freshman=1Sophomore=2Junior 3Senior=4arrow_forwardc++ Assuming there are no deposits other than the original investment, the balance in a saving account after one year may be calculated as Amount=Principal * (1+ Rate / T)T principal -balance in the saving account, Rate -the interest rate, T - number of times the interest is compounded during a year. Write a program that asks for : the principal, the interest rate, and the number of times the interest is compounded. It should display a report similar to Interest Rate: 4.25% Times Compounded: 12 Principal: $ 1000.00 Interest: $ 43.34 Amount in Savings: $ 1043.34arrow_forward5. A program determines it a user-entered weight exceeds a maximum weight of 25,000.0 pounds. Which kind of item should hold the maximum weight of 25,000.0? A.Constant integer userEnteredWeight B.Variable integer userEnteredWeight C.Variable integer maxWeight D.Constant integer maxWeightarrow_forward
- Must answer properly do attach output screenshot and code else downvote Write a phyton program that takes birthday of a person and calculates the total number of seconds they have been living in epoch time.arrow_forwardc++ Energy Drink Consumption A soft drink company recently surveyed 16500 of its customers and found that approximately 15 percent of those surveyed purchase one or more energy drinks per week. Of those customers who purchase energy drinks, approximately 58 percent of them prefer citrus-flavored energy drinks. Write a program that displays the following: The approximate number of customers in the survey who purchase one or more energy drinks per week. The approximate number of customers in the survey who prefer citrus-flavored energy drinks.arrow_forwardC++ Please Create a simple program that asks user to enter their name and displays the name with an asterisk between the name. Not before or after the name. For example: L*i*n*d*aarrow_forward
- C++ PLEASE only answer with FLOWCHART AND PSEUDO CODE! Thank you :) C++ DRAW FLOWCHART AND WRITE PSEUDO CODE 4. User asks you to develop a program to calculate and print weekly payroll. Calculations must take into account the following: User input ? a. Income tax rate is rate is 15% (.15*salary) b. Social Security tax is 7.65% (.0765*salary) c. Display salary, income tax, social security tax, and net pay net pay=salary-income tax – social security taxarrow_forwardA. The regular expression/\b\$\d+/gwill match words beginning with a dollar sign and one or more digits, such as"$5"or"$500". Select one: True False B. Given that you can calculate the circumference of a circle by multiplying its diameter times pi, in JavaScript you can use the statement circumference = d * Math.PI;to calculate the circumference of a circle with the diameterd. Select one: True Falsearrow_forwardInput and output part1 #include <iostream>using namespace std;int main(){int x, y;cout << "please enter value x:";cin >> x;cout << "please enter value y:";cin >> y;cout << "Welcome to C++";cout << "value x = " << x;cout << "value y = " << y;return 0;} Questions. 1. Explain step by step what the program does .2. what is the output.arrow_forward
- Microsoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,