Answer:
//get the sentence from the user
Console.WriteLine("Enter your sentence");
//read the user information
string ans = Console.ReadLine();
//check if sentence ends with period
if(!ans.EndsWith("."))
{
Console.WriteLine("Sentence should end with period");
Environment.Exit(0);
}
//declear empty string firstword
string firstWord = "";
//split the requested sentence using single space character
string[] splitans = ans.Split(' ');
//assign firstword
firstWord = splitans[0];
//print out firstword
Console.WriteLine(firstWord);
Explanation:
The program uses c#.
1. Go to insert tab
2. Click the chart tab
3. Choose the type of chart
4. Click OK
<span>All five dice show the same value thats what i think</span>
Answer:
The technology problems in the U.S are like
New security threats. Headline-grabbing recent events may spark surprising new security threats, says Rick Grinnell, founder and managing partner of Glasswing Ventures. ...
Data protection. ...
Skills gap. ...
Multi-cloud security. ...
Innovation and digital transformation. ...
Finding new revenue streams. ...
Lack of agility. ...
Outsourcing risks. danger
Explanation:
Hope this helped!!!
Answer:
import java.util.Scanner;
public class Supermarket
{
public static void main (String[] args)
{
String item;
double pounds, ounces, price,
total, unit;
Scanner scn = new Scanner(System.in);
System.out.print("Please enter the name of item ");
item = scn.nextLine();
System.out.print("Please enter the price of " + "the item per pound : ");
price = scn.nextDouble();
System.out.print("Enter the weight of " + "the item in pounds and " + "ounces respectively : ");
pounds = scn.nextDouble();
ounces = scn.nextDouble();
unit = price/16;
total = price * (pounds + ounces/16);
System.out.print("The unit price of " + "the products sold is : " + unit);
System.out.print("\nThe total cost of the " + "amount purchased is : " + total);
}
}
Explanation:
- Ask the user to enter the price of the item and the weight.
- Calculate the unit and the total price.
- Display the unit and the total price.