There are some typos in this question as the numbers become too large and lead to undefined during calculations.
so the correct data is:
Songs = 12
Rock = 15
Blues = 20
Disco = 15
The answer & explanation for this question is given in the attachment below.
Your easiest approach would be to write a WinForms application in C#. This is too much to put in an answer here. DM me if you need info.
Answer:
please mark as brainliest!!
Explanation:
public class SumOfDigits{ public static void main(String args[]) { Scanner sc = new Scanner(System.in); System.out.println("Please enter a number to calculate sum of digits"); int number = sc.nextInt(); // Remember number/10 reduces one digit from number // and number%10 gives you last digit int sum = 0; int input = number; while (input != 0) { int lastdigit = input % 10; sum += lastdigit; input /= 10; } System.out.printf("Sum of digits of number %d is %d", number, sum); // closing Scanner to prevent resource leak sc.close(); } }
Answer:
27 ounces
Explanation:
You can convert 2 pounds into 32 ounces then subtract the 5 ounces that she ate from that 32.