Look at the following code.double value = 29.7;double *ptr = &value;Write a cout statement that uses the ptr variable to display the contents of the valuevariable.
Q: (Financial application: payroll) Write a program that reads the following infor- mation and prints a…
A: CODE:- # Get the employee's namename = input("Enter employee's name: ")# Get the number of hours…
Q: T F: You cannot modify a control’s Text property with code.
A: Text box accepts user' inputs. In VB Text box is created using TextBox control. Like other…
Q: Look at the following statement.enum Color { RED, ORANGE, GREEN, BLUE };A) What is the name of the…
A: a) Color b) Color.RED Color.ORANGE, Color.GREEN Color.BLUE
Q: A __________ can be read, but it cannot be modified. a. limited property b. temporary value c. field…
A: Read-only property: Read-only property has a get method, but it does not have any set method to…
Q: Financial application: compare loans with various interest rates) Write a program that lets the user…
A: Actually, program is a executable software that runs on a computer.
Q: Assume that qty and salesReps are both integers. Use a type cast expression to rewrite the following…
A: Assume that qty and salesReps are both integers. Use a type cast expression to rewrite the following…
Q: moment that it is declared in C ++ 3. (int Value) its incorrect identifier because
A: Given: Declared variable in C ++ 3. (int Value) its incorrect identifier because........
Q: Question 1 Create a VB.NET Console Application that does the following: Create a variable of Integer…
A: Module VBModule Sub Main() Dim marks as integer' to declare marks as integer Dim grade as…
Q: 15. Overloaded Hospital Write a program that computes and displays the charges for a patient's…
A: Required:
Q: Part C: Assuming variable starts with the value 10, what will the following code fragment prints…
A: This question is checking the performance of the increment operator. Normaly when value++ or ++value…
Q: Look at the following declaration: enum Flower { Rose, Daisy, Petunia } a. What is the name of the…
A: Given: Declaration : enum Flower {Rose,Daisy,Petunia} Solution: a. The name of the data type in…
Q: struct applianceType { string supplier; string modelNo; double cost; };…
A: We have to write the C++ statements that correctly initialize the cost of each appliance in…
Q: A Hotel Resérvation Program Write a program that allows the user to reserve a room in a hotel and…
A: Given: To write a Java program for hotel reservations.
Q: (Financial application: calculate tips) Write a program that reads the subtotal and the gratuity…
A: //Whenever if you asked programming related questions you should always have to specify in which…
Q: A simple statement that assigns a value to a variable using an assignment operator (=). When a value…
A: The given statement is true.
Q: Design an application that accepts 10 numbers and displays them in descending order.
A: Given: Design an application that accepts 10 numbers and displays them in descending order.…
Q: Briefly explain passing by value
A: Passing by value Passing by value means the value of function parameter is copied into another…
Q: Nice Number Programming: Nice program ask user to enter three integers from keyboard (java console),…
A: Below is the required java program. Program Approach: Import necessary packages to get the standard…
Q: True or False When you are working with a value type, you are using a variable that holds a piece of…
A: Explanation: Value type variable holds a value not the memory address of the value stored.the value…
Q: Introduction to python programming
A: The python program and its approach are given below: - Approach: - Creating a nested list and…
Q: 1.8 When declaring a new variable out of an existing enumerated data type, you use the keyword: а.…
A: When declaring a new variable out of an existing enumerated data type, the keyword typedef is used.…
Q: 2.26 (Multiples) Write an application that reads two integers, determines whether the first is a…
A: C++ Program for above : #include <iostream> using namespace std; int main() { //read…
Q: If value is an identifier of int type and is holding value 200, is the following statement correct?…
A: introductoin:Int datatype is used in holding values:
Q: The declaration statement for a named constant requires . a. a data typeb. a name c. a value d. all…
A: For the declaration of a named constant requires data type, name and value. Hence, the correct…
Q: The following code intends to input a user’s first name, last name, and age.However, it has an…
A: Corrected Code: #include <iostream>#include <string.h>using namespace std; int main(){…
Q: C++ code. Write a program that reads students’ names followed by their test scores. The program…
A: Program: #include <iostream>#include <string>#include <fstream>#include…
Q: In C++ struct gameType { string title; int numPlayers; bool online; }; gameType…
A: 1) C++ code snippet in question Creates a structure gameType with string type title integer type…
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: When using a printf() statement, what syntax do you use to print the value of an "int"? %d %c %s %f
A: - The question wants to know that when using a printf statement what syntax we use to print an…
Q: Why would you use a VLOOKUP function as oppose to a Nested Ifs statement?
A: simple nested IF statements that ascertain a worth dependent on one condition you should utilize…
Q: A(n) __________ is the part of a program in which a variable may be accessed.a. declaration spaceb.…
A: A scope is the part of a program in which a variable may be accessed.
Q: Create an application that contains an enumeration that represents the days of the week. Display a…
A: Enum has to be created Display the values Input a day Display business hours If you want to perform…
Q: In the code get_grade_stats(scores) scores refers to its O argument O arguments O parameter
A: Function parameter & argument: Function parameters and arguments are often applied for the same…
Q: What does the following code display?values = [2] * 5print(values)
A: values = [2] * 5print(values) Here the number inside [] square bracket means we are creating a…
Q: What does it mean when an argument is passed by value?
A: Argument passed by value Passed by value means that a copy of the actual parameter’s value is made…
Q: Declare a data structure marks_t, which contains the following type int members: int attendance…
A: Syntax for declaring a structure is as follows: struct structureName { dataType memberVariable1;…
Q: Look at the following declaration:enum Flower { Rose, Daisy, Petunia } Write a statement that…
A: Statement that declares a variable of the enumerated type: Below statement that declares a variable…
Q: Programming Assignment: Car Repair For this programming assignment, create a car repair program that…
A: PROGRAM: //Header file #include<iostream> #include<iomanip> using namespace std;…
Q: (Health application: BMI) Revise Listing 3.2, ComputeAndInterpretBMI.cpp, to let the user enter…
A: Sample Response: //C++ program to compute BMI by using weight in pounds, height in feet and…
Q: in C# programming and i need to use using System; using static System.Console; using…
A: Actually, program is an executable software that runs on a computer.
Q: (Algebra: solve quadratic equations) The two roots of a quadratic equation ax + bx + c = 0 can be…
A: read a , b and c from user. pass value of a,b and c to function RootFind. check if a==0 display…
Q: V7 This pseudocode is intended to display // employee net pay values. All employees have a standard…
A: Program plan: Declare the variable name Define the variable EOFNAME as "ZZZZ" Define DEDUCTION as…
Q: the quotient after q is divided by divisor and assign the result to q. Write this statement in two…
A: Method 1: Simple assignment operator q = q % divisor; Method 2: Modulus AND assignment operator q %=…
Q: + Multiple Conditional Statements EmployeeBonus2.py >- Terminal 1 # EmployeeBonus2.py This program…
A: Find out the mistake from the code.
Q: Computer Fundamentals and Programming 2 Write a program that determines a student’s grade. The…
A: logic:- read three score. Find avg=(a+b+c)/3 use if else to find out avg category. Display grade.…
Q: Trivia Game In this programming exercise, you will create a simple trivia game for two players. The…
A: Question.py • Define the class named “Question”. ○ Define “__init__()” method for “Question”…
Q: Test Average and Grade ite a program that asks the user to enter five test scores. The program…
A: Java code along with the snapshot of code and output is given below:
Q: C PROGRAMMING Given code: struct record { char name[10]; int age; }; struct record myfriend =…
A: The C statement is as follows: We access members of strucure by using 2 ways: First way is by using…
Q: In C++ struct applianceType { string supplier; string modelNo; double cost; };…
A: To print all info about appliance from applianceList we have to iterate through it and check…
Look at the following code.
double value = 29.7;
double *ptr = &value;
Write a cout statement that uses the ptr variable to display the contents of the value
variable.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- True or False When you are working with a value type, you are using a variable that holds a piece of data.C++ Movie Data Create a program that uses a structure named MovieData to store the following information about a movie: Title Genre Director Year Released Running time (in minutes) Write a program that prompts the user for input and allows all of these member data values to be specified. Make sure you input the entire title, genre, and director for the movie. You should also make sure that the year is inputted as a number, and that the running time is also a number. For the year it should be after 1887, and for the running time the number should be greater than 0. The program should create two MovieData variables and create/use a method void displayMovie(MovieData) to display the information about the movie in a clearly formatted manner.True or False You can compare enumerators and enum variables with relational operators.
- T F You cannot initialize a named constant that is declared with the const modifier.3- Enter a=3; b-5; c=7, then clear the variable b onlyLook at the following code. int x = 7; int *ptr = &x;What will be displayed if you send the expression *iptr to cout? What happens if you send the expression ptr to cout?
- // EmployeeBonus2.cpp - This program calculates an employee's yearly bonus. #include <iostream> #include <string> using namespace std; int main() { // Declare and initialize variables. string employeeFirstName; string employeeLastName; double employeeSalary; int employeeRating; double employeeBonus; const double BONUS_1 = .25; const double BONUS_2 = .15; const double BONUS_3 = .10; const double NO_BONUS = 0.00; const int RATING_1 = 1; const int RATING_2 = 2; const int RATING_3 = 3; // This is the work done in the housekeeping() function // Get user input cout << "Enter employee's first name: "; cin >> employeeFirstName; cout << "Enter employee's last name: "; cin >> employeeLastName; cout << "Enter employee's yearly salary: "; cin >> employeeSalary; cout << "Enter employee's performance rating: "; cin >> employeeRating; // This is…Text-based adventure game: Pretend you are creating a text-based adventure game. At different points in the game, you want the user to select to fight, run, or hide from certain enemies. Modify the application below (week3.py) so that the selection variable is sent as an argument into the choice() function. The user should enter 1 to fight, 2 to run, or 3 to hide in the main(). The choice() function should print one of the three options. You will need to add an if statement in the choice() function to make the correct selection.// EmployeeBonus.cpp - This program calculates an employee's yearly bonus. #include <iostream> #include <string> using namespace std; int main() { // Declare and initialize variables here string employeeFirstName; string employeeLastName; double numTransactions; double numShifts; double dollarValue; double score; double bonus; const double BONUS_1 = 50.00; const double BONUS_2 = 75.00; const double BONUS_3 = 100.00; const double BONUS_4 = 200.00; // This is the work done in the housekeeping() function cout << "Enter employee's first name: Kim"; cin >> employeeFirstName; cout << "Enter employee's last name: Smith"; cin >> employeeLastName; cout << "Enter number of shifts: 25"; cin >> numShifts; cout << "Enter number of transactions: 75"; cin >> numTransactions; cout << "Enter dollar value of transactions: 40000.00"; cin >> dollarValue; // This is the work done in the detailLoop()function // Write your code here…
- // EmployeeBonus.cpp - This program calculates an employee's yearly bonus. #include <iostream> #include <string> using namespace std; int main() { // Declare and initialize variables here string employeeFirstName; string employeeLastName; double numTransactions; double numShifts; double dollarValue; double score; double bonus; const double BONUS_1 = 50.00; const double BONUS_2 = 75.00; const double BONUS_3 = 100.00; const double BONUS_4 = 200.00; // This is the work done in the housekeeping() function cout << "Enter employee's first name: "; cin >> employeeFirstName; cout << "Enter employee's last name: "; cin >> employeeLastName; cout << "Enter number of shifts: "; cin >> numShifts; cout << "Enter number of transactions: "; cin >> numTransactions; cout << "Enter dollar value of transactions: "; cin >> dollarValue; // This is…for (j = 5;_________;j++){printf("%d", j);} What must be the relational operator in order to display 1 3 5 7 9Programming Assignment: Car Repair For this programming assignment, create a car repair program that prompts the user to enter information about a customer, the customer's vehicle, and the work performed on the customer's vehicle. Your program should then display the final car repair bill on the computer screen. Your program should accomplish the following: 1. Prompt the user to enter the following information: a. Information about the customer (name, street address, city, state, zip code, phone number). b. Information about the customer's vehicle (make, model, year). c. Information about the work performed (brief description, labor hours needed, cost of parts). 2. Use a labor cost amount of $100.00 per hour and a sales tax rate of 7.0%. 3. Calculate the following: Variable subtotal sales tax total repair bill amount Formula subtotal = labor cost per hour * number of labor hours sales tax = sales tax rate * subtotal total repair bill amount = subtotal + sales tax 4. A screen shot of a…