Discount (percent) and customer support discount (percent) on the sales price of a product will be entered from the keyboard. Write the C Programming code that shows the sales price resulting from the discounts accordingly.
Q: PROBLEM 9 M4: CONTROL STATEMENTS: Write a C++ program that determines the number of days before…
A: #include <iostream> using namespace std; int main(){ double seconds, days; time_t…
Q: Time and date in C++ I have a question asking me to make a program in C++ that calculates the…
A: #include <iostream>#include <cmath>#include <ctime>using namespace std; int…
Q: C programming Input code in "Enter code here" section
A: Approach Function matrix_printer void matrix_printer(int matrixA[][4], int matrixB[][4]) {…
Q: Define flowchart
A: Ans:- A flowchart is a diagram that depicts a process, system or computer algorithm. They are…
Q: A year is leap if it is divisible by 4, unless it is divisible by 100 and not by 400. Write a…
A: Given: A year is leap if it is divisible by 4, unless it is divisible by 100 and not by 400. Write a…
Q: A c# code please see pictures for more details. there is also a sample output. NOTE THAT THIS IS A…
A: solution in below step
Q: Symbols such as + and * used in expressions to manipulate operands are known as Select one:…
A: Answer:
Q: Whenever we need to execute some instructions repeatedly ______________ statements are used in…
A: Actually, program is an executable software that runs on a computer.
Q: c++ Sales Prediction The East Coast sales division of a company generates 58 percent of total…
A: Task :- Write a C++ program to predict the sales generated . C++ program :- #include…
Q: e a selection statement (NOT a complete program) to determine the wave description based lay the…
A: I have written trhe statements using else if ladder her i assumed wave height as wh sattements flow…
Q: Problem Definition Write a Python program that calculates the perimeter and area of multiple simple…
A: - The question wants us to write the purpose, input,output and algorithm of the given program.
Q: Research current rates of monetary exchange. Write pseudocode to represent the logic of a program…
A: The, code has given below:
Q: hello good afternoon, please, I need help with the following problem c++: ASSIGNMENT (CONTROL…
A: A C++ program to display the song time and total time in a table format and a message indicating…
Q: Explain the white box testing using a flowchart.
A: White box testing means to a scenario where the tester deeply understands the inner workings of the…
Q: Payroll Program with input validation: Design a payroll program that prompts the user an employee's…
A: To write: To write a C++ program that calculates the gross pay using the given interval of range and…
Q: Please help me with writing a code! This is C programming. C programming only.
A: USER DEFINED FUNCTIONS: A function which is created by user for its own programming requirement…
Q: Problem statement: Design the solution to the following problem and implement it in a Python…
A: As the algorithm steps for the program are already given in the question and your code already…
Q: Rectangle symbols correspond to calculations that are normally performed bystatements and…
A: Given question is related to programming algorithm.
Q: Please design a Flowchart based on this C++ Programming.
A: Flowchart is the pictorial representation of step by step process.
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: Explain the white box testing using a flowchart
A: Here we will discuss about the white box testing
Q: plete the following sentence There are two broad categories of control statements: which select…
A: Answer
Q: Enter numbers continuously using the Do-while structure. When the number entered is a negative…
A: #include <stdio.h> int main(){ int n; //The variable in which we store input…
Q: Please write this code in C# : Scenario: A dog shelter would like a simple system to keep track of…
A: A dog shelter would like a simple system to keep track of all the dogs that pass through their…
Q: Learn about repetition control structures Use the while, do-while, and for loop statements • Apply…
A: I give the code in C along with output and code screenshot
Q: .c program The Problem Statement You and your roommates go through a lot of orange juice. Since…
A: The Problem Statement You and your roommates go through a lot of orange juice. Since you're living…
Q: 1 Control statements in C++ To write a C++ program, algorithm and draw a flowchart to find the…
A: The Aim, Algorithm & flowchart, developed source code, result, conclusion are given below:
Q: Need assistance with python code. Problem statement: Design the solution to the following…
A: - We need to highlight the code for the above problem accordingly.
Q: I need help writing a C++ code. I need help writing a boolean function that is named isPrime which…
A: isPrime(int n) : function to check a number n is prime or not take variable primeFlag set to true…
Q: lease do this in Python: TEXT-BASED CALCULATOR PROJECT OPERATION CONTROLS '+' for addition '-'…
A: Answer: our guidelines is answer first three question form first so we have answered in python code…
Q: Objective: To write, compile and execute programs using control statements Exercise 1: Write a C++…
A: Answer Code in Python #include <iostream> using namespace std; int main() { int A;…
Q: rogramming Language: PHP 1. Create a program using switch statements that will ask the user to…
A: I have given the PHP code below.
Q: FLOWCHART and WRITE a C program to measure the surface area and volume of phere and a cone The…
A:
Q: Fun math practice You Python programming teacher wants to see you make a program that accepts input…
A: #Program to enter name and few number and display some fun outputs using math built in function…
Q: C++ Programming Problem: As valentine week is approaching so you want to gift your girlfriend the…
A: Given in the problem that we have to develop a C++ code to to find out the loveliness of the given…
Q: Problem: Use If, If…Else, and Nested If Statements Using Visual C#, create a program that will…
A: PROGRAM EXPLANATION: Create the main class and main method. Ask the user to enter the input code.…
Q: True or false: You can override the end value in a print statement to change what is added to the…
A: The end key of print function will set the string that needs to be appended when printing is done.…
Q: 3.(Counting Negative, Positive and Zero Values) Write a C# program that inputs five numbers and…
A: Please find the answer below :
Q: Problem Definition Write a Python program that calculates the perimeter and area of multiple simple…
A: First, we need to read the option to select the shape and then we compute the area and perimeter.
Q: Draw flowchart AND write pseudocode for each of the following problems. C++ User asks you to design…
A: Since there are multiple questions, we will provide the answer for the first full question as per…
Q: Problem Description: Your friend keeps finding mistakes in his code due to unmatched brackets…
A: Answer: Algorithms: Step1:we have create function balance or not and given arguments as string str…
Q: Design the flow diagram of a program that prints "Hi" on the screen as the sum of the digits of the…
A: Flow diagram : representation of the work flow is called as flow diagram.
Q: different categories. Write a c++ program that would input the wind speed in mph and would output…
A: #include<iostream> using namepsace std; int main(){ int speed; cout << "Enter wind…
Q: employee based on how many hours they worked. For this company, an employee earns $20 an hour for…
A: Please check the step 2 for solution
Q: Undefined behavior Tion: Using your laptop or PC, Create a C program that can identify the memory…
A: C program is given below
Q: The area of a rectangle is the rectangle’s length times its width. Design a program that asks for…
A: #include <iostream>using namespace std; int main(){ int len1, len2; int wid1, wid2;…
Q: Research current rates of monetary exchange. Draw a flowchart, write pseudocode and C++ to represent…
A: 1 dollar=0.91 Euros 1 dollar=109.46 Japanese yen
Discount (percent) and customer support discount (percent) on the sales price of a product will be entered from the keyboard. Write the C
Step by step
Solved in 3 steps with 1 images
- (Civil eng.) Write an assignment statement to determine the maximum bending moment, M, of a beam, given this formula: M=XW(LX)L X is the distance from the end of the beam that a weight, W, is placed. L is the length of the beam.(Civil eng.) Write an assignment statement to calculate the linear expansion in a steel beam as a function of temperature increase. The formula for linear expansion, l, is as follows: l=l0(1+(TfT0)) l0isthelengthofthebeamattemperatureT0.isthecoefficientoflinearexpansion.Tfisthefinaltemperatureofthebeam.Hide Assignment Information Instructions The civil engineering department has asked you to write a program to compare three different designs of water towers shown in the diagrams below. The water towers are a cylinder topped with a half sphere. The engineers want to find the design that has the highest volume. The radius of the sphere and the radius and height of the cylinder for each of the three projects will need to be input by the user. The formula for the volume of a Sphere is:V = 4/3 π r3The formula for the volume of a Cylinder is:V = π r2 h Write two functions that will calculate the volume of a sphere and a cylinder respectively. Then, use these functions to write a program that will find the design with the largest volume. Hint: Remember that the tower only consists of a half sphere.
- c++ program create a program that will ask the user to accept the total tuition fee of the student. after accepting, it should display the 5%, 8% and 15% of the student's tuition fee. get the total of all the 3 amounts and display the result.ASSIGNMENT REQUIREMENTSWrite a Python program that determines the average of three test scores. The program should prompt the user to enter the three scores from the keyboard. All test scores are to be entered as scores out of 100 but without the % sign. The program should calculate the average as a percent and display it accurate to two decimal places with the % symbol immediately following the final digit. See the sample output below. Upload your completed Python program to this dropbox. As with all assessments and assignments, your programs should: Start with a comment that includes your name and course number. Include pseudocode that describes all steps required to solve the problem. Employ variable names that describe the values they store and adhere to Python naming conventions. Include additional comments as needed to annotate your code. Use correct spelling and grammar. SAMPLE OUTPUTEnter the score for test 1 95Enter the score for test 2 80Enter the score for test 3 85The…c++ Sales Prediction The East Coast sales division of a company generates 58 percent of total sales. Based on that percentage, write a program that will predict how much the East Coast division will generate if the company has $8.6 million in sales this year. Display your prediction on the screen.
- C programing language The following code should print the values 1 to 10. Visualize the code and if there is an error or a statement need to be corrected apply the correction.n = 1;while ( n < 10 ) printf( "%d ", n++ );Note: C++ language Write a program that determines the price of an item after discount according to the following rule: if the original price is greater than 100.00 then the discount is 10%, otherwise the discount is 7% in Summer seasons and 5% in Winter seasons. The program should read: 1- the original price of an item and 2- the current season (s for Summer, p for Spring, f for Fall and w for Winter) and prints on the screen the price after the discount.True or False You can declare multiple variables of different data types with one declaration.
- True or False In code, true and false must be lowercase.COMPUTER AND INFORMATION SCIENCES INTRODUCTION TO PROGRAMMING ASSIGNMENT 1 The salary scales of workers in an institution are taken as input. The workers get paid as per the following rules: Scale 1: Salary is 10,000 KES. Scale 2: Salary is 15,000 KES. Scale 3: Salary is 20,000 KES. Using appropriate control structure, write a program to display salary at different scales. 2 Write a program to calculate the salary as per the following table: Years of Service Qualifications Salary <10 Post-Graduate 15000 10 Graduate 10000 <10 Post-Graduate 10000 10 Graduate 7000 3 State and explain primary Data types used in C programminguse C++ programming language Write a program that computes and displays the charges for a patient’s hospital stay. First, the program should ask if the patient was admitted as an inpatient or an outpatient. If the patient was an inpatient, the following data should be entered: The number of days spent in the hospital The daily rate Charges for hospital services (lab tests, etc.) Hospital medication charges If the patient was an outpatient, the following data should be entered: Charges for hospital services (lab tests, etc.) Hospital medication charges Use a single, separate function to validate that no input is less than zero. If it is, it should be reentered before being returned. Once the required data has been input and validated, the program should use two overloaded functions to calculate the total charges. One of the functions should accept arguments for the inpatient data, while the other function accepts arguments for outpatient data. Both functions should return the…