A. Write a program that will ask the user to enter the five areasinduded in the NCR+Bubble (AREA) and the corresponding Covid-19 cases (CASES) in each area (it must be > 0.00). Your output should include the following:List of Areas and Covid-19 cases arranged in ascending order and the total cases (TOTAL) of those areas. Example: Please enter 5 areasin NCR+ Bubble and their Covid-19 cases. #1. Area: Metro Manila Covid-19 Cases: 74700 #2. Area: Covid-19 Cases: #5. Area: Covid-19 Cases: Area Number of Covid-19 Cases ТОTAL Sorting Method: Insertion Sorting based on Covid -19 cases What will you submit? .cpp file with filename in this format, IT11Q1_LASTNAME
Q: Your completed program should: 1. Prompt the user and read in the number of a team playing the…
A: Your completed program should: 1. Prompt the user and read in the number of a team playing the…
Q: You can find out how many seconds have elapsed since Jan 1, 1970 using the time() function.…
A:
Q: Write a program that asks a data entry specialist to input employee information as comma separateu…
A: I have provided PYTHON CODE along with CODE SCREENSHOT and OUTPUT SCREENSHOT----------
Q: Q1/ Write program to find temperature (W) that found from T= 5S°+2S+3 T= 2S3+3S?+5 at S100 Where…
A: #include <stdio.h> int main(){ //printf("Hello World"); int T,S,W,K;…
Q: 1.3 Lab 1(a): Driving costs Driving is expensive. Write a program with two inputs, a car's…
A: Please find the answer below:
Q: The steelwork.py program, given below, creates three types of steel objects. Carbon steel (Steel) is…
A: Actually, python is a easiest programming language. It has a concise(less) code. It is a dynamically…
Q: lease complete the following function printBox, which accepts three parameters (i.e., char c, int…
A: Since programming language not mentioned using C++ CODE: #include <iostream>using namespace…
Q: Write a program for The Carefree Resort named ResortPrices that prompts the user to enter the number…
A: C# is a general purpose multi-paradigm programming language developed and used by Microsoft. It…
Q: Write a program using if-blocks that allows the user to input a taxable income value into a text…
A: According to the Question below the Solution: HTML: <!DOCTYPE html> <html>…
Q: 7. Write a program that will check and print if the person is a regular passenger, student or senior…
A: Algorithm: Start Read number If number is 1, print regular passenger Else if number is 2, print…
Q: Write a program continuously asks the user to enter a sentence until they type "-999". It should…
A: As you have not mentioned the programming language, I have written the program in java import…
Q: Write a program continuously asks the user to enter a sentence until they type "-999". It should…
A: #the function definition for uppercasedef Uppercase(sentence,n): upper='' for i in range(n):…
Q: Write a program that reads from a student his/her name and his/her ID which is formed of 8 digits.…
A: The solution to the given problem is below. **Note: As programing language is not mentioned in the…
Q: d. Write a program to convert English unit to metric as unit by using switch - case statement. The…
A: The question asks to make a program in such a way that it would display a menu where many metric…
Q: Problem 3. Write a program that will display an n x n box of asterisks, where n is user input.…
A: #include <stdio.h> int main(void){ int n; int i; int j; printf("Enter the size…
Q: Write a program using C++ language that prompts the user to input an integer between 0 and 35. The…
A: Input a number. IF number < 9 ,print the no. else provide the output acc. to asked in the…
Q: 5.A)For the code segment below, what should be the values for q will result in kiwi being included…
A: A switch case is like a if-else-if ladder. When the value of variable to be switched matches any…
Q: Write a program to calculate the GPA in First semester. 1- The program asks the marks out of 100 in…
A: Explanation: Arrays of marks, weight and GPA are created. Input is taken in the marks array, and…
Q: 7. Write a program that asks the user's name, and then greets the user by name. Before outputting…
A: The problem is based on writing the code to input users' name and to greet the user after converting…
Q: Write a program that keeps prompting the user to enter the first character of his favorite car; and…
A: The user enters the first alphabet of the car and his/her car’s name get displayed.
Q: Q3: Write a VB program to enter a mark of a student and then find his grade as follows: If mark >=75…
A: VB program is asked with the following conditions: If mark>=75 print Grade = A If…
Q: Write a c++ Develop a version where the player makes bet. If the Player guesses the first time, the…
A: C++ code to construct a game to guess number by betting money
Q: 1. You are working for the census bureau and you need to write a program to count the number of…
A: Note: We are authorized to answer two questions at a time. Since you have asked more than one…
Q: Write a program which given an initial three digit number such as. three_digit_number = 123 prints…
A: Program In c # include <stdio.h># include <conio.h>#include<math.h>int main( ){int…
Q: Write a program that allows the user to enter a number between 1 and 1000. If the number is…
A: import math def isPrime(n): if (n <= 1): return False if (n <= 3): return…
Q: d. Write a program to convert English unit to metric as unit by using switch ... case statement. The…
A: Since you have not asked for any particular language, Hence i am answering the question in c++…
Q: 1. Write a program that uses one printf() call to print your first name and last name on one line,…
A: Note: This is multiple questions-based problem. As per company guidelines, only the first question…
Q: C++ Write a program that takes in a line of text as input, and outputs that line of text in…
A: Program approach: Including header files Starting the main function Initializing string variables,…
Q: Write a program that asks the user to enter an amount of money in the format of dollars and…
A: Program: quarters = 0 dimes = 0 nickels = 0 pennys = 0 print("Please enter aomunt in the…
Q: A program that accepts insurance policy data, including a policy number, customer last name,…
A: Answer: I given in the form in hand written
Q: 9) Write a program that takes in the user's name and age. Then displays his/her name's initial…
A: #include<iostream> using namespace std; int main() // main function { string name,…
Q: In Coral Programing!! Write a program that takes in an integer in the range 20-98 as input. The…
A: Read an integer as input. Check if the integer is between “20” and “98”. If yes, move on to next…
Q: b- Write a program that allows the user to enter coordinates of circle center and radius then asks…
A: Given: Write a program that allows the user to enter coordinates of circle center and radius then…
Q: Write a program to use enumeration type to represent the seven colors of the rainbow, i.e. red,…
A: switch (choice) { case 1: cout << "Red color is chosen. The next color is…
Q: Your program will calculate the cost of orders on Amazon.com witha quantity and price, and add…
A: Program in Java: import java.io.*;public class Ordering_System{ public static void main(String…
Q: 4. Write a program that computes the employee's payroll of ABC Company. The user is first asked to…
A:
Q: Write a program that asks a data entry specialist to input employee information as comma separated…
A: NOTE : As the question is not specific about which programming language is to be used to code the…
Q: 8. Write a program to display a table showing conversion from meter to feet. Hint: use formatted…
A: public class MeterConvert { public static void main(String[] args) { // To do…
Q: A student took four quizzes in a term and would like to compute their average. He also would like to…
A: 1. Input marks of 4 quiz 2. Add the marks of 4 quiz to get the total(tot) 3. Divide the add value…
Q: By using Loop in c++, you are responsible to develop a Credit Limit Calculator, which will determine…
A: Find Your Code Below
Q: Prompt the user for successive input lines, with the prompt "Enter course number, units, and grade,…
A: Here below is the code in Python is :
Q: or each unit conversion listed below,write a short program that prompts the user to enter a number,…
A: As per our guidlines we are supposed to answer only 3 sub parts kindly post other question as a…
Q: Write a program that prompts the user to input three positive angle values in degrees to determine…
A: - We need to code for the triangle program.
Q: Here is the expected output for InflationRate Part1: Enter the old and new consumer price…
A: EXPLANATION: The general formula to compute the inflation rate is “((new_cpi -…
Q: Write a simple payroll program that will display the employee's information, The program should…
A: Question given: Write a Java program that display employee's payroll information. Ask from user…
Q: Your objective is to write to write a complete C++ that Prompt the user and store their inputs in…
A: Data types in C++ programming language: The data types are used to store the type of the values and…
Q: 12. Write an improved version of the futval.py program from Chapter 2. Your program will prompt the…
A: CODE:- 1. Call the main() function. 2. Display the result in the tabular format. 3. Print the…
Q: Write a program that prompts the user to input the three coefficients a, b, and c of a quadratic…
A: Sample Response: #Python program to find the roots of quadratic equationimport math# function to…
Step by step
Solved in 2 steps with 2 images
- 5.A)For the code segment below, what should be the values for q will result in kiwi being included in the output? switch(q) { case 1: cout << "apple"; break; case 2: cout << "orange"; break; case 3: cout << "banana"; break; case 4: cout << "pear"; case 5: cout << "grapes"; default: cout << "kiwi"; } B)Evaluate the following segment of a program. Show the procedure to reach your answer. int a = 3, b = 5, c = 2, d = 4; find: !(a / b > 0) && (22 > b % c + d) || !(a * d >= b – d / c) C) Write equivalent expressions for each of the following by using De Morgan’s Law. !(c == ‘r’ || (( y > 2) && !found ))Your cousin owns an automotive maintenance shop that performs routine maintenance on cars. He has asked you to write a program that will provide a list of services (and their respective prices) to users and allow them to choose any, or all, services they would like and display the final price, including a 34% labor charge, a 14% markup if the car is an import, a 4% Covid-19 Sanitizing fee, and an 9.5% sales tax. Task To accomplish the above, do the following: • Write the two methods outlined below. • Test your program and screenshot your successful test. carMaintenance method This method should accept the make of the car as a parameter (e.g., BMW, Ford, Ferrari, etc.). It should display the services and their prices as follows: Services: Emissions System Repair, Tune Up, Timing Belt Replacement, Transmission Service, respectively: 669.99, 259.99, 885.99, 169.99 These should be stored in parallel arrays. Ask the user to select a service from the list presented for his . Allow the user…Here is the expected output for InflationRate Part1: Enter the old and new consumer price indices: 238.170 239.513Inflation rate is 0.563884 Each lab (InflationRate Part1, InflationRate Part2 and InflationRate Part3) will build successively on the previous submission. Part 1 Write a program to read in two consumer price indexes and print out the inflation rate. 1. Start with the student starter code and follow the instructions in the code. 2. Instructions to complete are tagged in comments like the ones below. They will always begin with // TODO. // TODO #1: declare two float variables for the old consumer price index (cpi) and the new cpi // TODO #2: Read in two float values for the cpi and store them in the variables<br> // TODO #3: call the function InflationRate with the two cpis // TODO #4: print the results
- Write a program that prompts the user to enter twocharacters and displays the major and status represented in the characters. The firstcharacter indicates the major and the second is number character 1, 2, 3, 4, whichindicates whether a student is a freshman, sophomore, junior, or senior. Supposethe following characters are used to denote the majors:I: Information ManagementC: Computer ScienceA: Accounting Here is a sample run: Enter two characters: I1 ↵EnterInformation Management FreshmanC++ Create a program that reads a simple arithmetic expression and evaluates it. More precisely, the program reads from the user a line of text that’s supposed to contain two numbers separated by an arithmeticoperator, as in: 35.6 + 12 The program then prints back the expression and its value, as in: 35.6 + 12 = 47.6 The program should verify that the input line contains two numbers, one operator and nothing else. There can be whitespace before the first number, after the second number and between each number and the operator.The operator can be either +, −, *, or /. In case of an error, the program should print: "Invalid expression" and quit.When the program prints the expression, there should be no whitespacebefore the first number and there should be exactly one blank space beforeand after the operator and the equal sign.Use string streams.Write a program using if-blocks that allows the user to input a taxable income value into a text box, and after clicking a button the tax is calculated and displayed in another text box. Write a function to do the tax calculation. The answer should be rounded to 2 decimal places. Your program should calculate the correct tax no matter what the income range. Use an IF-block to make this work.
- c++ Write a program to use enumeration type to represent the seven colors of the rainbow, i.e. red, orange, yellow, green, blue, indigo and violet, as the enumerators in sequence, and red starts from 1. Then, ask the user to choose a value between the range of 1 – 7. If the user enters 3, the output will tell the user yellow has been chosen, and also display the previous and next colors of the chosen colors. If the user enters 1 or 7, display the chosen color and only next/previous color is displayed accordingly. Write the program in an infinite while loop, until a number which is beyond the range of 1 – 7 is entered. The sample output is as follows, Enter a number in the sequence of the rainbow color (1-7): 7 Violet is chosen. The previous color is indigo. Enter a number in the sequence of the rainbow color (1-7): 1 Red color is chosen. The next color is orange. Enter a number in the sequence of the rainbow color (1-7): 3Yellow is chosen. The previous color is orange and next…Write a C++ that Ask user to enter an integer number and then determine whether the number is prime or not? Note: a number is prime that it is only divisible by 1 and itself. such as 3,5,7,13,..What will be output by the above code segment ?
- Write a program to take input name, ID and marks of 4 Courses (Physics111,Math120, English102 & CSE162) obtained by you and your group members.Display the Name, ID, grade in each of the courses and also the result of totalmarks and percentage obtained with his/her rank in the class.In this task, you need toevaluate the following four expressions and demonstrate atleast 5steps of evaluating them. a) -(4%2-1/3+5*6) b) ! (( 3 > 5) && ( 6 < 2)||(1==4)) c) (6%2)! = (4/5) == (3*7) d) ! 0 || 1 && ((1 &&0)||(1&&0))Problem 2 Write a program that lets the user enter an integer number and display its equivalent value in text form. The range of input values should be from -99999 to 99999. Example 1 Enter integer in range [-99999, 99999] -> 100 Expected Output Text equivalence: one hundred Example 2 Enter integer in range [-99999, 99999] -> 5 Expected Output Text equivalence: five Example 3 Enter integer in range [-99999, 99999] -> 1812 Expected Output Text equivalence: one thousand eight hundred twelve Example 4 Enter integer in range [-99999, 99999] -> 44040 Expected Output Text equivalence: forty-four thousand forty Example 5 Enter integer in range [-99999, 99999] -> -10 Expected Output Text equivalence: negative ten In [40]: