vaccination status, if user enters 0, print "Not Vaccinated". if user enters 1, print "Partially Vaccinated" and if user enters 2, print "Vaccinated.". In C language.
Q: Pakistan online Daraz company has four agent (1 to 4) who sell 5 different products ( 1 to 5). Once…
A: Write the program as follows: Create a 2D array of size 4*5. Input the sales of product for each…
Q: How is the OrElse operator different from the Or operator?
A: The answer is..
Q: A mobile phone service provider has three different subscription packages for its customers: Package…
A: Code: #include <iostream>using namespace std;int main(){ char choice; int mins, extramins;…
Q: A company manufactures three products engines, pumps and fans. They give a discount of 10% on orders…
A: I have provided C++ CODE along with CODE SCREENSHOT and also provided OUTPUT…
Q: Write an if statement that assigns 0.4 to commission if sales is greater than or equal to 10000. In…
A: Write an if statement that assigns 0.4 to commission if sales is greater than or equal to 10000.…
Q: A certain store has the following scheme: Commodity Code: J- commodities are discounted by 8% K-…
A:
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: Introduction to Python programming
A: # prompt the user to enter the number of packages purchased. number = int(input("Enter the number of…
Q: A certain store has the following scheme: Commodity Code: J- commodities are discounted by 8% K-…
A:
Q: C CODE PLEASE 3.28 Fixed LAB: Warm up: Automobile service cost (1) Prompt the user for an…
A: Introduction: C CODE PLEASE 3.28 Fixed LAB: Warm-up: Automobile service cost (1) Prompt the…
Q: Write a program in C language using switch case statement to evaluate the following formulae and…
A: #include<math.h>//header file#include<stdio.h>//header file int main() {//main method…
Q: , c) write a piece of code in C# that calculates the area of a triangle displaying the area in the…
A:
Q: cost of one small ball is 0.5 $ cost of one large ball is 1 $ Write a program in C++ to enter the…
A: Program Approach - Define the main function. Declare and initialize the variables as per code…
Q: The program prints the user's identifier (which could be an email address, a phone number, or a…
A: Below I have provided the java code of the given program. Also, I have attached the output of the…
Q: The condition of an IF statement evaluates to boolean only if the expression contains? O A. Logical…
A: The condition of an IF statement evaluates to Boolean only if the expression contains :- Logical…
Q: .________________operator can only be checked in “switch-case” statement
A: The, given question regarding switch-case” statement.
Q: A farm sells eggs to local customer. It charges $3.25 for a dozen eggs, or 45 cents for individual…
A: Program: //include the required header file #include <iostream> using namespace std;…
Q: Question 2 The following board is used to create a simple floor pattern in a game. Each cell is…
A: Since no programming language is mentioned, I am using python. Algorithm: Start Read a letter 'n'…
Q: Write a program that will accept the student's name. The program holds 20 names of students. The…
A: 1- In this assignment, I have used the struct keyword, struct is the blueprint of the class both are…
Q: An Internet service provider has three different subscription packages for its customers: Package A:…
A: import java.util.*; public class InternetServiceProvider { public static void main(String[] args) {…
Q: Germany has minimum marrying law in which if any person has age greater than 18 , they can marry.…
A: Requirements:- Germany has minimum marrying law in which if any person has an age greater than 18,…
Q: The && operator creates a compound Boolean expression that is true only when both subexpressions are…
A: GIVEN: The && operator creates a compound Boolean expression that is true only when both…
Q: code
A: Introduction Java is basically a type of programming language that is very much beneficial and can…
Q: Answer the following question TRUE or False 1. The if statement evaluates the test expression inside…
A: To answer the above question you should have a basic understanding of if-else statements. In daily…
Q: The logical operator OR (||) Condition is true if either one or both of the expressions is true True…
A: Answer is : True one or both condition is true that expressions is true example bool a = true;…
Q: Using switch syntax to write a program that calculates and prints the bill for a cellular telephone…
A: As no programming language is mentioned, it is solved using basic C++
Q: this is c program Write program that ask the user to enter int mark (0-100) for test Physics. Then…
A: Your C program is given below as you required with an output.
Q: repeat 5 times enter the salesperson's name and sales amounts calculate the bonus by…
A: Q: Code the given problem
Q: The following code finds if age is between 18 and 40 (both inclusive) or not. What will be the…
A: According to the Question below the Solution:
Q: Types of charges Room charges : Junior suite Deluxe suite Executive suite Critical care units:…
A: Since you have posted a question with multiple sub-parts, we will solve first three subparts for…
Q: Rewrite the following switch statement using a nested if-else structure (assume that n is a…
A: Above mentioned switch -case statement is converted to nested if-else statements. Equivalent Nested…
Q: Drow ER diegram please
A: ER diagram is the graphical representation of the relationship between an entity and its attributes.…
Q: The Meteorological service requires a program to allow the operator to enter the rainfall level. The…
A: use while loop to take values until zero is pressed. store the values into array and then find min…
Q: Q5: Develop a program using If-else statement that takes obtained marks from user for five (5)…
A: PROGRAM CODE: #include <iostream> // include header file for input output…
Q: The logical operator And (&&) condition is true if either one or both of the expression is true True…
A: The ANswer is in Below Steps
Q: 1. Write a program that prompt the user to enter product unit price and quantity purchased. The…
A: The given problems are to be solved in C++ programming language where required inputs will be taken…
Q: Write pseudocode and draw the flowchart to read the age of a user. You should then display the…
A: Pseudocode is the simple language explanation of the steps of algorithms. Flow chart is the…
Q: ou have to answer all subparts. Please do if not
A: I have solve subparts below please find:
Q: Complete the following if-else statement that assigns true to a boolean variable fever if the double…
A: 1) Syntax of if-else statement in Java is if (condition) { // block of code to be executed…
Q: 1. If C and F are the Celsius and Fahrenheit temperature respectively, the formula for conversion…
A: The problem is based on the basics of conditional statements in matlab programming language.
Q: All binary operators except for the assignment operators are evaluated as user intention.
A: Operators with higher precedence are evaluated before operators with relatively lower precedence.…
Q: QUESTION 10 Choose the correct statement. a. The String method substring returns a char. b. The…
A: Answer: d. The String method substring returns a String.
Q: 2. The following table contains earthquake magnitude ranges on the Richter scale and their…
A: The programming methodology is given by: Including header files Main function Declaring magnitude…
Q: software company sells a package that retails for 599. Quantity discounts are given according to the…
A: According to the question we have to write C++ code for following question:
Q: amount of money charged for a seminar. The fee per person is based on the number of people…
A: Since no programming language is mentioned I am using c++ Algorithm: 1. Start 2. Enter the number of…
Q: Write aprogram using nestedif statements that perform the following test: If the variable employed…
A: #include <iostream>using namespace std; int main(){ char employeed; int workLength;…
Q: The company offers 10-, 15-, and 30-year fixed loans. The interest rates offered to customers are…
A: Objective: This program builds an application for calculating the monthly payment of an entered loan…
Prompt the user for entering his vaccination status, if user enters 0, print "Not Vaccinated". if user enters 1, print "Partially Vaccinated" and if user enters 2, print "Vaccinated.".
In C language.
Step by step
Solved in 4 steps with 2 images
- The company discounted used cars pays their employees according to this chart: 250$ per months plus 50$ per car sold. If the salesman sells more than 10 cars, the employee receives a bonus of 5% of the total of his sales, in addition to his regular salary.Each month, the owner sits in front of the computer, and enters the following information: The name of the employee, the number of cars sold, as well as the total of all the sales for the month. algorithm that will calculate the salary of an employee for the month, and then display on the screen, his name, total cars sold, base salary, bonus if applicable and entire salaryPrint "userNum1 is negative." if userNum1 is less than 0. End with newline. Assign userNum2 with 4 if userNum2 is greater than 9. Otherwise, print "userNum2 is less than or equal to 9.". End with newline. C codeIn C++ language write a program that prompts the user to enter a natural number and checks whether the entered number is a multiple of 3 or not. But the use of the operator is not allowed in the program.
- Problem definition: A college wants to know how well its students did on an exam. The following program summarizes the results. The program asks a user to enter the results pass (1) or fail (2) for 10 students. It displays the number of passed and the number of failed. It displays a message "Raise error" if the number of passes is more than 8 You are asked to identify statement with syntax errors by selecting them as wrong and the correct statements as rightPlease answer in C# Write a program named TemperaturesComparison that allows a user to input five daily Fahrenheit temperatures that must range from −30 to 130. If a temperature is out of range, require the user to reenter it. If no temperature is lower than any previous one, display a message Getting warmer. If every temperature is lower than the previous one, display a message Getting cooler. If the temperatures are not entered in either ascending or descending order, display a message It’s a mixed bag. Finally, display the temperatures in the order they were entered, and then display the average of the temperatures. Your program's output should look like the following: Getting warmer: 70 74 77 78 81 Average: 761. Write an if statement that assigns 0 to p if q is equal to 30. In C++ programming language.
- conditional structures Create a program that will ask for the username and password.USER NAME:PASSWORD:Note:a. Correct username and password combination, display “You entered a valid username and password combination” and “Access Granted”.b. Incorrect username and/or password combination, display “Please check your input”, “Username and/or the password is invalid”, and “Access Denied”.In C language The if...else statement executes two different codes depending .upon whether the test expression is true or false False True * In C language is invalid identifier su_b O intProgram Purpose - Professional Athletes often hire other professionals to help take care of matters for them. We will group them in four categories: Lawyers, Personal Assistants, Agents, and Trainers. They all get paid a percentage of the athlete's total yearly salary. Lawyers - 10%, Personal Assistants - 3%, Agents - 7%, and Trainers - 5% . Prompt the user to enter the athlete's salary for the year (ensure that the entered value is positive). The user should then enter the name and category of each of the hired professionals. The athlete should be able to hire as many professionals in each category as he/she wants, even if it is more than he/she can afford. Based on the category, calculate the amount that each professional should be paid. After all data has been entered, print the names of each professional hired, how much each is being paid, the total amount the athlete paid, and how much the athlete has left.…
- Program Purpose - Professional Athletes often hire other professionals to help take care of matters for them. We will group them in four categories: Lawyers, Personal Assistants, Agents, and Trainers. They all get paid a percentage of the athlete's total yearly salary. Lawyers - 10%, Personal Assistants - 3%, Agents - 7%, and Trainers - 5% . Prompt the user to enter the athlete's salary for the year (ensure that the entered value is positive). The user should then enter the name and category of each of the hired professionals. The athlete should be able to hire as many professionals in each category as he/she wants, even if it is more than he/she can afford. Based on the category, calculate the amount that each professional should be paid. After all data has been entered, print the names of each professional hired, how much each is being paid, the total amount the athlete paid, and how much the athlete has left.Python Programming Only Please: Write a program that asks the user to enter a person’s age. The program should displaya message indicating whether the person is an infant, a child, a teenager, or an adult. Following are the guidelines: • If the person is 1 year old or less, he or she is an infant.• If the person is older than 1 year, but younger than 13 years, he or she is a child.• If the person is at least 13 years old, but less than 20 years old, he or she is a teenager.• If the person is at least 20 years old, he or she is an adult.Don’t use if statement