Read student's grade 'A','B', 'C','D' or 'F' and print "Good job" when grade entered is either 'A', or 'B'. • Read customer luggage weight, if it is more than 23kg print a warning message. Read a number x, if it's negative print its absolute value.
Q: #include int main() float Bread = 1.09, Water = 2.18, Banana = 1.00, Meat = 7.99; // Unit for bread…
A: Solution: These two line are: //line-1 printf("You have %d loaves of bread, %d bottles of…
Q: felh (Business: check ISBN-10) Question 1a An ISBN-10 (Intermational Standard Book Number) consists…
A: Take the input as ISBN number Genarate the output It is 10 string length of ISBN number
Q: Q3: The volume of a circular cylinder V=rtr?h, write a program to compute the volume if r=8m and…
A: Objective: This program designs a class to create cylinders for a given height and radius. The…
Q: 2. Electric Bill: Write a program that will calculate and show bills of the Manila Electric Company.…
A: The code is given below.
Q: d. Given that an int variable s has been initialized, write a statement(s) that declares a new…
A: d) int s1=(9*(s-8))%4
Q: Q#1: Write a program that prints the numbers from 1 to 1000 On the same line it should also print…
A: Program plan: Create a function name printSquare() loop from i=1 to 1000 print(str(i)+". Squared…
Q: main.c 10. Lucky Customer by Jay Vince Serato E Run Tests We have a special promo here in our…
A: According to the Question below the solution: Output:
Q: A number N can be categorized as Deficient, Perfect or Abundant Number based on the following…
A: Expect the number itself, any factor of a number is called proper factor. All factors of the number…
Q: A- Given the declaration: int main () int x; int p; int q; return 0; mark the following statements…
A: Answer: Valid Invalid Valid Valid Invalid
Q: Suppose you have a certain amount of money in a savings account that earns compound monthly…
A: Inorder to give user the option if he wants to use the service again I have used while loop logic at…
Q: Q1: Write a program that read 10 Marks and print number of failed and succeeded marks.
A: Note: As no programming language is mentioned, therefore answering in python. Input to the Program :…
Q: Mortgage bond L, interest rate r =15%. The fixed payments P to pay off the loan over N years is…
A: Given that, For a Mortgage bond L, Interest rate r = 15% Fixed payment…
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: b) Write a full program by apply the following decision table using nested if statement. Assume that…
A: Sample Response: //C++ programming language#include <iostream>using namespace std;//main…
Q: PRG11: Write a program that will calculate and show bills of the Manila Electric Company. The rates…
A: #include<stdio.h>int main(){ int subId, consumption; float bill; char name[40],type;…
Q: Accept two integers and determine of the values are equal, if the values are equal print” EQUAL…
A: Introduction of Program: The C++ program takes two integers as input from the user and if both…
Q: (b) Given a and b are int variables and c is a double variable. The initial value for a, b, and c…
A: Postfix Operator: value of the variable is first used the expression and its incremented by 1. Since…
Q: We have 100 critics who have rated the top movie of the year: Enchantio! Write a C++ program that…
A: Hey there, I am writing the required solution for the above stated question.
Q: Write a number activity and then circle the circle or square. The input will be in the form (letter…
A: Algorithm - Create a new function with name perimeter with two arguemnt. Now use the below logic…
Q: C ++ program that prints the average and total of ten grades for three students 11:47
A: The program is made using C++ and implemented with structured approach. There are two functions one…
Q: The Significance (S-value) of an integer number is the number of the digits that are composing the…
A: PROGRAM EXPLANATION: - The program comprise of multiple parts. The input is taken from user for the…
Q: Q(X, y) Be the statement II the domain for both variables consists 0f all integers, what are the…
A: The suitable answer is " False".
Q: Voltage readings are obtained from an electrical substation once every hour for six hours Write a…
A: The Program language is not mentioned here. So, I am using C language to answer your question. The C…
Q: I got error in this section "#include"Student.h"
A: According to the mentioned code. There is no error in the code while executing it.
Q: 2.16 LAB: Musical note frequencies On a piano, a key has a frequency, say f0. Each higher key (black…
A: Required: python On a piano, a key has a frequency, say fO. Each higher key (black or white) has a…
Q: 8. The dynamics of a comet is governed by the gravitational force between the comet and the Sun, f=…
A:
Q: 2- Let P, Q, R be true, false, true, respectively, which of the following is true I) P and Q and R…
A:
Q: Write a program that reads the marks of a student in the test (te), midterm (mid), assignment…
A: Code: #include<stdio.h> int main(){ int tm,mid,assig,fe,pm; printf("Enter…
Q: Declare constant CRT of type double and initialize to 0 Declare x of type float and assign a value…
A: Programming Language is not mention in question so i am using Java language for this question…
Q: second. 2. Write a program that converts feet to meters. The program should display feet from 3 to…
A: PROGRAM CODE: #include <stdio.h> int main(void){ int start = 3, end = 30;…
Q: In a chemistry class there are ten students and each the students has taken 5 tests.The total mark…
A: #include <iostream>using namespace std;/* Student class*/class Student{ public:…
Q: What are the final values of x, y, and z. int x = 2; int y = 3; %3D int z = 0; X = -X; X = x & OxF;…
A: Integer takes 4 bytes of memory int x=2 x = 00000000 00000000 00000000 00000010 int y=3 y = 00000000…
Q: Let A = {4, {4, 5}, {5},Ø}. ANswer each of the following questions. 1) |A| = 5 2) Which of the…
A: Here in this question we have given a set A and based on this we have asked to answer true or false…
Q: 1. A software company sells a package that retails for $99. Quantity discounts are given according…
A: logic:- take quantity as user input. apply if else to find out discount. at last subtract…
Q: Q1. Write a program in which the output of the program should be the performance result of a student…
A: Program description: n is the user input integer variable that is used to take from the user the…
Q: 15. Display the salary in words of all employees. i.e. if salary is 8547, the output should be eight…
A: SQL Query is given below:
Q: Jump to level1 Write multiple if statements: If car_year is before 1967, print "Probably has few…
A: NOTE: Since programming, langauge is not mentioned. Therefore answering questions in Python…
Q: 3. A certain CS professor gives 100-point exams that are graded on the scale 90-100:A, 80–89:B,…
A: Ans: Code: score = int(input("Enter the exam score:"))if score > 90 and score < 100:…
Q: Q3/ Read the following code carefully, and ther #include int main() { double x,y; -cin >> x >> y;…
A:
Q: 1. Write a simple program to determine the credit card types according to annual income and user…
A: #include <iostream> using namespace std; int main(){ int inc,interest;…
Q: Program33.java Write a program that generates a random Fahrenheit oral temperature between 92 and…
A: To generate a random number, Random class is used in java util library. nextInt(bound) method…
Q: Complete the function below: bool eligible(int marks){ I/returns true if marks is >85 else return…
A: Write a function in C++ which takes an integer marks as input parameter and return a bool true or…
Q: Fill in the blank and write the correct word in the space provided? Hours worked in Company is →…
A: We need to fill in the blanks with the correct words in the space provided
Q: 10. Let p be the statement “He gets frustrated.” and q be the statement “He will be able to complete…
A: Here in this question we have given a logical statement and we have asked to convert into english…
Q: Q3: Write a VB program to enter 8 values for a student's grades representing 8 subjects and find his…
A: First, we will declare the array and all the required variables. Then with the help of for loop, we…
Q: Write a program to determine the equivalent grade of each student in class as follows: a. Read in…
A: Sample output
Q: Assuming x (type double) is 12.335 and i (type int) is 100, show the lines displayed by the…
A: Find Your Answer below
Q: 9. Is the expression "sue" != "fred" True or False
A: Given statement: "sue" != "fred" We have to check whether this statement is true or false.
Q: 3. (5 points) Suppose P(x,y) means "x * y = y * x", where x and y are real numbers. Determine the…
A: A truth value for a statement is used to show truth or falsity of a statement. The truth value of a…
Q: Lab #05 Exercise Write a program to enter 2 out of 3 angles in a triangle, in degrees. Your program…
A: Please give positive ratings for my efforts. Thanks. PROGRAM a = float(input("Enter the first…
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
- Many companies use telephone numbers like 555-GET-FOOD so the number is easier for their customers to remember. On a standard telephone, the alphabetic letters are mapped to numbers in the following fashion:A, B, and C = 2D, E, and F = 3G, H, and I = 4J, K, and L = 5M, N, and O = 6P, Q, R, and S = 7T, U, and V = 8W, X, Y, and Z = 9Create an application that lets the user enter a 10-character telephone number in the format XXX-XXX-XXXX. The application should display the telephone number with any alphabetic characters that appeared in the original translated to their numeric equivalent. For example, if the user enters 555-GET-FOOD, the application should display 555-438-3663.The value of x at the end.int x = 1;x = x + 1;x++;10 - In an examination, 500 students appeared. Out of these students, 38 % got A+ grade, 45 % got B+ and the remaining just passed. Assuming that no student failed, find the number of students who got A+, B+ and the number of students who just passed.(Python code)
- Consider the following statement:int* p, q;This statement could lead to what type of misinterpretation?6: forLoops.cpp)a) Print the even numbers between 3 and 43.b) Print every third letter starting with 'B'.c) Print the numbers 1 to 20 in one column right next toanother column with the numbers 20 down to 1.d) Print every other character in the computer's characterset.Write this assignment as one program with 4 voidfunctions.Q1__;. A phrase is a palindrome if, after converting all uppercase letters into lowercase letters and removing all non-alphanumeric characters, it reads the same forward and backward. Alphanumeric characters include letters and numbers. Given a string s, return true if it is a palindrome, or false otherwise. Example 1: Input: s = "A man, a plan, a canal: Panama" Output: true Explanation: "amanaplanacanalpanama" is a palindrome. Example 2: Input: s = "race a car" Output: false Explanation: "raceacar" is not a palindrome..
- Many companies use telephone numbers like 555-GET-FOOD so the number is easier for their customers to remember. On a standard telephone, the alphabetic letters are mapped to numbers in the following fashion: A, B, and C 2 D, E, and F 3 G, H, and I 4 J, K, and L 5 M, N, and O 6 P, Q, R, and S 7 T, U, and V 8 W, X, Y, and Z 9 Write a program that asks the user to enter a 10-character telephone number in the format XXX-XXX-XXXX. The application should display the telephone number with any alphabetic characters that appeared in the original translated to their numeric equivalent. For example, if the user enters 555-GET-FOOD the application should display 555-438-3663. Gaddis Tony. Starting Out with Python (2-downloads) (p. 367). Pearson Education. Kindle Edition.Given the following: Group A (Tom 40, Dave 67) Group B (Jade 30, Molly 25) Group C (Max 50, Comfort 50) (NB:without using class) Note that the pass mark is 50, write a C++ program that will compute which student passed in each group.Calculate and return the sum of two decimal numbers - getSum. Given the radius of a circle, print the area of a circle - printArea. Given a student’s name and three test scores (of type int), print the student’s name and average test score - printStudentDetails. Compute and return the average speed of a car, given the distance traveled (as type double) and traveling time (in hours and minutes, both of type int) - getAverageSpeed. *
- Assume that nextWord is a String variable that has been given a String value consisting entirely of letters. Write some Java code that outputs the message "First half of the alphabet", provided nextWord precedes "N" in alphabetic ordering. If nextWord does not precede "N" in alphabetic ordering, the code should output "Second half of the alphabet". (Note that "N" uses double quotes to produce a String value, as opposed to using single quotes to produce a char value.)Mortgage bond L, interest rate r =15%. The fixed payments P to pay off the loan over N years is given by P= rL(1+r/12)^12N/12(1+r/12)^12N -1) a)Write a code to compute and print P if N = 20 and the bond is $50,000 b) how P changes with N . Can you find a value for which the payment is less than $625? c) go back to N =20 and examine for different interest rate . Raising the interest rate increase the payment by $37?Computer Science Write a code to take input as course name and generate absent report for all students under that course. Absent report should contain student id, student name, total absent days and percentage of absenteeism?