The ___________iteration statement indicates that a statement or set of statements will be performed again as long as a certain condition is true.
Q: Last mon th Joe purchased 100 shares of stock for $45 .50 per sha re and paid hisstock broker a…
A: #include <iostream>#include <iomanip> using namespace std; int main(){ int…
Q: When the following main function runs, what will display on the screen? int main() {int number;…
A: Output: The value is number
Q: 5. Display like the figure where the value of the number is an input value. (In this example, the…
A: JAVA Program: import java.util.Scanner; public class Pattern0X{ private static Scanner sc; public…
Q: Assume the following variables are defined:i nt age ;double pay;cha r sec tio n ;Write a single ci n…
A: Answer is in step 2.
Q: A variable’s __________ is the time period during which the variable exists in memory while the…
A: Lifetime: The lifetime of a variable is the time that includes the variable existence in the…
Q: QUESTION2.Energy Drink Consumption A soft drink company recently surveyed 12,467 of its customers…
A: public class Main { private double customers; private double thoseThatPurch;…
Q: Malcolm Movers charges a base rate of $200 per move plus $150 per hour and $2 per mile. Write a…
A: Answer :
Q: V/ This pseudocode segment is intended to compute and display // the average grade of three tests…
A: The program is made up of 3 components called by the primary program. These components are:…
Q: 1:56 .l LTE O A online.claflin.edu CSCI 206 Lab Date: 24 March 2020 Lab Activity 7: Nested whiles…
A: Program code: //define a class Main class Main { //define the main() method public static void…
Q: - Age - Thename of the City - Thename of the College - Aprofession - Atype of an animal - Apet's…
A: C++ used to answer this question
Q: 5. Design a pseudocode function named getFirstName that asks the user to enter his or her first…
A: for 5th ques your code is given below:
Q: 1. Suppose you have a group of people who need to be transported on buses and You can charter a bus…
A: start print "TRANSPORTATION CENTER\n"; cout<<"---------------------------------------\n";…
Q: Develop a program to ask the user to enter a number, if the user enters a positive integer, then…
A: - The question is to develop a program for the factorial in a unique way with the provided…
Q: C++ Please Create a simple program that asks user to enter their name and displays the name with an…
A: The program creates two character array with maximum size of 10. Then the user is asked to input a…
Q: Create a program is C# called MarshallsRevenue.
A: C# (C-Sharp) is a programming language developed by Microsoft that runs on the .NET Framework. C# is…
Q: Lab Exercises: 1. Write a script that will generate a random number between 1 and 20 and the user…
A: Program Approach: Create file passwd.txt using open function with a as argument. Using write…
Q: eclare variables ame = "" ilyCookies = 0 eklyCookies = 0 ays = 0 al = 0 alDifference = 0 Fice = sk…
A: Required: I need 2 bugs in this
Q: QUESTION2.Energy Drink Consumption A soft drink company recently surveyed 12,467 of its customers…
A: public class Main { private double customers; private double thoseThatPurch;…
Q: Declare a symbolic constant named SecondsInDay using the equal-sign directive andassign it an…
A: Answer: Equal-sign directive is used to declare a symbolic constant and assigns value to it either…
Q: Parking Charges) A parking garage charges a $2.00 minimum fee to park for up to threehours and an…
A: Lets see the solution.
Q: Q5: Complete the function that calculates the position of an object at any time t> 0. The initial…
A: code def calculate_position(s0,u0,a,t): position = u0*t + 0.5*a*t*t position=position+s0…
Q: 1) Pseudo code algorithm 2) JAVA program ( IntelliJ ) The Meteorological service requires a…
A: Initialize variables, rainfallLevel <-- 0, currMax <-- 0, currMin <-- 9999, currAvg <--…
Q: Function task2() emulates purchasing a soda from a vending machine. A soda costs $1.00. The user can…
A: Given: Write a python function that emulates purchasing of soda vending machine.
Q: S. A company provides loans to new college graduates based on the following conditions: The…
A: The above question is answered in step 2 :-
Q: Write a program that prompts the user to enter his/her age as an integer. The program should then…
A: #Program to identify is user status based on age criteria #prompts the user to enter his/her age as…
Q: Design and implement an application that plays the High-Low guessing game with numbers. The program…
A: Start :- Declare counter to count number correct of guesses. and another counter for surrenders…
Q: Programming Exercise 2 Amanda's Sweatshirt Shoppe wants several lists of salesperson data. Design a…
A: Need to define flowchart or pseudo code for the given scenario : Where it should have three modules…
Q: Project 9-1: Interest Calculator Create a program that calculates the interest on a loan. Console…
A: Here I have used an infinite loop. Inside the loop, I have taken input from the user and then…
Q: A. USER REQUIREMENT Our University has rules and regulations that has to be followed by every…
A: Answer: C++ Source Code: #include <iostream>#include <iomanip> using namespace std;int…
Q: Function task2() emulates purchasing a soda from a vending machine. A soda costs $1.00. The user can…
A: def Task2(): currentAmount = 0.0 print("Soda Vending Machine") while True:…
Q: C++ Create a program for a new school where it promps the user for a student number in the school…
A: We need to write a C++ code for the given scenario.
Q: Q12.docx > Q/ The following table shows the order of five students degrees in mathmetics, physics…
A: The algorithm for the given input data. Algorithm: step 1 Start step 2 Input S // No of…
Q: All data types take up the same amount of storage. * O TRUE O False In the statement below: "Hello!"…
A: Actually, datatypes are represents a type of data.
Q: LTE .. نقطة واحدة E:11 docs.google.com The variable x in the following program is a global variable…
A: The variable x in the following program is not a global variable. The question is false. Because…
Q: How many statements can we have inside a function? O Less than the number of statements in the main…
A: There is no restriction on the number of statements in main() or any other function, or in a…
Q: Lulu Hypermarket wants you to create a program that they can use to compute for the discounts to be…
A: Required: Lulu Hypermarket wants you to create a program that they can use to compute for the…
Q: Engineering 3.1.10 The average person can jump off the ground with a velocity of 7 mph without fear…
A: Input : Input G,M,R values Velocity Output : Jumper will not return to the surface or not.
Q: program that can determine if the answer is true or false. 2. Create 5 questions. 3. If the answer…
A: Flowchart
Q: 02: choose the correct answers: 1) Let A='#' then the data type of variable A is charact (A) True…
A: I have answered all the 3 parts and have uploaded images for the solution. For the 1st question, I…
Q: TASK 3 (25 points) [Testing: Variables and expression, strings, conditional-statements, loops]…
A:
Q: 4. Pete's Pizzeria wants a program that displays an employee's weekly gross pay, given the number of…
A: Code in c++ as no coding language is mentioned: #include <iostream>using namespace std;int…
Q: C# and I half to use what's given below using System; using static System.Console; using…
A: C programming describes the task of writing computer applications based upon the C programming…
Q: Create a program that will perform the following: Prompt the user to input two integers: firstNum…
A: Program: Programs are the set of lines of code that is used to provide instructions to the computer.…
Q: Where does the execution of the program * ?starts user-defined function main function O void…
A: “Since you have asked multiple questions, we will solve the first question for you. If you want any…
Q: Predefined Function: ceil(), floor(), rand(), srand() 1. Create a program that will round off a…
A: C Program for above : #include <stdio.h> #include <math.h> int main() { //get…
Q: ate a program Will display the student's infom tion. The progräm should perform the folowing: • Ask…
A: Implementation: import java.util.*;public class Main{ public static void main(String[] args) {…
Q: Question: Read following scenarios and write algorithm and make flowchart for following scenarios.…
A: Note : As per guidelines we are authorized to answer 1 question per post. Please resubmit the other…
Q: Phython assignment Exercise 1: Oreo cookies Check out the nutritional values of an Oreo cookie…
A: The complete Python code is given below with screenshots. Variables are used in the code
Q: Every variable must have two things: O flowgarithm and console memory space and allocation O…
A: Variables in programming: The variable is defined as the containers that hold the information and…
The ___________iteration statement indicates that a statement or set of statements will be performed again as long as a certain condition is true.
Step by step
Solved in 2 steps
- 18. Tom and Jerry opened a new lawn service. They provide three types of services: mowing, fertilizing, and planting trees. The cost of mowing is $35.00 per 5,000 square yards, fertilizing is $30.00 per application, and planting a tree is $50.00. Write an algorithm that prompts the user to enter the area of the lawn, the number of fertilizing applications, and the number of trees to be planted. The algorithm then determines the billing amount. (Assume that the user orders all three services.) (9)4. During each summer, John and Jessica grow vegetables in their backyard and buy seeds and fertilizer from a local nursery. The nursery carries different types of vegetable fertilizers in various bag sizes. When buying a particular fertilizer, they want to know the price of the fertilizer per pound and the cost of fertilizing per square foot. The following program prompts the user to enter the size of the fertilizer bag, in pounds, the cost of the bag, and the area, in square feet, that can be covered by the bag. The program should output the desired result. However, the program contains logic errors. Find and correct the logic errors so that the program works properly. // Logic errors. #include #include using namespace std; int main() { double costs double area; double bagsize; cout > bagsize; cout > cost; cout > area; cout << endl; cout << "The cost of the fertilizer per pound is: $" << bagsize / cost << endl; cout << "The cost of fertilizing per square foot is: $" << area / cost << endl; return 0; }program3_1.pyWrite a program that prompts the user to enter his/her age as an integer. The program should then respond by displaying the user's status based on the following age criteria:Age 55 and over: seniorAge 20 and over: adultAge 13 - 19: teenAge 12 and under: minor
- Phython assignment Exercise 1: Oreo cookies Check out the nutritional values of an Oreo cookie (Koppelingen naar een externe site.). Write code that does the following: calculate how much one Oreo cookie is concerning: calories, sodium, carbohydrate, fat create a user input that asks how much cookies you ate calculate how much calories, etc. you consumed warn the user that if he/she surpasses 2000kcal he/she should stop eating these darn delicious cookies use variables!A function is a block of code that performs .a specific task True O False O#include <iostream> #include <stdlib.h> using namespace std; int main() { int choice; cout << "1. Shutdown Your Computer \n"; cout << "2. Restart Your Computer \n"; cout << "3. Exit\n"; cout << "\n Enter your choice : "; cin >> choice; switch (choice) { case 1: // Write your code here case 2: // Write your code here case 3: // Write your code here default: cout << "Wrong Choice!!\n"; } return 0; } Complete the given program. This program is to shutdown and restart the computer
- This variable keeps track of both the number of source-level statements that have been executed and the number of I/O operations that have been completed.This variable keeps track of the total number of I/O operations as well as the number of source-level statements that have been executed so far.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.50
- Integer userValue is read from input. Assume userValue is greater than 10000 and less than 99999. Assign thousandsDigit with userValue's thousands place value. Ex: If the input is 26498, then the output is: The value in the thousands place is: 6 #include <iostream> using namespace std; int main() { int userValue; int thousandsDigit; int tempVal; cin >> userValue; /* Your code goes here */ cout << "The value in the thousands place is: " << thousandsDigit << endl; }Assignment #2 Instructions: Through this programming assignment, the students will learn to do the following: Learn to work with command line options and arguments Gain more experience with Makefiles Gain more experience with Unix Learn to use some of the available math funtions available with C Usage: mortgagepmt [-s] -r rate [-d downpayment] price In this assignment, you are asked to perform the mortgage payment calculation. All information needed for this will be passed to the program on the command line. There will be no user input during the execution of the program You will need a few pieces of information. The price of the home and the amount of the down payment. You will also need to know the interest rate and the term of the mortgage. To figure your mortgage payment, start by converting your annual interest rate to a monthly interest rate by dividing by 12. Next, add 1 to the monthly rate. Third, multiply the number of years in the term of the mortgage by 12 to calculate…4.3 do / while #include <iostream>using namespace std;int main (){int a = 0;do{cout<< a <<endl;++a;}while ( a <= 8);cout<< "done" <<endl;} Task 4.3.1 explain what the program does?4.3.2 What is the output.